On Thu, 18 Mar 2021 at 04:52, Hangbin Liu <liuhangbin@xxxxxxxxx> wrote: > > On Wed, Mar 17, 2021 at 01:03:02PM +0100, Toke Høiland-Jørgensen wrote: > > FYI, this no longer applies to bpf-next due to Björn's refactor in > > commit: ee75aef23afe ("bpf, xdp: Restructure redirect actions") > > Thanks Toke, I need to see how to get the map via map_id, does > bpf_map_get_curr_or_next() works? Should I call bpf_map_put() after using? > > The ri->flags = flags also need to be add back as we need to use the flags > value. > Hmm, I was under the impression that ri->flags was only to be used by the new bpf_redirect_map_multi(), but now I see that you're planning to use the bpf_redirect_map instead. Well... I guess the flag is back then. Björn