kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Relationship between Rx/Tx ring and Skbuff.
@ 2020-08-05 18:34 Vasu M
  2020-08-06  1:43 ` Valdis Klētnieks
  2020-08-28 13:43 ` Richard Sailer
  0 siblings, 2 replies; 5+ messages in thread
From: Vasu M @ 2020-08-05 18:34 UTC (permalink / raw)
  To: kernelnewbies


[-- Attachment #1.1: Type: text/plain, Size: 1055 bytes --]

Hi,

I would like to understand the journey of the packet in Linux kernel. There
are many resources that explain this differently but as I have understood
it on a high level, when a packet is received in a NIC, DMA  moves the
packets from the NIC frame buffer into the RX ring buffer in the driver. A
hardware interrupt is then raised and the top half moves the packet to the
RX ring buffer. Is it right to understand that the bottom half tasklets
then drain the buffer and move the packets to sk_buff data structure? Are
the RX/TX buffers different from sk_buff in terms of memory regions or the
sk_buff simply points to the physical address of the packets residing in
the RX ring and then does the manipulation of the pointers to send it up
in the kernel IP stack?

I know this is a broad topic but I would like to seek clarification from
the experts on my understanding of packet movement inside the kernel.  Or
can you point me to a resource which can be a close explanation about the
implementation on how the kernel handles in > 4.x ?

Thanks,
Vasu

[-- Attachment #1.2: Type: text/html, Size: 1178 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-09-04  5:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-05 18:34 Relationship between Rx/Tx ring and Skbuff Vasu M
2020-08-06  1:43 ` Valdis Klētnieks
2020-08-06  4:52   ` Vasu M
2020-08-28 13:43 ` Richard Sailer
2020-09-04  5:31   ` Mulyadi Santosa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).