[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200626075906.GA2206@localhost.localdomain>
Date: Fri, 26 Jun 2020 09:59:06 +0200
From: Lorenzo Bianconi <lorenzo@...nel.org>
To: Daniel Borkmann <daniel@...earbox.net>
Cc: netdev@...r.kernel.org, bpf@...r.kernel.org, davem@...emloft.net,
ast@...nel.org, brouer@...hat.com, toke@...hat.com,
lorenzo.bianconi@...hat.com, dsahern@...nel.org,
andrii.nakryiko@...il.com
Subject: Re: [PATCH v4 bpf-next 6/9] bpf: cpumap: implement XDP_REDIRECT for
eBPF programs attached to map entries
> On 6/24/20 5:33 PM, Lorenzo Bianconi wrote:
[...]
> > + 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
>
> > return nframes;
> >
>
Download attachment "signature.asc" of type "application/pgp-signature" (229 bytes)
Powered by blists - more mailing lists