diff options
author | Jiri Pirko <jiri@mellanox.com> | 2017-11-01 11:47:40 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-02 16:10:39 +0900 |
commit | 7612fb0387d6ffcfc3173527466fe3f596657c58 (patch) | |
tree | 96e7cff7244bec827c2a5f3788876f1a579e63e1 | |
parent | 44ae12a768b7212976a362c590075716a77e8f28 (diff) |
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: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/sched/cls_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c index 15e3216ef25d..a26c690b48ac 100644 --- 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) |