* [PATCH net v2] octeon_ep_vf: Resolve netdevice usage count issue
@ 2025-04-14 9:18 Sathesh B Edara
2025-04-15 18:44 ` Simon Horman
0 siblings, 1 reply; 2+ messages in thread
From: Sathesh B Edara @ 2025-04-14 9:18 UTC (permalink / raw)
To: netdev, linux-kernel
Cc: hgani, vimleshk, Veerasenareddy Burru, Sathesh Edara,
Shinas Rasheed, Satananda Burla, Andrew Lunn, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni
Address the netdevice usage count problem in the following scenarios:
- When the interface is down
- During transmit queue timeouts
Fixes: cb7dd712189f ("octeon_ep_vf: Add driver framework and device initialization")
Signed-off-by: Sathesh B Edara <sedara@marvell.com>
---
Changes:
V2:
- Removed redundant call
drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c b/drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c
index 18c922dd5fc6..5d033bc66bdf 100644
--- a/drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c
+++ b/drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c
@@ -819,7 +819,6 @@ static void octep_vf_tx_timeout_task(struct work_struct *work)
octep_vf_open(netdev);
}
rtnl_unlock();
- netdev_put(netdev, NULL);
}
/**
@@ -834,7 +833,6 @@ static void octep_vf_tx_timeout(struct net_device *netdev, unsigned int txqueue)
{
struct octep_vf_device *oct = netdev_priv(netdev);
- netdev_hold(netdev, NULL, GFP_ATOMIC);
schedule_work(&oct->tx_timeout_task);
}
--
2.36.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net v2] octeon_ep_vf: Resolve netdevice usage count issue
2025-04-14 9:18 [PATCH net v2] octeon_ep_vf: Resolve netdevice usage count issue Sathesh B Edara
@ 2025-04-15 18:44 ` Simon Horman
0 siblings, 0 replies; 2+ messages in thread
From: Simon Horman @ 2025-04-15 18:44 UTC (permalink / raw)
To: Sathesh B Edara
Cc: netdev, linux-kernel, hgani, vimleshk, Veerasenareddy Burru,
Shinas Rasheed, Satananda Burla, Andrew Lunn, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni
On Mon, Apr 14, 2025 at 02:18:55AM -0700, Sathesh B Edara wrote:
> Address the netdevice usage count problem in the following scenarios:
> - When the interface is down
> - During transmit queue timeouts
Hi Sathesh,
I think it would be useful to include a bit more information in
the commit message describing:
1. Why these references were added / why they are not needed there
2. Why this can lead to incorrect reference counts end up being incorrect
in the two scenarios you mention above
Thanks!
>
> Fixes: cb7dd712189f ("octeon_ep_vf: Add driver framework and device initialization")
> Signed-off-by: Sathesh B Edara <sedara@marvell.com>
...
--
pw-bot: changes-requested
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-04-15 18:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-14 9:18 [PATCH net v2] octeon_ep_vf: Resolve netdevice usage count issue Sathesh B Edara
2025-04-15 18:44 ` Simon Horman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).