OrangePi_CM5/drivers/net/ethernet/broadcom/bnxt
Sriharsha Basavapatna 3d59416647 bnxt_en: reject indirect blk offload when hw-tc-offload is off
[ Upstream commit b0757491a118ae5727cf9f1c3a11544397d46596 ]

The driver does not check if hw-tc-offload is enabled for the device
before offloading a flow in the context of indirect block callback.
Fix this by checking NETIF_F_HW_TC in the features flag and rejecting
the offload request.  This will avoid unnecessary dmesg error logs when
hw-tc-offload is disabled, such as these:

bnxt_en 0000:19:00.1 eno2np1: dev(ifindex=294) not on same switch
bnxt_en 0000:19:00.1 eno2np1: Error: bnxt_tc_add_flow: cookie=0xffff8dace1c88000 error=-22
bnxt_en 0000:19:00.0 eno1np0: dev(ifindex=294) not on same switch
bnxt_en 0000:19:00.0 eno1np0: Error: bnxt_tc_add_flow: cookie=0xffff8dace1c88000 error=-22

Reported-by: Marcelo Ricardo Leitner <mleitner@redhat.com>
Fixes: 627c89d00f ("bnxt_en: flow_offload: offload tunnel decap rules via indirect callbacks")
Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-11-26 10:39:14 +01:00
..
Makefile
…
bnxt.c bnxt_en: Fix TX timeout when TX ring size is set to the smallest 2021-09-30 10:11:02 +02:00
bnxt.h bnxt_en: Fix TX timeout when TX ring size is set to the smallest 2021-09-30 10:11:02 +02:00
bnxt_coredump.h
…
bnxt_dcb.c
…
bnxt_dcb.h
…
bnxt_debugfs.c
…
bnxt_debugfs.h
…
bnxt_devlink.c bnxt_en: Fix asic.rev in devlink dev info command 2021-09-22 12:28:06 +02:00
bnxt_devlink.h
…
bnxt_dim.c
…
bnxt_ethtool.c bnxt_en: Fix TX timeout when TX ring size is set to the smallest 2021-09-30 10:11:02 +02:00
bnxt_ethtool.h
…
bnxt_fw_hdr.h
…
bnxt_hsi.h
…
bnxt_nvm_defs.h
…
bnxt_sriov.c
…
bnxt_sriov.h
…
bnxt_tc.c bnxt_en: reject indirect blk offload when hw-tc-offload is off 2021-11-26 10:39:14 +01:00
bnxt_tc.h
…
bnxt_ulp.c bnxt_en: Refresh RoCE capabilities in bnxt_ulp_probe() 2021-07-28 14:35:39 +02:00
bnxt_ulp.h
…
bnxt_vfr.c
…
bnxt_vfr.h
…
bnxt_xdp.c
…
bnxt_xdp.h
…