netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* LRO restructuring?
@ 2008-08-11 13:30 Andrew Gallatin
  2008-08-11 21:03 ` David Miller
  2008-08-12  0:50 ` Herbert Xu
  0 siblings, 2 replies; 16+ messages in thread
From: Andrew Gallatin @ 2008-08-11 13:30 UTC (permalink / raw)
  To: Herbert Xu; +Cc: netdev, Brice Goglin

Hi,

You mentioned in the recent "Re: [RFC][PATCH 1/1] cxgb3i: cxgb3 iSCSI
initiator" thread that you were planning to restructure LRO to
preserve headers so as to make forwarding possible without totally
disabling LRO.

For lro_receive_frags() based LRO, it would be ideal to locate the
header in place in the frag via the mac_hdr argument to the
get_frag_header() callback.  Eg, I'm hoping that neither the driver
nor the LRO module will need to allocate extra memory per frame and
copy the headers to it in the common case when forwarding is
not enabled.  That would add quite a bit of overhead.

With respect to hardware LRO and headers:  Would it be possible
to notify the driver via some sort of callback whether the headers
are required?  I think most hardware LRO implementations are going
to collapse the headers, and having the option to fallback to software
LRO for forwarding might be needed for those devices which will throw
away the intermediate headers.

Last, have you considered simply allowing "inexact" forwarding, where
the ingress NIC is doing LRO and the egress nic is doing TSO?  You
loose exact framing information (eg, what you emit might not be framed
exactly as you receive it), but you can still do filtering, and the
host overhead is very low.

Thanks,

Drew

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

end of thread, other threads:[~2009-02-20  0:37 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-11 13:30 LRO restructuring? Andrew Gallatin
2008-08-11 21:03 ` David Miller
2008-08-12 11:50   ` Andrew Gallatin
2008-08-13  2:14     ` Herbert Xu
2008-08-12  0:50 ` Herbert Xu
2008-08-12  0:54   ` David Miller
2008-08-12  1:00     ` Herbert Xu
2008-08-12  1:30       ` Rick Jones
2008-08-12  1:39         ` David Miller
2008-08-12  1:53           ` Herbert Xu
2009-02-18 19:25             ` James Huang
2009-02-18 19:42               ` Ben Hutchings
2009-02-18 19:46               ` Stephen Hemminger
2009-02-19 13:53               ` Herbert Xu
2009-02-19 22:20                 ` James Huang
     [not found]                 ` <f0ed9b110902191417k2917d856q9098b304eeb7435b@mail.gmail.com>
2009-02-20  0:37                   ` Herbert Xu

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).