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)
commite90202ed1cf9672c48a363c84a929932ebfe6fc0
treed0a7fef50eefff098ff56395139cc9768842b31a
parent9aaa4e8ba12972d674caeefbc5f88d83235dd697
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