[PATCH net-next] net/mlx5e: remove napi_hash_del() calls
STALE3553d
5 messages,
3 authors,
2016-11-17 · open the first message on its own page
From: Eric Dumazet <edumazet@google.com>
Calling napi_hash_del() after netif_napi_del() is pointless.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Saeed Mahameed <redacted>
---
drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 4 ----
1 file changed, 4 deletions(-)
On Wed, 2016-11-16 at 05:55 -0800, Eric Dumazet wrote: From: Eric Dumazet <edumazet@google.com>
Calling napi_hash_del() after netif_napi_del() is pointless.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Saeed Mahameed <redacted>
---
drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 4 ----
1 file changed, 4 deletions(-)
Hmmm... missing body. Will send a v2.
From: Eric Dumazet <edumazet@google.com>
Calling napi_hash_del() after netif_napi_del() is pointless.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Saeed Mahameed <redacted>
---
drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c
index 52b4fd53b1a74d17b7b40efc279305fdb9ed7521..00579ce0e96fb8f992d93ddfa0e5fd58df25813a 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c @@ -1533,7 +1533,6 @@ static int mlx5e_open_channel(struct mlx5e_priv *priv, int ix,
err_napi_del :
netif_napi_del ( & c -> napi );
- napi_hash_del ( & c -> napi );
kfree ( c );
return err ; @@ -1554,9 +1553,6 @@ static void mlx5e_close_channel(struct mlx5e_channel *c)
mlx5e_close_cq ( & c -> icosq . cq );
netif_napi_del ( & c -> napi );
- napi_hash_del ( & c -> napi );
- synchronize_rcu ();
-
kfree ( c );
}
On Wed, Nov 16, 2016 at 4:21 PM, Eric Dumazet [off-list ref] wrote: From: Eric Dumazet <edumazet@google.com>
Calling napi_hash_del() after netif_napi_del() is pointless.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Saeed Mahameed <redacted>
Acked-by: Saeed Mahameed <redacted>
From: Eric Dumazet <redacted>
Date: Wed, 16 Nov 2016 06:21:34 -0800
From: Eric Dumazet <edumazet@google.com>
Calling napi_hash_del() after netif_napi_del() is pointless.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Applied, thanks Eric.