net/tap: add eBPF program file
authorOphir Munk <ophirmu@mellanox.com>
Sat, 20 Jan 2018 21:11:33 +0000 (21:11 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Sun, 21 Jan 2018 14:51:52 +0000 (15:51 +0100)
commitcdc07e83bb2499e5ba535784cb8ff821ac76193f
tree56259df9f0090b19c233bdf65d76a7e1ae2a3bd7
parentfb847dcf73dc2959b3620bed13ce60ee861578d5
net/tap: add eBPF program file

File tap_bpf_program.c was added with two ELF sections
corresponding to two BPF programs and one BPF map.

Section cls_q - BPF classifier to classify packets to their
corresponding queue after an RSS hash was calculated on the packet
and saved in skb->cb[1]
Section l3_l4 - BPF action to calculate RSS hash on packet
layers 3 and 4
This file is not part of DPDK tree compilation.

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