projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44ae12a
)
net: sched: remove tc_can_offload check from egdev call
author
Jiri Pirko
<jiri@mellanox.com>
Wed, 1 Nov 2017 10:47:40 +0000
(11:47 +0100)
committer
David S. Miller
<davem@davemloft.net>
Thu, 2 Nov 2017 07:10:39 +0000
(16:10 +0900)
Since the only user, mlx5 driver does the check in
mlx5e_setup_tc_block_cb, no need to check here.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_api.c
patch
|
blob
|
history
diff --git
a/net/sched/cls_api.c
b/net/sched/cls_api.c
index 15e3216ef25db5af3b493a7abc50539fd910107b..a26c690b48ace997d958fa095c163efbeb8cb0c0 100644
(file)
--- a/
net/sched/cls_api.c
+++ b/
net/sched/cls_api.c
@@
-1206,7
+1206,7
@@
static int tc_exts_setup_cb_egdev_call(struct tcf_exts *exts,
if (!a->ops->get_dev)
continue;
dev = a->ops->get_dev(a);
- if (!dev
|| !tc_can_offload(dev)
)
+ if (!dev)
continue;
ret = tc_setup_cb_egdev_call(dev, type, type_data, err_stop);
if (ret < 0)