diff options
author | Zhengchao Shao <shaozhengchao@huawei.com> | 2022-08-31 11:29:19 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-09-02 05:08:32 +0200 |
commit | 75aad41ac3cf3d8d1d2bdbcaf0f662402c1e6c02 (patch) | |
tree | 1950d53e8ee7a9b6a41ef53569be1f52e6c1b386 /net/sched/sch_etf.c | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net (diff) | |
download | linux-75aad41ac3cf3d8d1d2bdbcaf0f662402c1e6c02.tar.xz linux-75aad41ac3cf3d8d1d2bdbcaf0f662402c1e6c02.zip |
net: sched: etf: remove true check in etf_enable_offload()
etf_enable_offload() is only called when q->offload is false in
etf_init(). So remove true check in etf_enable_offload().
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Acked-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Link: https://lore.kernel.org/r/20220831092919.146149-1-shaozhengchao@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/sched/sch_etf.c')
-rw-r--r-- | net/sched/sch_etf.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/sched/sch_etf.c b/net/sched/sch_etf.c index d96103b0e2bf..61d1f0e32cf3 100644 --- a/net/sched/sch_etf.c +++ b/net/sched/sch_etf.c @@ -323,9 +323,6 @@ static int etf_enable_offload(struct net_device *dev, struct etf_sched_data *q, struct tc_etf_qopt_offload etf = { }; int err; - if (q->offload) - return 0; - if (!ops->ndo_setup_tc) { NL_SET_ERR_MSG(extack, "Specified device does not support ETF offload"); return -EOPNOTSUPP; |