mirror of
https://github.com/torvalds/linux.git
synced 2026-03-14 02:06:15 +01:00
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>
This commit is contained in:
parent
60ad1100d5
commit
75aad41ac3
1 changed files with 0 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue