aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/netxen
diff options
context:
space:
mode:
authorSucheta Chakraborty <sucheta.chakraborty@qlogic.com>2010-03-28 22:43:41 -0400
committerDavid S. Miller <davem@davemloft.net>2010-03-29 16:18:35 -0400
commitff90cd4a1dcfc03bf228d94f553619198e65bc42 (patch)
tree4f8d0c945efa08c97989ff3220dfa2f0af92bae9 /drivers/net/netxen
parent30bde1f5076a9b6bd4b6a168523930ce242c7449 (diff)
netxen: fix tx csum status
Kernel default tx csum function (ethtool_op_get_tx_csum) doesn't show correct csum status. It takes various FLAGS (NETIF_F_ALL_CSUM) in account to show tx csum status, which driver doesn't set while disabling tx csum. Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com> Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen')
-rw-r--r--drivers/net/netxen/netxen_nic_ethtool.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/netxen/netxen_nic_ethtool.c b/drivers/net/netxen/netxen_nic_ethtool.c
index f8499e56cbee..aecba787f7c8 100644
--- a/drivers/net/netxen/netxen_nic_ethtool.c
+++ b/drivers/net/netxen/netxen_nic_ethtool.c
@@ -703,6 +703,11 @@ netxen_nic_get_ethtool_stats(struct net_device *dev,
703 } 703 }
704} 704}
705 705
706static u32 netxen_nic_get_tx_csum(struct net_device *dev)
707{
708 return dev->features & NETIF_F_IP_CSUM;
709}
710
706static u32 netxen_nic_get_rx_csum(struct net_device *dev) 711static u32 netxen_nic_get_rx_csum(struct net_device *dev)
707{ 712{
708 struct netxen_adapter *adapter = netdev_priv(dev); 713 struct netxen_adapter *adapter = netdev_priv(dev);
@@ -909,6 +914,7 @@ const struct ethtool_ops netxen_nic_ethtool_ops = {
909 .set_ringparam = netxen_nic_set_ringparam, 914 .set_ringparam = netxen_nic_set_ringparam,
910 .get_pauseparam = netxen_nic_get_pauseparam, 915 .get_pauseparam = netxen_nic_get_pauseparam,
911 .set_pauseparam = netxen_nic_set_pauseparam, 916 .set_pauseparam = netxen_nic_set_pauseparam,
917 .get_tx_csum = netxen_nic_get_tx_csum,
912 .set_tx_csum = ethtool_op_set_tx_csum, 918 .set_tx_csum = ethtool_op_set_tx_csum,
913 .set_sg = ethtool_op_set_sg, 919 .set_sg = ethtool_op_set_sg,
914 .get_tso = netxen_nic_get_tso, 920 .get_tso = netxen_nic_get_tso,