Thread (15 messages) 15 messages, 3 authors, 2020-06-26

Re: [PATCH v4 bpf-next 6/9] bpf: cpumap: implement XDP_REDIRECT for eBPF programs attached to map entries

From: Lorenzo Bianconi <lorenzo@kernel.org>
Date: 2020-06-26 07:59:22
Also in: bpf

On 6/24/20 5:33 PM, Lorenzo Bianconi wrote:
[...]
quoted
+	if (stats->redirect)
+		xdp_do_flush_map();
+
+	rcu_read_unlock_bh(); /* resched point, may call do_softirq() */
  	xdp_clear_return_frame_no_direct();
Hm, this looks incorrect. Why do you call the xdp_clear_return_frame_no_direct() /after/
the possibility where there is a rescheduling point for softirq?
Hi Daniel,

yes, right. Thx for spotting this, I will fix in v5.

Regards,
Lorenzo
quoted
  	return nframes;

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help