summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/netronome/nfp/bpf/offload.c
diff options
context:
space:
mode:
authorNitin Hande <nitin.hande@gmail.com>2018-10-29 07:02:45 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2018-11-09 12:14:54 +0300
commitc8123ead13a5c92dc5fd15c0fdfe88eef41e6ac1 (patch)
treebcaf2c624e5c4cf7f51fb33dd1c4bf115cc6c3fb /drivers/net/ethernet/netronome/nfp/bpf/offload.c
parentbf598a8f0f771302d4ecb0ef0003c54732221597 (diff)
downloadlinux-c8123ead13a5c92dc5fd15c0fdfe88eef41e6ac1.tar.xz
bpf: Extend the sk_lookup() helper to XDP hookpoint.
This patch proposes to extend the sk_lookup() BPF API to the XDP hookpoint. The sk_lookup() helper supports a lookup on incoming packet to find the corresponding socket that will receive this packet. Current support for this BPF API is at the tc hookpoint. This patch will extend this API at XDP hookpoint. A XDP program can map the incoming packet to the 5-tuple parameter and invoke the API to find the corresponding socket structure. Signed-off-by: Nitin Hande <Nitin.Hande@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'drivers/net/ethernet/netronome/nfp/bpf/offload.c')
0 files changed, 0 insertions, 0 deletions