Re: [Bridge] [RFC bpf-next 1/2] net: bridge: add unstable br_fdb_find_port_from_ifindex helper

2022-01-24 Thread Nikolay Aleksandrov via Bridge
On 24/01/2022 19:20, Lorenzo Bianconi wrote: > Similar to bpf_xdp_ct_lookup routine, introduce > br_fdb_find_port_from_ifindex unstable helper in order to accelerate > linux bridge with XDP. br_fdb_find_port_from_ifindex will perform a > lookup in the associated bridge fdb table and it will return

Re: [Bridge] [RFC bpf-next 1/2] net: bridge: add unstable br_fdb_find_port_from_ifindex helper

2022-01-24 Thread Alexei Starovoitov
On Mon, Jan 24, 2022 at 10:32 AM Nikolay Aleksandrov wrote: > > > > +int br_fdb_find_port_from_ifindex(struct xdp_md *xdp_ctx, > > + struct bpf_fdb_lookup *opt, > > + u32 opt__sz) > > +{ > > + struct xdp_buff *ctx = (struct xdp_buff *