]> git.baikalelectronics.ru Git - kernel.git/commit
net: cpsw: disable napi in cpsw_ndo_open()
authorZhengchao Shao <shaozhengchao@huawei.com>
Wed, 9 Nov 2022 01:15:37 +0000 (09:15 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 10 Nov 2022 02:30:40 +0000 (18:30 -0800)
commit6d47b53fb3f363a74538a1dbd09954af3d8d4131
tree85e3d9f7f0417117e92626d6b309f93be2d78efb
parent27c064ae14d1a80c790ce019759500c95a2a9551
net: cpsw: disable napi in cpsw_ndo_open()

When failed to create xdp rxqs or fill rx channels in cpsw_ndo_open() for
opening device, napi isn't disabled. When open cpsw device next time, it
will report a invalid opcode issue. Compiled tested only.

Fixes: d354eb85d618 ("drivers: net: cpsw: dual_emac: simplify napi usage")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Link: https://lore.kernel.org/r/20221109011537.96975-1-shaozhengchao@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ti/cpsw.c