]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ibmveth: Checksum offload is always disabled
authorAnton Blanchard <anton@samba.org>
Wed, 7 Sep 2011 14:41:05 +0000 (14:41 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 Oct 2011 18:40:32 +0000 (11:40 -0700)
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>
drivers/net/ibmveth.c

index 448d74ddf85f6b5eb3b1bd21586063168f82be78..145c924e278f442b8bdfce9bca42b757079f5cba 100644 (file)
@@ -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;