diff options
Diffstat (limited to 'drivers/net/qlcnic/qlcnic_ethtool.c')
-rw-r--r-- | drivers/net/qlcnic/qlcnic_ethtool.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/qlcnic/qlcnic_ethtool.c b/drivers/net/qlcnic/qlcnic_ethtool.c index 8da6ec8c13b9..ef12792a88be 100644 --- a/drivers/net/qlcnic/qlcnic_ethtool.c +++ b/drivers/net/qlcnic/qlcnic_ethtool.c | |||
@@ -785,6 +785,11 @@ qlcnic_get_ethtool_stats(struct net_device *dev, | |||
785 | } | 785 | } |
786 | } | 786 | } |
787 | 787 | ||
788 | static u32 qlcnic_get_tx_csum(struct net_device *dev) | ||
789 | { | ||
790 | return dev->features & NETIF_F_IP_CSUM; | ||
791 | } | ||
792 | |||
788 | static u32 qlcnic_get_rx_csum(struct net_device *dev) | 793 | static u32 qlcnic_get_rx_csum(struct net_device *dev) |
789 | { | 794 | { |
790 | struct qlcnic_adapter *adapter = netdev_priv(dev); | 795 | struct qlcnic_adapter *adapter = netdev_priv(dev); |
@@ -995,6 +1000,7 @@ const struct ethtool_ops qlcnic_ethtool_ops = { | |||
995 | .set_ringparam = qlcnic_set_ringparam, | 1000 | .set_ringparam = qlcnic_set_ringparam, |
996 | .get_pauseparam = qlcnic_get_pauseparam, | 1001 | .get_pauseparam = qlcnic_get_pauseparam, |
997 | .set_pauseparam = qlcnic_set_pauseparam, | 1002 | .set_pauseparam = qlcnic_set_pauseparam, |
1003 | .get_tx_csum = qlcnic_get_tx_csum, | ||
998 | .set_tx_csum = ethtool_op_set_tx_csum, | 1004 | .set_tx_csum = ethtool_op_set_tx_csum, |
999 | .set_sg = ethtool_op_set_sg, | 1005 | .set_sg = ethtool_op_set_sg, |
1000 | .get_tso = qlcnic_get_tso, | 1006 | .get_tso = qlcnic_get_tso, |