Commit 7612fb03 authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller

net: sched: remove tc_can_offload check from egdev call

Since the only user, mlx5 driver does the check in
mlx5e_setup_tc_block_cb, no need to check here.
Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 44ae12a7
...@@ -1206,7 +1206,7 @@ static int tc_exts_setup_cb_egdev_call(struct tcf_exts *exts, ...@@ -1206,7 +1206,7 @@ static int tc_exts_setup_cb_egdev_call(struct tcf_exts *exts,
if (!a->ops->get_dev) if (!a->ops->get_dev)
continue; continue;
dev = a->ops->get_dev(a); dev = a->ops->get_dev(a);
if (!dev || !tc_can_offload(dev)) if (!dev)
continue; continue;
ret = tc_setup_cb_egdev_call(dev, type, type_data, err_stop); ret = tc_setup_cb_egdev_call(dev, type, type_data, err_stop);
if (ret < 0) if (ret < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment