mtahhan@xxxxxxxxxx writes: > From: Maryam Tahhan <mtahhan@xxxxxxxxxx> > > Add documentation for BPF_MAP_TYPE_DEVMAP and > BPF_MAP_TYPE_DEVMAP_HASH including kernel version > introduced, usage and examples. > > Add documentation that describes XDP_REDIRECT. > > Signed-off-by: Maryam Tahhan <mtahhan@xxxxxxxxxx> With one small nit below: Acked-by: Toke Høiland-Jørgensen <toke@xxxxxxxxxx> [...] > +The following code snippet shows a BPF program that is broadcasting packets to > +all the interfaces in the ``tx_port`` devmap. > + > +.. code-block:: c > + > + SEC("xdp") > + int xdp_redirect_map_func(struct xdp_md *ctx) > + { > + int index = ctx->ingress_ifindex; Let's get rid of this index variable (it's not used). > + return bpf_redirect_map(&tx_port, 0, BPF_F_BROADCAST | BPF_F_EXCLUDE_INGRESS); > + } -Toke