Date: Thu, 03 Feb 2011 11:48:18 -0800 From: Julian Elischer <julian@freebsd.org> To: David Somayajulu <david.somayajulu@qlogic.com> Cc: "freebsd-current@freebsd.org" <freebsd-current@freebsd.org> Subject: Re: Ethernet Drivers: Question on Sending Received Packets to the FreeBSD Network Stack Message-ID: <4D4B0682.4000201@freebsd.org> In-Reply-To: <75E1A2A7D185F841A975979B0906BBA6774DD4D902@AVEXMB1.qlogic.org> References: <75E1A2A7D185F841A975979B0906BBA6774DD4D902@AVEXMB1.qlogic.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D4B0682.4000201>