net: Remove MPLS GSO feature.
authorPravin B Shelar <pshelar@nicira.com>
Wed, 5 Nov 2014 23:27:48 +0000 (15:27 -0800)
committerPravin B Shelar <pshelar@nicira.com>
Thu, 6 Nov 2014 07:52:33 +0000 (23:52 -0800)
Device can export MPLS GSO support in dev->mpls_features same way
it export vlan features in dev->vlan_features. So it is safe to
remove NETIF_F_GSO_MPLS redundant flag.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
include/linux/netdev_features.h
include/linux/netdevice.h
include/linux/skbuff.h
net/core/ethtool.c
net/ipv4/af_inet.c
net/ipv4/tcp_offload.c
net/ipv4/udp_offload.c
net/ipv6/ip6_offload.c
net/ipv6/udp_offload.c
net/mpls/mpls_gso.c

index 8c94b07e654a46c7de8eddc79c49202a2f68f461..8e30685affeb3a40b00fffbdbdcb3edbb5b10ead 100644 (file)
@@ -47,7 +47,6 @@ enum {
        NETIF_F_GSO_SIT_BIT,            /* ... SIT tunnel with TSO */
        NETIF_F_GSO_UDP_TUNNEL_BIT,     /* ... UDP TUNNEL with TSO */
        NETIF_F_GSO_UDP_TUNNEL_CSUM_BIT,/* ... UDP TUNNEL with TSO & CSUM */
-       NETIF_F_GSO_MPLS_BIT,           /* ... MPLS segmentation */
        NETIF_F_GSO_TUNNEL_REMCSUM_BIT, /* ... TUNNEL with TSO & REMCSUM */
        /**/NETIF_F_GSO_LAST =          /* last bit, see GSO_MASK */
                NETIF_F_GSO_TUNNEL_REMCSUM_BIT,
@@ -119,7 +118,6 @@ enum {
 #define NETIF_F_GSO_SIT                __NETIF_F(GSO_SIT)
 #define NETIF_F_GSO_UDP_TUNNEL __NETIF_F(GSO_UDP_TUNNEL)
 #define NETIF_F_GSO_UDP_TUNNEL_CSUM __NETIF_F(GSO_UDP_TUNNEL_CSUM)
-#define NETIF_F_GSO_MPLS       __NETIF_F(GSO_MPLS)
 #define NETIF_F_GSO_TUNNEL_REMCSUM __NETIF_F(GSO_TUNNEL_REMCSUM)
 #define NETIF_F_HW_VLAN_STAG_FILTER __NETIF_F(HW_VLAN_STAG_FILTER)
 #define NETIF_F_HW_VLAN_STAG_RX        __NETIF_F(HW_VLAN_STAG_RX)
@@ -183,7 +181,6 @@ enum {
                                 NETIF_F_GSO_IPIP |                     \
                                 NETIF_F_GSO_SIT |                      \
                                 NETIF_F_GSO_UDP_TUNNEL |               \
-                                NETIF_F_GSO_UDP_TUNNEL_CSUM |          \
-                                NETIF_F_GSO_MPLS)
+                                NETIF_F_GSO_UDP_TUNNEL_CSUM)
 
 #endif /* _LINUX_NETDEV_FEATURES_H */
index 4767f546d7c07d11e091558861c608c5c43a770c..90ac95900a11c65222950105b76384c050afcf48 100644 (file)
@@ -3583,7 +3583,6 @@ static inline bool net_gso_ok(netdev_features_t features, int gso_type)
        BUILD_BUG_ON(SKB_GSO_SIT     != (NETIF_F_GSO_SIT >> NETIF_F_GSO_SHIFT));
        BUILD_BUG_ON(SKB_GSO_UDP_TUNNEL != (NETIF_F_GSO_UDP_TUNNEL >> NETIF_F_GSO_SHIFT));
        BUILD_BUG_ON(SKB_GSO_UDP_TUNNEL_CSUM != (NETIF_F_GSO_UDP_TUNNEL_CSUM >> NETIF_F_GSO_SHIFT));
-       BUILD_BUG_ON(SKB_GSO_MPLS    != (NETIF_F_GSO_MPLS >> NETIF_F_GSO_SHIFT));
        BUILD_BUG_ON(SKB_GSO_TUNNEL_REMCSUM != (NETIF_F_GSO_TUNNEL_REMCSUM >> NETIF_F_GSO_SHIFT));
 
        return (features & feature) == feature;
index 39ec7530ae27984e98b06f5cb2a116c9669662dd..53f4f6c93356e8d12026dee59e3771b9db4157dc 100644 (file)
@@ -372,9 +372,7 @@ enum {
 
        SKB_GSO_UDP_TUNNEL_CSUM = 1 << 11,
 
-       SKB_GSO_MPLS = 1 << 12,
-
-       SKB_GSO_TUNNEL_REMCSUM = 1 << 13,
+       SKB_GSO_TUNNEL_REMCSUM = 1 << 12,
 };
 
 #if BITS_PER_LONG > 32
index 06dfb293e5aafa10ab2754bfb80d29ad29f2db95..b0f84f5ddda8456ff8f69442d453e112340a6bfa 100644 (file)
@@ -84,7 +84,6 @@ static const char netdev_features_strings[NETDEV_FEATURE_COUNT][ETH_GSTRING_LEN]
        [NETIF_F_GSO_IPIP_BIT] =         "tx-ipip-segmentation",
        [NETIF_F_GSO_SIT_BIT] =          "tx-sit-segmentation",
        [NETIF_F_GSO_UDP_TUNNEL_BIT] =   "tx-udp_tnl-segmentation",
-       [NETIF_F_GSO_MPLS_BIT] =         "tx-mpls-segmentation",
 
        [NETIF_F_FCOE_CRC_BIT] =         "tx-checksum-fcoe-crc",
        [NETIF_F_SCTP_CSUM_BIT] =        "tx-checksum-sctp",
index ed2c672c5b01d0522203beeb1a1963165e740d82..3a096bb2d59658f6078c42ef68dfa1d932adda5d 100644 (file)
@@ -1223,7 +1223,6 @@ static struct sk_buff *inet_gso_segment(struct sk_buff *skb,
                       SKB_GSO_UDP_TUNNEL |
                       SKB_GSO_UDP_TUNNEL_CSUM |
                       SKB_GSO_TUNNEL_REMCSUM |
-                      SKB_GSO_MPLS |
                       0)))
                goto out;
 
index a1b2a5624f91cfc08c7aff20bc05da4e24a97147..9d7930ba8e0f4c51c8d5434c5ea186b585ff3a35 100644 (file)
@@ -94,7 +94,6 @@ struct sk_buff *tcp_gso_segment(struct sk_buff *skb,
                               SKB_GSO_GRE_CSUM |
                               SKB_GSO_IPIP |
                               SKB_GSO_SIT |
-                              SKB_GSO_MPLS |
                               SKB_GSO_UDP_TUNNEL |
                               SKB_GSO_UDP_TUNNEL_CSUM |
                               SKB_GSO_TUNNEL_REMCSUM |
index 0a5a70d0e84c083e1d09d5f52105eb0ad309907d..d3e537ef6b7f57143d272d2d085d31fdc81990e7 100644 (file)
@@ -207,8 +207,7 @@ static struct sk_buff *udp4_ufo_fragment(struct sk_buff *skb,
                                      SKB_GSO_UDP_TUNNEL_CSUM |
                                      SKB_GSO_TUNNEL_REMCSUM |
                                      SKB_GSO_IPIP |
-                                     SKB_GSO_GRE | SKB_GSO_GRE_CSUM |
-                                     SKB_GSO_MPLS) ||
+                                     SKB_GSO_GRE | SKB_GSO_GRE_CSUM) ||
                             !(type & (SKB_GSO_UDP))))
                        goto out;
 
index e9767079a36080668a6266ae77de91ca79151989..fd76ce938c32ffd7fc1c007d7e208c0d92a2de8c 100644 (file)
@@ -79,7 +79,6 @@ static struct sk_buff *ipv6_gso_segment(struct sk_buff *skb,
                       SKB_GSO_UDP_TUNNEL |
                       SKB_GSO_UDP_TUNNEL_CSUM |
                       SKB_GSO_TUNNEL_REMCSUM |
-                      SKB_GSO_MPLS |
                       SKB_GSO_TCPV6 |
                       0)))
                goto out;
index 637ba2e438b73e017ec9530e861e0f8711fd234a..b6aa8ed182579614d3738f107e839eb2e82e5371 100644 (file)
@@ -46,8 +46,7 @@ static struct sk_buff *udp6_ufo_fragment(struct sk_buff *skb,
                                      SKB_GSO_GRE |
                                      SKB_GSO_GRE_CSUM |
                                      SKB_GSO_IPIP |
-                                     SKB_GSO_SIT |
-                                     SKB_GSO_MPLS) ||
+                                     SKB_GSO_SIT) ||
                             !(type & (SKB_GSO_UDP))))
                        goto out;
 
index e3545f21a099b01b931cd863205a847acd336238..ca27837974fedd82fffcd9c91aa565c60534b13c 100644 (file)
@@ -34,8 +34,7 @@ static struct sk_buff *mpls_gso_segment(struct sk_buff *skb,
                                  SKB_GSO_TCP_ECN |
                                  SKB_GSO_GRE |
                                  SKB_GSO_GRE_CSUM |
-                                 SKB_GSO_IPIP |
-                                 SKB_GSO_MPLS)))
+                                 SKB_GSO_IPIP)))
                goto out;
 
        /* Setup inner SKB. */