]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
nfp: bpf: implement byte swap instruction
authorJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 12 Oct 2017 17:34:12 +0000 (10:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 Oct 2017 18:13:28 +0000 (11:13 -0700)
commit3119d1fd46464c61c80731c3a9f40eee4434fc1d
tree5b5dbcbd671ceda851293be51822e4bcc24b5c43
parentc000dfb5e29a2abaf303cf90502cb68227f29fae
nfp: bpf: implement byte swap instruction

Implement byte swaps with rotations, shifts and byte loads.
Remember to clear upper parts of the 64 bit registers.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/bpf/jit.c