Netdev List
 help / color / mirror / Atom feed
* [PATCH] net: Make UFO on master device independent of attached devices
@ 2009-10-07 22:24 Sridhar Samudrala
  2009-10-07 23:41 ` Herbert Xu
  2009-10-08  5:01 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Sridhar Samudrala @ 2009-10-07 22:24 UTC (permalink / raw)
  To: David Miller, Herbert Xu, netdev

Now that software UFO is supported, UFO can be enabled on master
devices like bridge, bond even though the attached device doesn't
support this feature in hardware.

This allows UFO to be used between KVM host and guest even when a
physical interface attached to the bridge doesn't support UFO.

Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
 
diff --git a/net/core/dev.c b/net/core/dev.c
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -5483,7 +5483,7 @@ unsigned long netdev_increment_features(unsigned long all, unsigned long one,
 	one |= NETIF_F_ALL_CSUM;
 
 	one |= all & NETIF_F_ONE_FOR_ALL;
-	all &= one | NETIF_F_LLTX | NETIF_F_GSO;
+	all &= one | NETIF_F_LLTX | NETIF_F_GSO | NETIF_F_UFO;
 	all |= one & mask & NETIF_F_ONE_FOR_ALL;
 
 	return all;



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

end of thread, other threads:[~2009-10-08  5:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-07 22:24 [PATCH] net: Make UFO on master device independent of attached devices Sridhar Samudrala
2009-10-07 23:41 ` Herbert Xu
2009-10-08  5:01 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox