ibmveth: Checksum offload is always disabled
authorAnton Blanchard <anton@samba.org>
Wed, 7 Sep 2011 14:41:05 +0000 (14:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Sep 2011 19:26:32 +0000 (15:26 -0400)
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>
Cc: <stable@kernel.org> # 3.0+
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ibmveth.c

index 5b8b411d5a80f64afb2c409f6ce8e7da76845dca..07830f918aed91a0f8bf9e5009c861ae71959f27 100644 (file)
@@ -812,7 +812,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;