projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60ad110
)
net: sched: etf: remove true check in etf_enable_offload()
author
Zhengchao Shao
<shaozhengchao@huawei.com>
Wed, 31 Aug 2022 09:29:19 +0000
(17:29 +0800)
committer
Jakub Kicinski
<kuba@kernel.org>
Fri, 2 Sep 2022 03:08:32 +0000
(20:08 -0700)
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>
net/sched/sch_etf.c
patch
|
blob
|
history
diff --git
a/net/sched/sch_etf.c
b/net/sched/sch_etf.c
index
d96103b
..
61d1f0e
100644
(file)
--- 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;