qlcnic: Fix RX/TX checksum setting for some adapter types
[opensuse:kernel-source.git] / patches.drivers / qlcnic-0055-qlcnic-Fix-RX-TX-checksum-setting-for-some-adapter-t.patch
1 From: Manish chopra <manish.chopra@qlogic.com>
2 Date: Wed, 30 Jan 2013 12:47:17 +0000
3 Subject: qlcnic: Fix RX/TX checksum setting for some adapter types
4 Patch-mainline: Queued in subsystem maintainer repository
5 Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
6 Git-commit: 22fd5ab4623883ea895e48b1288f97856294d17d
7 References: bnc#800999 FATE#313899
8
9 Signed-off-by: Manish chopra <manish.chopra@qlogic.com>
10 Signed-off-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
11 Signed-off-by: David S. Miller <davem@davemloft.net>
12 Acked-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
13 Acked-by: Benjamin Poirier <bpoirier@suse.de>
14 ---
15  drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c |    3 ++-
16  1 file changed, 2 insertions(+), 1 deletion(-)
17
18 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c
19 +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c
20 @@ -909,7 +909,8 @@ u32 qlcnic_fix_features(struct net_devic
21  {
22         struct qlcnic_adapter *adapter = netdev_priv(netdev);
23  
24 -       if ((adapter->flags & QLCNIC_ESWITCH_ENABLED)) {
25 +       if ((adapter->flags & QLCNIC_ESWITCH_ENABLED) &&
26 +           qlcnic_82xx_check(adapter))  {
27                 u32 changed = features ^ netdev->features;
28                 features ^= changed & (NETIF_F_ALL_CSUM | NETIF_F_RXCSUM);
29         }