nfp: bpf: support unaligned read offset
authorJiong Wang <jiong.wang@netronome.com>
Thu, 29 Mar 2018 00:48:26 +0000 (17:48 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 29 Mar 2018 02:36:12 +0000 (19:36 -0700)
commit91ff69e840f91016f464810e8940b99723abb5e8
tree1cf2fd68ece90f948ca4bc0c816725c73a38f732
parentbe75923786aa28774bf2b5ef8184590a52429103
nfp: bpf: support unaligned read offset

This patch add the support for unaligned read offset, i.e. the read offset
to the start of packet cache area is not aligned to REG_WIDTH. In this
case, the read area might across maximum three transfer-in registers.

Signed-off-by: Jiong Wang <jiong.wang@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
drivers/net/ethernet/netronome/nfp/bpf/jit.c