From: Simon Horman <hidden> Date: 2021-10-29 11:29:23
Hi,
this series contains fixes for two bugs introduced when
when adaptive coalesce support was added to the NFP driver in
v5.15 by 9d32e4e7e9e1 ("nfp: add support for coalesce adaptive feature")
Yinjun Zhang (2):
nfp: fix NULL pointer access when scheduling dim work
nfp: fix potential deadlock when canceling dim work
drivers/net/ethernet/netronome/nfp/nfp_net_common.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
--
2.20.1
From: Simon Horman <hidden> Date: 2021-10-29 11:29:27
From: Yinjun Zhang <redacted>
Each rx/tx ring has a related dim work, when rx/tx ring number is
decreased by `ethtool -L`, the corresponding rx_ring or tx_ring is
assigned NULL, while its related work is not destroyed. When scheduled,
the work will access NULL pointer.
Fixes: 9d32e4e7e9e1 ("nfp: add support for coalesce adaptive feature")
Signed-off-by: Yinjun Zhang <redacted>
Signed-off-by: Louis Peens <redacted>
Signed-off-by: Simon Horman <redacted>
---
drivers/net/ethernet/netronome/nfp/nfp_net_common.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
From: Simon Horman <hidden> Date: 2021-10-29 11:29:30
From: Yinjun Zhang <redacted>
When port is linked down, the process which has acquired rtnl_lock
will wait for the in-progress dim work to finish, and the work also
acquires rtnl_lock, which may cause deadlock.
Currently IRQ_MOD registers can be configured by `ethtool -C` and
dim work, and which will take effect depends on the execution order,
rtnl_lock is useless here, so remove them.
Fixes: 9d32e4e7e9e1 ("nfp: add support for coalesce adaptive feature")
Signed-off-by: Yinjun Zhang <redacted>
Signed-off-by: Louis Peens <redacted>
Signed-off-by: Simon Horman <redacted>
---
drivers/net/ethernet/netronome/nfp/nfp_net_common.c | 4 ----
1 file changed, 4 deletions(-)
Hello:
This series was applied to netdev/net.git (master)
by David S. Miller [off-list ref]:
On Fri, 29 Oct 2021 13:29:01 +0200 you wrote:
Hi,
this series contains fixes for two bugs introduced when
when adaptive coalesce support was added to the NFP driver in
v5.15 by 9d32e4e7e9e1 ("nfp: add support for coalesce adaptive feature")
Yinjun Zhang (2):
nfp: fix NULL pointer access when scheduling dim work
nfp: fix potential deadlock when canceling dim work
[...]