[next] ipvlan: consolidate TSO flags using NETIF_F_ALL_TSO
diff mbox series

Message ID 20191009232011.240381-1-maheshb@google.com
State Accepted
Delegated to: David Miller
Headers show
Series
  • [next] ipvlan: consolidate TSO flags using NETIF_F_ALL_TSO
Related show

Commit Message

Mahesh Bandewar Oct. 9, 2019, 11:20 p.m. UTC
This will ensure that any new TSO related flags added (which
would be part of ALL_TSO mask and IPvlan driver doesn't need
to update every time new flag gets added.

Signed-off-by: Mahesh Bandewar <maheshb@google.com>
Suggested-by: Eric Dumazet <edumazet@google.com>
---
 drivers/net/ipvlan/ipvlan_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Jakub Kicinski Oct. 11, 2019, 1:05 a.m. UTC | #1
On Wed,  9 Oct 2019 16:20:11 -0700, Mahesh Bandewar wrote:
> This will ensure that any new TSO related flags added (which
> would be part of ALL_TSO mask and IPvlan driver doesn't need
> to update every time new flag gets added.
> 
> Signed-off-by: Mahesh Bandewar <maheshb@google.com>
> Suggested-by: Eric Dumazet <edumazet@google.com>

Applied, thanks!

Patch
diff mbox series

diff --git a/drivers/net/ipvlan/ipvlan_main.c b/drivers/net/ipvlan/ipvlan_main.c
index 887bbba4631e..b0ac557f8e60 100644
--- a/drivers/net/ipvlan/ipvlan_main.c
+++ b/drivers/net/ipvlan/ipvlan_main.c
@@ -108,8 +108,8 @@  static void ipvlan_port_destroy(struct net_device *dev)
 
 #define IPVLAN_FEATURES \
 	(NETIF_F_SG | NETIF_F_CSUM_MASK | NETIF_F_HIGHDMA | NETIF_F_FRAGLIST | \
-	 NETIF_F_GSO | NETIF_F_TSO | NETIF_F_GSO_ROBUST | \
-	 NETIF_F_TSO_ECN | NETIF_F_TSO6 | NETIF_F_GRO | NETIF_F_RXCSUM | \
+	 NETIF_F_GSO | NETIF_F_ALL_TSO | NETIF_F_GSO_ROBUST | \
+	 NETIF_F_GRO | NETIF_F_RXCSUM | \
 	 NETIF_F_HW_VLAN_CTAG_FILTER | NETIF_F_HW_VLAN_STAG_FILTER)
 
 #define IPVLAN_STATE_MASK \