summaryrefslogtreecommitdiffstats
path: root/net/sched/cls_flower.c
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2017-08-07 10:15:30 +0200
committerDavid S. Miller <davem@davemloft.net>2017-08-07 18:42:37 +0200
commitd7c1c8d2e53be974b5c72e31d7d35f6d9737fe84 (patch)
tree8e05b777bd9757d47013f32480472d915f58b167 /net/sched/cls_flower.c
parentnet: sched: push cls related args into cls_common structure (diff)
downloadlinux-d7c1c8d2e53be974b5c72e31d7d35f6d9737fe84.tar.xz
linux-d7c1c8d2e53be974b5c72e31d7d35f6d9737fe84.zip
net: sched: move prio into cls_common
prio is not cls_flower specific, but it is meaningful for all classifiers. Seems that only mlxsw cares about the value. Obviously, cls offload in other drivers is broken. 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>
Diffstat (limited to 'net/sched/cls_flower.c')
-rw-r--r--net/sched/cls_flower.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/sched/cls_flower.c b/net/sched/cls_flower.c
index 1fdf2889ba9f..ccdf2f5014ca 100644
--- a/net/sched/cls_flower.c
+++ b/net/sched/cls_flower.c
@@ -234,7 +234,6 @@ static void fl_hw_destroy_filter(struct tcf_proto *tp, struct cls_fl_filter *f)
tc_cls_common_offload_init(&offload.common, tp);
offload.command = TC_CLSFLOWER_DESTROY;
- offload.prio = tp->prio;
offload.cookie = (unsigned long)f;
tc->cls_flower = &offload;
@@ -266,7 +265,6 @@ static int fl_hw_replace_filter(struct tcf_proto *tp,
tc_cls_common_offload_init(&offload.common, tp);
offload.command = TC_CLSFLOWER_REPLACE;
- offload.prio = tp->prio;
offload.cookie = (unsigned long)f;
offload.dissector = dissector;
offload.mask = mask;
@@ -295,7 +293,6 @@ static void fl_hw_update_stats(struct tcf_proto *tp, struct cls_fl_filter *f)
tc_cls_common_offload_init(&offload.common, tp);
offload.command = TC_CLSFLOWER_STATS;
- offload.prio = tp->prio;
offload.cookie = (unsigned long)f;
offload.exts = &f->exts;