Commit 91aae1e5 authored by Anton Blanchard's avatar Anton Blanchard Committed by David S. Miller

ibmveth: Checksum offload is always disabled

Commit b9367bf3 (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: default avatarAnton Blanchard <anton@samba.org>
Cc: <stable@kernel.org> # 3.0+
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b93da27f
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment