All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v2] nfp: use list_move instead of list_del/list_add in nfp_cppcore.c
@ 2021-06-09  7:09 Baokun Li
  2021-06-09  8:58 ` Simon Horman
  2021-06-09 21:10 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Baokun Li @ 2021-06-09  7:09 UTC (permalink / raw)
  To: linux-kernel, Simon Horman, David S. Miller, Jakub Kicinski
  Cc: weiyongjun1, yuehaibing, yangjihong1, yukuai3, libaokun1,
	oss-drivers, netdev, kernel-janitors, Hulk Robot

Using list_move() instead of list_del() + list_add() in nfp_cppcore.c.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Baokun Li <libaokun1@huawei.com>
---
V1->V2:
	CC mailist

 .../ethernet/netronome/nfp/nfpcore/nfp_cppcore.c   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c b/drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c
index 94994a939277..d7ac0307797f 100644
--- a/drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c
+++ b/drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c
@@ -905,8 +905,7 @@ area_cache_put(struct nfp_cpp *cpp, struct nfp_cpp_area_cache *cache)
 		return;
 
 	/* Move to front of LRU */
-	list_del(&cache->entry);
-	list_add(&cache->entry, &cpp->area_cache_list);
+	list_move(&cache->entry, &cpp->area_cache_list);
 
 	mutex_unlock(&cpp->area_cache_mutex);
 }


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next v2] nfp: use list_move instead of list_del/list_add in nfp_cppcore.c
  2021-06-09  7:09 [PATCH net-next v2] nfp: use list_move instead of list_del/list_add in nfp_cppcore.c Baokun Li
@ 2021-06-09  8:58 ` Simon Horman
  2021-06-09 21:10 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: Simon Horman @ 2021-06-09  8:58 UTC (permalink / raw)
  To: Baokun Li
  Cc: linux-kernel, David S. Miller, Jakub Kicinski, weiyongjun1,
	yuehaibing, yangjihong1, yukuai3, oss-drivers, netdev,
	kernel-janitors, Hulk Robot

On Wed, Jun 09, 2021 at 03:09:21PM +0800, Baokun Li wrote:
> Using list_move() instead of list_del() + list_add() in nfp_cppcore.c.
> 
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Baokun Li <libaokun1@huawei.com>

Reviewed-by: Simon Horman <simon.horman@corigine.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next v2] nfp: use list_move instead of list_del/list_add in nfp_cppcore.c
  2021-06-09  7:09 [PATCH net-next v2] nfp: use list_move instead of list_del/list_add in nfp_cppcore.c Baokun Li
  2021-06-09  8:58 ` Simon Horman
@ 2021-06-09 21:10 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-06-09 21:10 UTC (permalink / raw)
  To: Baokun Li
  Cc: linux-kernel, simon.horman, davem, kuba, weiyongjun1, yuehaibing,
	yangjihong1, yukuai3, oss-drivers, netdev, kernel-janitors,
	hulkci

Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

On Wed, 9 Jun 2021 15:09:21 +0800 you wrote:
> Using list_move() instead of list_del() + list_add() in nfp_cppcore.c.
> 
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Baokun Li <libaokun1@huawei.com>
> ---
> V1->V2:
> 	CC mailist
> 
> [...]

Here is the summary with links:
  - [net-next,v2] nfp: use list_move instead of list_del/list_add in nfp_cppcore.c
    https://git.kernel.org/netdev/net-next/c/39c3783ec062

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-09 21:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-09  7:09 [PATCH net-next v2] nfp: use list_move instead of list_del/list_add in nfp_cppcore.c Baokun Li
2021-06-09  8:58 ` Simon Horman
2021-06-09 21:10 ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.