public inbox for bpf@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf 0/2] Two fixes for cpu-map
@ 2023-07-29  9:51 Hou Tao
  2023-07-29  9:51 ` [PATCH bpf 1/2] bpf, cpumap: Make sure kthread is running before map update returns Hou Tao
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Hou Tao @ 2023-07-29  9:51 UTC (permalink / raw)
  To: bpf
  Cc: netdev, David S . Miller, Jakub Kicinski, Jesper Dangaard Brouer,
	John Fastabend, Björn Töpel,
	Toke Høiland-Jørgensen, Martin KaFai Lau,
	Alexei Starovoitov, Andrii Nakryiko, Song Liu, Hao Luo,
	Yonghong Song, Daniel Borkmann, KP Singh, Stanislav Fomichev,
	Jiri Olsa, Pu Lehui, houtao1

From: Hou Tao <houtao1@huawei.com>

Hi,

The patchset fixes two reported warning in cpu-map when running
xdp_redirect_cpu and some RT threads concurrently. Patch #1 fixes
the warning in __cpu_map_ring_cleanup() when kthread is stopped
prematurely. Patch #2 fixes the warning in __xdp_return() when
there are pending skbs in ptr_ring.

Please see individual patches for more details. And comments are always
welcome.

Regards,
Tao

Hou Tao (2):
  bpf, cpumap: Make sure kthread is running before map update returns
  bpf, cpumap: Handle skb as well when clean up ptr_ring

 kernel/bpf/cpumap.c | 35 +++++++++++++++++++++--------------
 1 file changed, 21 insertions(+), 14 deletions(-)

-- 
2.29.2


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

end of thread, other threads:[~2023-07-31 22:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-29  9:51 [PATCH bpf 0/2] Two fixes for cpu-map Hou Tao
2023-07-29  9:51 ` [PATCH bpf 1/2] bpf, cpumap: Make sure kthread is running before map update returns Hou Tao
2023-07-29 10:21   ` Pu Lehui
2023-07-31  9:51   ` Jesper Dangaard Brouer
2023-07-29  9:51 ` [PATCH bpf 2/2] bpf, cpumap: Handle skb as well when clean up ptr_ring Hou Tao
2023-07-31 10:09   ` Jesper Dangaard Brouer
2023-07-31 22:57 ` [PATCH bpf 0/2] Two fixes for cpu-map Martin KaFai Lau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox