diff options
-rw-r--r-- | include/linux/ethtool.h | 1 | ||||
-rw-r--r-- | net/core/ethtool.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h index 9b660bd2e2b..90c4a3616d9 100644 --- a/include/linux/ethtool.h +++ b/include/linux/ethtool.h | |||
@@ -368,6 +368,7 @@ struct net_device; | |||
368 | 368 | ||
369 | /* Some generic methods drivers may use in their ethtool_ops */ | 369 | /* Some generic methods drivers may use in their ethtool_ops */ |
370 | u32 ethtool_op_get_link(struct net_device *dev); | 370 | u32 ethtool_op_get_link(struct net_device *dev); |
371 | u32 ethtool_op_get_rx_csum(struct net_device *dev); | ||
371 | u32 ethtool_op_get_tx_csum(struct net_device *dev); | 372 | u32 ethtool_op_get_tx_csum(struct net_device *dev); |
372 | int ethtool_op_set_tx_csum(struct net_device *dev, u32 data); | 373 | int ethtool_op_set_tx_csum(struct net_device *dev, u32 data); |
373 | int ethtool_op_set_tx_hw_csum(struct net_device *dev, u32 data); | 374 | int ethtool_op_set_tx_hw_csum(struct net_device *dev, u32 data); |
diff --git a/net/core/ethtool.c b/net/core/ethtool.c index cf36ff44ebb..44e571111d3 100644 --- a/net/core/ethtool.c +++ b/net/core/ethtool.c | |||
@@ -34,11 +34,13 @@ u32 ethtool_op_get_rx_csum(struct net_device *dev) | |||
34 | { | 34 | { |
35 | return (dev->features & NETIF_F_ALL_CSUM) != 0; | 35 | return (dev->features & NETIF_F_ALL_CSUM) != 0; |
36 | } | 36 | } |
37 | EXPORT_SYMBOL(ethtool_op_get_rx_csum); | ||
37 | 38 | ||
38 | u32 ethtool_op_get_tx_csum(struct net_device *dev) | 39 | u32 ethtool_op_get_tx_csum(struct net_device *dev) |
39 | { | 40 | { |
40 | return (dev->features & NETIF_F_ALL_CSUM) != 0; | 41 | return (dev->features & NETIF_F_ALL_CSUM) != 0; |
41 | } | 42 | } |
43 | EXPORT_SYMBOL(ethtool_op_get_tx_csum); | ||
42 | 44 | ||
43 | int ethtool_op_set_tx_csum(struct net_device *dev, u32 data) | 45 | int ethtool_op_set_tx_csum(struct net_device *dev, u32 data) |
44 | { | 46 | { |
@@ -1125,7 +1127,6 @@ int dev_ethtool(struct net *net, struct ifreq *ifr) | |||
1125 | EXPORT_SYMBOL(ethtool_op_get_link); | 1127 | EXPORT_SYMBOL(ethtool_op_get_link); |
1126 | EXPORT_SYMBOL(ethtool_op_get_sg); | 1128 | EXPORT_SYMBOL(ethtool_op_get_sg); |
1127 | EXPORT_SYMBOL(ethtool_op_get_tso); | 1129 | EXPORT_SYMBOL(ethtool_op_get_tso); |
1128 | EXPORT_SYMBOL(ethtool_op_get_tx_csum); | ||
1129 | EXPORT_SYMBOL(ethtool_op_set_sg); | 1130 | EXPORT_SYMBOL(ethtool_op_set_sg); |
1130 | EXPORT_SYMBOL(ethtool_op_set_tso); | 1131 | EXPORT_SYMBOL(ethtool_op_set_tso); |
1131 | EXPORT_SYMBOL(ethtool_op_set_tx_csum); | 1132 | EXPORT_SYMBOL(ethtool_op_set_tx_csum); |