[patch net-next 3/4] net: sched: remove tc_can_offload check from egdev call

Jiri Pirko
2017-10-25T14:35:04Z

From: Jiri Pirko <jiri@mellanox.com>

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>
---
net/sched/cls_api.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c
index 0636c19..81e1eb3 100644
--- a/net/sched/cls_api.c
+++ b/net/sched/cls_api.c
@@ -1194,7 +1194,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)
--
2.9.5