RE: [Patch bpf-next v8 07/16] sock_map: simplify sock_map_link() a bit

2021-03-31 Thread John Fastabend
Cong Wang wrote: > From: Cong Wang > > sock_map_link() passes down map progs, but it is confusing > to see both map progs and psock progs. Make the map progs > more obvious by retrieving it directly with sock_map_progs() > inside sock_map_link(). Now it is aligned with > sock_map_link_no_progs()

[Patch bpf-next v8 07/16] sock_map: simplify sock_map_link() a bit

2021-03-30 Thread Cong Wang
From: Cong Wang sock_map_link() passes down map progs, but it is confusing to see both map progs and psock progs. Make the map progs more obvious by retrieving it directly with sock_map_progs() inside sock_map_link(). Now it is aligned with sock_map_link_no_progs() too. Cc: Daniel Borkmann Cc: