]> 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)
commiteb3cadb7f0cd0357d21ed92e4a625ce2dc5d8a55
tree1cf2fd68ece90f948ca4bc0c816725c73a38f732
parent68baf25d00af2b7b31c49d122ff8d7def08197b3
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