diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2010-11-30 01:38:00 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-06 15:59:04 -0500 |
commit | 7903264402546f45f9bac8ad2bfdb00d00eb124a (patch) | |
tree | 32076a169b37ce9c98916ed2d702de5cab1aeb6c /drivers/net/vxge | |
parent | 900d495a189dc3ff5952b98a77d18e3018f8286c (diff) |
net: Fix too optimistic NETIF_F_HW_CSUM features
NETIF_F_HW_CSUM is a superset of NETIF_F_IP_CSUM+NETIF_F_IPV6_CSUM, but
some drivers miss the difference. Fix this and also fix UFO dependency
on checksumming offload as it makes the same mistake in assumptions.
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Acked-by: Jon Mason <jon.mason@exar.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vxge')
-rw-r--r-- | drivers/net/vxge/vxge-ethtool.c | 2 | ||||
-rw-r--r-- | drivers/net/vxge/vxge-main.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/vxge/vxge-ethtool.c b/drivers/net/vxge/vxge-ethtool.c index bc9bd1035706..1dd3a21b3a43 100644 --- a/drivers/net/vxge/vxge-ethtool.c +++ b/drivers/net/vxge/vxge-ethtool.c | |||
@@ -1177,7 +1177,7 @@ static const struct ethtool_ops vxge_ethtool_ops = { | |||
1177 | .get_rx_csum = vxge_get_rx_csum, | 1177 | .get_rx_csum = vxge_get_rx_csum, |
1178 | .set_rx_csum = vxge_set_rx_csum, | 1178 | .set_rx_csum = vxge_set_rx_csum, |
1179 | .get_tx_csum = ethtool_op_get_tx_csum, | 1179 | .get_tx_csum = ethtool_op_get_tx_csum, |
1180 | .set_tx_csum = ethtool_op_set_tx_hw_csum, | 1180 | .set_tx_csum = ethtool_op_set_tx_ipv6_csum, |
1181 | .get_sg = ethtool_op_get_sg, | 1181 | .get_sg = ethtool_op_get_sg, |
1182 | .set_sg = ethtool_op_set_sg, | 1182 | .set_sg = ethtool_op_set_sg, |
1183 | .get_tso = ethtool_op_get_tso, | 1183 | .get_tso = ethtool_op_get_tso, |
diff --git a/drivers/net/vxge/vxge-main.c b/drivers/net/vxge/vxge-main.c index 8a84152e320a..4877b3b8a29e 100644 --- a/drivers/net/vxge/vxge-main.c +++ b/drivers/net/vxge/vxge-main.c | |||
@@ -3368,7 +3368,7 @@ static int __devinit vxge_device_register(struct __vxge_hw_device *hldev, | |||
3368 | 3368 | ||
3369 | ndev->features |= NETIF_F_SG; | 3369 | ndev->features |= NETIF_F_SG; |
3370 | 3370 | ||
3371 | ndev->features |= NETIF_F_HW_CSUM; | 3371 | ndev->features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM; |
3372 | vxge_debug_init(vxge_hw_device_trace_level_get(hldev), | 3372 | vxge_debug_init(vxge_hw_device_trace_level_get(hldev), |
3373 | "%s : checksuming enabled", __func__); | 3373 | "%s : checksuming enabled", __func__); |
3374 | 3374 | ||