diff options
-rw-r--r-- | Documentation/networking/netdev-features.txt | 6 | ||||
-rw-r--r-- | include/linux/netdev_features.h | 2 | ||||
-rw-r--r-- | net/core/ethtool.c | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/networking/netdev-features.txt b/Documentation/networking/netdev-features.txt index 4b1c0dcef84c..7d2781230d30 100644 --- a/Documentation/networking/netdev-features.txt +++ b/Documentation/networking/netdev-features.txt | |||
@@ -152,3 +152,9 @@ NETIF_F_VLAN_CHALLENGED should be set for devices which can't cope with VLAN | |||
152 | headers. Some drivers set this because the cards can't handle the bigger MTU. | 152 | headers. Some drivers set this because the cards can't handle the bigger MTU. |
153 | [FIXME: Those cases could be fixed in VLAN code by allowing only reduced-MTU | 153 | [FIXME: Those cases could be fixed in VLAN code by allowing only reduced-MTU |
154 | VLANs. This may be not useful, though.] | 154 | VLANs. This may be not useful, though.] |
155 | |||
156 | * rx-fcs | ||
157 | |||
158 | This requests that the NIC append the Ethernet Frame Checksum (FCS) | ||
159 | to the end of the skb data. This allows sniffers and other tools to | ||
160 | read the CRC recorded by the NIC on receipt of the packet. | ||
diff --git a/include/linux/netdev_features.h b/include/linux/netdev_features.h index 77f5202977ce..d1331865f830 100644 --- a/include/linux/netdev_features.h +++ b/include/linux/netdev_features.h | |||
@@ -54,6 +54,7 @@ enum { | |||
54 | NETIF_F_RXCSUM_BIT, /* Receive checksumming offload */ | 54 | NETIF_F_RXCSUM_BIT, /* Receive checksumming offload */ |
55 | NETIF_F_NOCACHE_COPY_BIT, /* Use no-cache copyfromuser */ | 55 | NETIF_F_NOCACHE_COPY_BIT, /* Use no-cache copyfromuser */ |
56 | NETIF_F_LOOPBACK_BIT, /* Enable loopback */ | 56 | NETIF_F_LOOPBACK_BIT, /* Enable loopback */ |
57 | NETIF_F_RXFCS_BIT, /* Append FCS to skb pkt data */ | ||
57 | 58 | ||
58 | /* | 59 | /* |
59 | * Add your fresh new feature above and remember to update | 60 | * Add your fresh new feature above and remember to update |
@@ -98,6 +99,7 @@ enum { | |||
98 | #define NETIF_F_TSO __NETIF_F(TSO) | 99 | #define NETIF_F_TSO __NETIF_F(TSO) |
99 | #define NETIF_F_UFO __NETIF_F(UFO) | 100 | #define NETIF_F_UFO __NETIF_F(UFO) |
100 | #define NETIF_F_VLAN_CHALLENGED __NETIF_F(VLAN_CHALLENGED) | 101 | #define NETIF_F_VLAN_CHALLENGED __NETIF_F(VLAN_CHALLENGED) |
102 | #define NETIF_F_RXFCS __NETIF_F(RXFCS) | ||
101 | 103 | ||
102 | /* Features valid for ethtool to change */ | 104 | /* Features valid for ethtool to change */ |
103 | /* = all defined minus driver/device-class-related */ | 105 | /* = all defined minus driver/device-class-related */ |
diff --git a/net/core/ethtool.c b/net/core/ethtool.c index 3f79db1b612a..080161924a0d 100644 --- a/net/core/ethtool.c +++ b/net/core/ethtool.c | |||
@@ -73,6 +73,7 @@ static const char netdev_features_strings[NETDEV_FEATURE_COUNT][ETH_GSTRING_LEN] | |||
73 | [NETIF_F_RXCSUM_BIT] = "rx-checksum", | 73 | [NETIF_F_RXCSUM_BIT] = "rx-checksum", |
74 | [NETIF_F_NOCACHE_COPY_BIT] = "tx-nocache-copy", | 74 | [NETIF_F_NOCACHE_COPY_BIT] = "tx-nocache-copy", |
75 | [NETIF_F_LOOPBACK_BIT] = "loopback", | 75 | [NETIF_F_LOOPBACK_BIT] = "loopback", |
76 | [NETIF_F_RXFCS_BIT] = "rx-fcs", | ||
76 | }; | 77 | }; |
77 | 78 | ||
78 | static int ethtool_get_features(struct net_device *dev, void __user *useraddr) | 79 | static int ethtool_get_features(struct net_device *dev, void __user *useraddr) |