OSDev.org

The Place to Start for Operating System Developers
It is currently Sat Apr 27, 2024 3:30 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: am79c973 missed frame?
PostPosted: Mon Dec 18, 2023 3:22 am 
Offline

Joined: Wed Apr 19, 2023 1:40 am
Posts: 19
Hi, my am79c973 driver works with virtual box and its forwarding, however when running in qemu and testinf thru ncat my am79c973 reports the "MISSING FRAME" error? Is this becuase I've set qemu up wrong?

(My args: -m 512 -serial stdio -accel whpx,kernel-irqchip=off -accel tcg -display sdl -net nic,model=pcnet -net user,hostfwd=tcp::1234-:1234 -drive file=\wsl.localhost\kali-linux\home\max\max-os\maxOS.img,
format=raw,if=ide,cache=directsync,id=disk0)

Src code https://github.com/maxtyson123/max-os/


Top
 Profile  
 
 Post subject: Re: am79c973 missed frame?
PostPosted: Mon Dec 18, 2023 9:16 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5146
The missed frame error means the NIC dropped a packet because your driver isn't updating the receive descriptors fast enough.

Try increasing the size of your receive descriptor ring. That will help if it's just a short burst of traffic.

If there are too many incoming packets, it may not be possible to receive all of them without dropping any.


Top
 Profile  
 
 Post subject: Re: am79c973 missed frame?
PostPosted: Wed Dec 20, 2023 10:00 pm 
Offline

Joined: Wed Apr 19, 2023 1:40 am
Posts: 19
So I should increase these lines:
Code:
                BufferDescriptor* recvBufferDescr;               //Descriptor entry
                uint8_t recvBufferDescrMemory[2048+15];  //RAM for the recive buffer, also 16 byte aligned
                uint8_t recvBuffers[2*1024+15][8];       //8 Send Buffers, 2KB + 15 bytes
                uint8_t currentRecvBuffer;               //Which buffers are active


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], SemrushBot [Bot] and 23 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group