diff options
author | Baowen Zheng <baowen.zheng@corigine.com> | 2021-12-17 19:16:18 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-12-19 15:08:47 +0100 |
commit | 144d4c9e800da1230d817bbd50068a22e4cc688e (patch) | |
tree | 6adcf2aa46794b4c377b3cf30b456272248be3e7 /drivers/net/ethernet/broadcom/bnxt | |
parent | flow_offload: fill flags to action structure (diff) | |
download | linux-144d4c9e800da1230d817bbd50068a22e4cc688e.tar.xz linux-144d4c9e800da1230d817bbd50068a22e4cc688e.zip |
flow_offload: reject to offload tc actions in offload drivers
A follow-up patch will allow users to offload tc actions independent of
classifier in the software datapath.
In preparation for this, teach all drivers that support offload of the flow
tables to reject such configuration as currently none of them support it.
Signed-off-by: Baowen Zheng <baowen.zheng@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnxt')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c index 1471b6130a2b..d8afcf8d6b30 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c @@ -1962,7 +1962,7 @@ static int bnxt_tc_setup_indr_cb(struct net_device *netdev, struct Qdisc *sch, v void *data, void (*cleanup)(struct flow_block_cb *block_cb)) { - if (!bnxt_is_netdev_indr_offload(netdev)) + if (!netdev || !bnxt_is_netdev_indr_offload(netdev)) return -EOPNOTSUPP; switch (type) { |