All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 RFC 0/13] Remove UDP Fragmentation Offload support
@ 2017-07-07  9:43 David Miller
  2017-07-07 12:45 ` Michal Kubecek
  2017-07-17 17:30 ` David Miller
  0 siblings, 2 replies; 5+ messages in thread
From: David Miller @ 2017-07-07  9:43 UTC (permalink / raw)
  To: netdev; +Cc: willemdebruijn.kernel


This is an RFC patch series, based upon some discussions with
various developers, that removes UFO offloading.

Very few devices support this operation, it's usefullness is
quesitonable at best, and it adds a non-trivial amount of
complexity to our data paths.

v2: Delete more code thanks to feedback from Willem.

Signed-off-by: David S. Miller <davem@davemloft.net>

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

* Re: [PATCH v2 RFC 0/13] Remove UDP Fragmentation Offload support
  2017-07-07  9:43 [PATCH v2 RFC 0/13] Remove UDP Fragmentation Offload support David Miller
@ 2017-07-07 12:45 ` Michal Kubecek
  2017-07-07 13:24   ` David Laight
  2017-07-08  9:47   ` David Miller
  2017-07-17 17:30 ` David Miller
  1 sibling, 2 replies; 5+ messages in thread
From: Michal Kubecek @ 2017-07-07 12:45 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, willemdebruijn.kernel

On Fri, Jul 07, 2017 at 10:43:26AM +0100, David Miller wrote:
> 
> This is an RFC patch series, based upon some discussions with
> various developers, that removes UFO offloading.
> 
> Very few devices support this operation, it's usefullness is
> quesitonable at best, and it adds a non-trivial amount of
> complexity to our data paths.

My understanding from the communication with the customer whose reports
resulted in commits acf8dd0a9d0b ("udp: only allow UFO for packets from
SOCK_DGRAM sockets") and a5cb659bbc1c ("net: account for current skb
length when deciding about UFO") was that the real benefit from UFO is 
in the case when UFO allows to avoid the need to actually fragment the 
packets. In their case it's when UDP packets are sent via virtio_net 
either between a guest and its host or between two guests on the same 
host.

Personally I have no idea how big the effect is in their use cases so 
I forwarded the link to your series to them and asked them to provide 
some real life data if they want to step in. If there is no significant
performance benefit even in this case, I would agree the feature is not
worth the hassle - if nothing else, the ever growing list of exceptions
in ip{,6}_append_data() is getting out of hands.

                                                         Michal Kubecek

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

* RE: [PATCH v2 RFC 0/13] Remove UDP Fragmentation Offload support
  2017-07-07 12:45 ` Michal Kubecek
@ 2017-07-07 13:24   ` David Laight
  2017-07-08  9:47   ` David Miller
  1 sibling, 0 replies; 5+ messages in thread
From: David Laight @ 2017-07-07 13:24 UTC (permalink / raw)
  To: 'Michal Kubecek', David Miller; +Cc: netdev, willemdebruijn.kernel

From: Michal Kubecek
> Sent: 07 July 2017 13:46
> On Fri, Jul 07, 2017 at 10:43:26AM +0100, David Miller wrote:
> >
> > This is an RFC patch series, based upon some discussions with
> > various developers, that removes UFO offloading.
> >
> > Very few devices support this operation, it's usefullness is
> > quesitonable at best, and it adds a non-trivial amount of
> > complexity to our data paths.
> 
> My understanding from the communication with the customer whose reports
> resulted in commits acf8dd0a9d0b ("udp: only allow UFO for packets from
> SOCK_DGRAM sockets") and a5cb659bbc1c ("net: account for current skb
> length when deciding about UFO") was that the real benefit from UFO is
> in the case when UFO allows to avoid the need to actually fragment the
> packets. In their case it's when UDP packets are sent via virtio_net
> either between a guest and its host or between two guests on the same
> host.
> ...

Could that be done with a large path-specific mtu?

	David

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

* Re: [PATCH v2 RFC 0/13] Remove UDP Fragmentation Offload support
  2017-07-07 12:45 ` Michal Kubecek
  2017-07-07 13:24   ` David Laight
@ 2017-07-08  9:47   ` David Miller
  1 sibling, 0 replies; 5+ messages in thread
From: David Miller @ 2017-07-08  9:47 UTC (permalink / raw)
  To: mkubecek; +Cc: netdev, willemdebruijn.kernel

From: Michal Kubecek <mkubecek@suse.cz>
Date: Fri, 7 Jul 2017 14:45:31 +0200

> On Fri, Jul 07, 2017 at 10:43:26AM +0100, David Miller wrote:
>> 
>> This is an RFC patch series, based upon some discussions with
>> various developers, that removes UFO offloading.
>> 
>> Very few devices support this operation, it's usefullness is
>> quesitonable at best, and it adds a non-trivial amount of
>> complexity to our data paths.
> 
> My understanding from the communication with the customer whose reports
> resulted in commits acf8dd0a9d0b ("udp: only allow UFO for packets from
> SOCK_DGRAM sockets") and a5cb659bbc1c ("net: account for current skb
> length when deciding about UFO") was that the real benefit from UFO is 
> in the case when UFO allows to avoid the need to actually fragment the 
> packets. In their case it's when UDP packets are sent via virtio_net 
> either between a guest and its host or between two guests on the same 
> host.
> 
> Personally I have no idea how big the effect is in their use cases so 
> I forwarded the link to your series to them and asked them to provide 
> some real life data if they want to step in. If there is no significant
> performance benefit even in this case, I would agree the feature is not
> worth the hassle - if nothing else, the ever growing list of exceptions
> in ip{,6}_append_data() is getting out of hands.

Thank for letting us know about this.

However, unless the performance gains are significant and there are no
conceivable alternative ways to achieve the same thing, I'm still
removing this.

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

* Re: [PATCH v2 RFC 0/13] Remove UDP Fragmentation Offload support
  2017-07-07  9:43 [PATCH v2 RFC 0/13] Remove UDP Fragmentation Offload support David Miller
  2017-07-07 12:45 ` Michal Kubecek
@ 2017-07-17 17:30 ` David Miller
  1 sibling, 0 replies; 5+ messages in thread
From: David Miller @ 2017-07-17 17:30 UTC (permalink / raw)
  To: netdev; +Cc: willemdebruijn.kernel, fw

From: David Miller <davem@davemloft.net>
Date: Fri, 07 Jul 2017 10:43:26 +0100 (WEST)

> This is an RFC patch series, based upon some discussions with
> various developers, that removes UFO offloading.
> 
> Very few devices support this operation, it's usefullness is
> quesitonable at best, and it adds a non-trivial amount of
> complexity to our data paths.
> 
> v2: Delete more code thanks to feedback from Willem.
> 
> Signed-off-by: David S. Miller <davem@davemloft.net>

This is now committed to net-next.

Florian, I made good on my dessert eating promise, ok? :-)

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

end of thread, other threads:[~2017-07-17 17:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-07  9:43 [PATCH v2 RFC 0/13] Remove UDP Fragmentation Offload support David Miller
2017-07-07 12:45 ` Michal Kubecek
2017-07-07 13:24   ` David Laight
2017-07-08  9:47   ` David Miller
2017-07-17 17:30 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.