On 8/7/19 6:36 AM, Jesper Dangaard Brouer wrote: > This address the TODO in samples/bpf/xdp_fwd_kern.c, which points out > that the chosen egress index should be checked for existence in the > devmap. This can now be done via taking advantage of Toke's work in > commit 0cdbb4b09a06 ("devmap: Allow map lookups from eBPF"). > > This change makes xdp_fwd more practically usable, as this allows for > a mixed environment, where IP-forwarding fallback to network stack, if > the egress device isn't configured to use XDP. > > Signed-off-by: Jesper Dangaard Brouer <brouer@xxxxxxxxxx> > --- > samples/bpf/xdp_fwd_kern.c | 20 ++++++++++++++------ > samples/bpf/xdp_fwd_user.c | 36 +++++++++++++++++++++++++----------- > 2 files changed, 39 insertions(+), 17 deletions(-) > Reviewed-by: David Ahern <dsahern@xxxxxxxxx>