]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit290c5c9e57da6c89e9b0ae0ce427f168f79c6bb4
tree1cf2fd68ece90f948ca4bc0c816725c73a38f732
parent1123cebc540d7bfa1702f6682fc117ec822199c5
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