Re: [V3 PATCH net] xdp: implement xdp_redirect_map for generic XDP

2017-09-11 Thread David Miller
From: Jesper Dangaard Brouer Date: Sun, 10 Sep 2017 09:47:02 +0200 > Using bpf_redirect_map is allowed for generic XDP programs, but the > appropriate map lookup was never performed in xdp_do_generic_redirect(). > > Instead the map-index is directly used as the ifindex. For

[V3 PATCH net] xdp: implement xdp_redirect_map for generic XDP

2017-09-10 Thread Jesper Dangaard Brouer
Using bpf_redirect_map is allowed for generic XDP programs, but the appropriate map lookup was never performed in xdp_do_generic_redirect(). Instead the map-index is directly used as the ifindex. For the xdp_redirect_map sample in SKB-mode '-S', this resulted in trying sending on ifindex 0 which