summaryrefslogtreecommitdiff
path: root/drivers/net/ibmveth.c
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2011-09-07 14:41:05 +0000
committerGreg Kroah-Hartman <gregkh@suse.de>2011-10-03 11:40:32 -0700
commit2e4caf2e0b5a96f5cfa838108a3a1b934cf7f4f7 (patch)
tree9b9fbf87a3ae037ba1593c75d43d80dac5e8a6ca /drivers/net/ibmveth.c
parent83bc0ed804595195df6bc8c5773db5594884e2e7 (diff)
downloadlinux-2e4caf2e0b5a96f5cfa838108a3a1b934cf7f4f7.tar.gz
ibmveth: Checksum offload is always disabled
commit 91aae1e5c407d4fc79f6983e6c6ba04756c004cb upstream. Commit b9367bf3ee6d (net: ibmveth: convert to hw_features) reversed a check in ibmveth_set_csum_offload that results in checksum offload never being enabled. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/net/ibmveth.c')
-rw-r--r--drivers/net/ibmveth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ibmveth.c b/drivers/net/ibmveth.c
index 448d74ddf85f..145c924e278f 100644
--- a/drivers/net/ibmveth.c
+++ b/drivers/net/ibmveth.c
@@ -811,7 +811,7 @@ static int ibmveth_set_csum_offload(struct net_device *dev, u32 data)
} else
adapter->fw_ipv6_csum_support = data;
- if (ret != H_SUCCESS || ret6 != H_SUCCESS)
+ if (ret == H_SUCCESS || ret6 == H_SUCCESS)
adapter->rx_csum = data;
else
rc1 = -EIO;