net/tap: add eBPF API
authorOphir Munk <ophirmu@mellanox.com>
Sat, 20 Jan 2018 21:11:35 +0000 (21:11 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Sun, 21 Jan 2018 14:51:52 +0000 (15:51 +0100)
commitb02d85e19cc8a1a175e0596d100a64501da8e531
treeff94b1956fff986322811aca424dfba0e312ce39
parentaabe70df73a3b9ae42cb7e285d424257b4482ed7
net/tap: add eBPF API

This commit include BPF API to be used by TAP.

tap_flow_bpf_cls_q() - download to kernel BPF program that classifies
packets to their matching queues
tap_flow_bpf_calc_l3_l4_hash() - download to kernel BPF program that
calculates per packet layer 3 and layer 4 RSS hash
tap_flow_bpf_rss_map_create() - create BPF RSS map for storing RSS
parameters per RSS rule
tap_flow_bpf_update_rss_elem() - update BPF map entry with RSS rule
parameters

Signed-off-by: Ophir Munk <ophirmu@mellanox.com>
Acked-by: Pascal Mazon <pascal.mazon@6wind.com>
drivers/net/tap/Makefile
drivers/net/tap/tap_bpf.h [new file with mode: 0644]
drivers/net/tap/tap_bpf_api.c [new file with mode: 0644]
drivers/net/tap/tap_flow.h