]> git.baikalelectronics.ru Git - kernel.git/commit
qed: Fix overriding offload_tc by protocols without APP TLV
authorDenis Bolotin <denis.bolotin@cavium.com>
Mon, 12 Nov 2018 10:50:21 +0000 (12:50 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Nov 2018 16:51:16 +0000 (08:51 -0800)
commitf726c891f3c97311bab1dd1ffc65515f0b3bcf81
treed0a7fef50eefff098ff56395139cc9768842b31a
parenta3dd9c89260375574607b18bd599eebc4ef30d3f
qed: Fix overriding offload_tc by protocols without APP TLV

The TC received from APP TLV is stored in offload_tc, and should not be
set by protocols which did not receive an APP TLV. Fixed the condition
when overriding the offload_tc.

Signed-off-by: Denis Bolotin <denis.bolotin@cavium.com>
Signed-off-by: Michal Kalderon <michal.kalderon@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_dcbx.c