2018-04-11 12:17 UTC+0200 ~ Jesper Dangaard Brouer <brouer@xxxxxxxxxx> > On Tue, 10 Apr 2018 15:41:57 +0100 > Quentin Monnet <quentin.monnet@xxxxxxxxxxxxx> wrote: > >> diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h >> index 7343af4196c8..db090ad03626 100644 >> --- a/include/uapi/linux/bpf.h >> +++ b/include/uapi/linux/bpf.h >> @@ -1250,6 +1250,51 @@ union bpf_attr { >> * Return >> * 0 on success, or a negative error in case of failure. >> * >> + * int bpf_redirect_map(struct bpf_map *map, u32 key, u64 flags) >> + * Description >> + * Redirect the packet to the endpoint referenced by *map* at >> + * index *key*. Depending on its type, his *map* can contain >> + * references to net devices (for forwarding packets through other >> + * ports), or to CPUs (for redirecting XDP frames to another CPU; >> + * but this is not fully implemented as of this writing). > > Stating that CPUMAP redirect "is not fully implemented" is confusing. > The issue is that CPUMAP only works for "native" XDP. > > What about saying: > > "[...] or to CPUs (for redirecting XDP frames to another CPU; > but this is only implemented for native XDP as of this writing)" > Fine by me, I will change it. Thank you Jesper for the review! Quentin -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html