Re: Ethernet Drivers: Question on Sending Received Packets to the FreeBSD Network Stack

From: Julian Elischer <julian_at_freebsd.org>
Date: Thu, 03 Feb 2011 11:48:18 -0800
On 2/3/11 10:08 AM, David Somayajulu wrote:
> Hi All,
> While sending the Received Ethernet Frames (non - LRO case) to the FreeBSD Network Stack via
> (struct ifnet *)->if_input((struct ifnet *), (struct *mbuf));
>
> Is it possible to send multiple Ethernet Frames in a single invocation of the above callback function?
>
> In other words should (struct *mbuf) above always correspond to a single Ethernet Frame? I am not sure if I missed something, but I gathered from a quick perusal of ether_input() in net/if_ethersubr.c, that only ONE Ethernet Frame may be sent per callback.

yes only one.
the linkages you see in the mbuf definition are for when you are 
putting it into some queue (interface, socket, reassembly, etc).

I had never considered passing a set of packets, but after my initial 
scoffing thoughts I realized that it would actually be a very interesting
thought experiment to see if the ability to do that would be 
advantageous in any way. I tmay be a way to reduce some sorts of
overhead if using interrupt mitigation.

> Thanks
> David S.
>
>
>
> ________________________________
> This message and any attached documents contain information from QLogic Corporation or its wholly-owned subsidiaries that may be confidential. If you are not the intended recipient, you may not read, copy, distribute, or use this information. If you have received this transmission in error, please notify the sender immediately by reply e-mail and then delete this message.
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>
>
Received on Thu Feb 03 2011 - 19:26:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:11 UTC