netdevsim: bpf: remove unused variable
skip_sw is set but no longer used. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
fd5ebbc75c
commit
40946e93b3
|
@ -107,7 +107,6 @@ int nsim_bpf_setup_tc_block_cb(enum tc_setup_type type,
|
||||||
struct tc_cls_bpf_offload *cls_bpf = type_data;
|
struct tc_cls_bpf_offload *cls_bpf = type_data;
|
||||||
struct bpf_prog *prog = cls_bpf->prog;
|
struct bpf_prog *prog = cls_bpf->prog;
|
||||||
struct netdevsim *ns = cb_priv;
|
struct netdevsim *ns = cb_priv;
|
||||||
bool skip_sw;
|
|
||||||
|
|
||||||
if (type != TC_SETUP_CLSBPF ||
|
if (type != TC_SETUP_CLSBPF ||
|
||||||
!tc_can_offload(ns->netdev) ||
|
!tc_can_offload(ns->netdev) ||
|
||||||
|
@ -115,8 +114,6 @@ int nsim_bpf_setup_tc_block_cb(enum tc_setup_type type,
|
||||||
cls_bpf->common.chain_index)
|
cls_bpf->common.chain_index)
|
||||||
return -EOPNOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
|
|
||||||
skip_sw = cls_bpf->gen_flags & TCA_CLS_FLAGS_SKIP_SW;
|
|
||||||
|
|
||||||
if (nsim_xdp_offload_active(ns))
|
if (nsim_xdp_offload_active(ns))
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue