Skip to content

Commit

Permalink
net: Kill NETIF_F_UFO and SKB_GSO_UDP.
Browse files Browse the repository at this point in the history
No longer used.

Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
davem330 committed Jul 17, 2017
1 parent 6800b2e commit d9d30ad
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 20 deletions.
4 changes: 1 addition & 3 deletions include/linux/netdev_features.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ enum {
/**/NETIF_F_GSO_SHIFT, /* keep the order of SKB_GSO_* bits */
NETIF_F_TSO_BIT /* ... TCPv4 segmentation */
= NETIF_F_GSO_SHIFT,
NETIF_F_UFO_BIT, /* ... UDPv4 fragmentation */
NETIF_F_GSO_ROBUST_BIT, /* ... ->SKB_GSO_DODGY */
NETIF_F_TSO_ECN_BIT, /* ... TCP ECN support */
NETIF_F_TSO_MANGLEID_BIT, /* ... IPV4 ID mangling allowed */
Expand Down Expand Up @@ -118,7 +117,6 @@ enum {
#define NETIF_F_TSO6 __NETIF_F(TSO6)
#define NETIF_F_TSO_ECN __NETIF_F(TSO_ECN)
#define NETIF_F_TSO __NETIF_F(TSO)
#define NETIF_F_UFO __NETIF_F(UFO)
#define NETIF_F_VLAN_CHALLENGED __NETIF_F(VLAN_CHALLENGED)
#define NETIF_F_RXFCS __NETIF_F(RXFCS)
#define NETIF_F_RXALL __NETIF_F(RXALL)
Expand Down Expand Up @@ -172,7 +170,7 @@ enum {
NETIF_F_FSO)

/* List of features with software fallbacks. */
#define NETIF_F_GSO_SOFTWARE (NETIF_F_ALL_TSO | NETIF_F_UFO | \
#define NETIF_F_GSO_SOFTWARE (NETIF_F_ALL_TSO | \
NETIF_F_GSO_SCTP)

/*
Expand Down
1 change: 0 additions & 1 deletion include/linux/netdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -4098,7 +4098,6 @@ static inline bool net_gso_ok(netdev_features_t features, int gso_type)

/* check flags correspondence */
BUILD_BUG_ON(SKB_GSO_TCPV4 != (NETIF_F_TSO >> NETIF_F_GSO_SHIFT));
BUILD_BUG_ON(SKB_GSO_UDP != (NETIF_F_UFO >> NETIF_F_GSO_SHIFT));
BUILD_BUG_ON(SKB_GSO_DODGY != (NETIF_F_GSO_ROBUST >> NETIF_F_GSO_SHIFT));
BUILD_BUG_ON(SKB_GSO_TCP_ECN != (NETIF_F_TSO_ECN >> NETIF_F_GSO_SHIFT));
BUILD_BUG_ON(SKB_GSO_TCP_FIXEDID != (NETIF_F_TSO_MANGLEID >> NETIF_F_GSO_SHIFT));
Expand Down
31 changes: 15 additions & 16 deletions include/linux/skbuff.h
Original file line number Diff line number Diff line change
Expand Up @@ -463,39 +463,38 @@ enum {

enum {
SKB_GSO_TCPV4 = 1 << 0,
SKB_GSO_UDP = 1 << 1,

/* This indicates the skb is from an untrusted source. */
SKB_GSO_DODGY = 1 << 2,
SKB_GSO_DODGY = 1 << 1,

/* This indicates the tcp segment has CWR set. */
SKB_GSO_TCP_ECN = 1 << 3,
SKB_GSO_TCP_ECN = 1 << 2,

SKB_GSO_TCP_FIXEDID = 1 << 4,
SKB_GSO_TCP_FIXEDID = 1 << 3,

SKB_GSO_TCPV6 = 1 << 5,
SKB_GSO_TCPV6 = 1 << 4,

SKB_GSO_FCOE = 1 << 6,
SKB_GSO_FCOE = 1 << 5,

SKB_GSO_GRE = 1 << 7,
SKB_GSO_GRE = 1 << 6,

SKB_GSO_GRE_CSUM = 1 << 8,
SKB_GSO_GRE_CSUM = 1 << 7,

SKB_GSO_IPXIP4 = 1 << 9,
SKB_GSO_IPXIP4 = 1 << 8,

SKB_GSO_IPXIP6 = 1 << 10,
SKB_GSO_IPXIP6 = 1 << 9,

SKB_GSO_UDP_TUNNEL = 1 << 11,
SKB_GSO_UDP_TUNNEL = 1 << 10,

SKB_GSO_UDP_TUNNEL_CSUM = 1 << 12,
SKB_GSO_UDP_TUNNEL_CSUM = 1 << 11,

SKB_GSO_PARTIAL = 1 << 13,
SKB_GSO_PARTIAL = 1 << 12,

SKB_GSO_TUNNEL_REMCSUM = 1 << 14,
SKB_GSO_TUNNEL_REMCSUM = 1 << 13,

SKB_GSO_SCTP = 1 << 15,
SKB_GSO_SCTP = 1 << 14,

SKB_GSO_ESP = 1 << 16,
SKB_GSO_ESP = 1 << 15,
};

#if BITS_PER_LONG > 32
Expand Down

0 comments on commit d9d30ad

Please sign in to comment.