net: sched: make type an argument for ndo_setup_tc
Since the type is always present, push it to be a separate argument to ndo_setup_tc. On the way, name the type enum and use it for arg type. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
1afec92be0
commit
2572ac53c4
@@ -151,7 +151,6 @@ static int cls_bpf_offload_cmd(struct tcf_proto *tp, struct cls_bpf_prog *prog,
|
||||
struct tc_to_netdev offload;
|
||||
int err;
|
||||
|
||||
offload.type = TC_SETUP_CLSBPF;
|
||||
offload.cls_bpf = &bpf_offload;
|
||||
|
||||
bpf_offload.command = cmd;
|
||||
@@ -161,7 +160,8 @@ static int cls_bpf_offload_cmd(struct tcf_proto *tp, struct cls_bpf_prog *prog,
|
||||
bpf_offload.exts_integrated = prog->exts_integrated;
|
||||
bpf_offload.gen_flags = prog->gen_flags;
|
||||
|
||||
err = dev->netdev_ops->ndo_setup_tc(dev, tp->q->handle,
|
||||
err = dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_CLSBPF,
|
||||
tp->q->handle,
|
||||
tp->chain->index,
|
||||
tp->protocol, &offload);
|
||||
|
||||
|
Reference in New Issue
Block a user