nfp: bpf: add offload of TC direct action mode
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 21 Sep 2016 10:44:07 +0000 (11:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Sep 2016 23:50:03 +0000 (19:50 -0400)
commite3b8baf0ca2a69f88846b5446234e5647ecd17eb
tree2aa115c6c6d17c055118a111518b8461b55aaa8c
parent2d18421debc29a338e6783c06fb75ab7b16fc9ba
nfp: bpf: add offload of TC direct action mode

Add offload of TC in direct action mode.  We just need
to provide appropriate checks in the verifier and
a new outro block to translate the exit codes to what
data path expects

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_bpf.h
drivers/net/ethernet/netronome/nfp/nfp_bpf_jit.c
drivers/net/ethernet/netronome/nfp/nfp_bpf_verifier.c
drivers/net/ethernet/netronome/nfp/nfp_net_offload.c