diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2017-10-23 21:58:07 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-24 11:38:37 +0300 |
commit | 70c78fc138b6d0ef76d9920034e25082dd3a36ac (patch) | |
tree | d2eee8f63435fe8b39b25de6fb8c1e0e34cbfe51 /drivers/net/ethernet/netronome/nfp/bpf/jit.c | |
parent | ff42bb9fe3091d996c763848afa3e57c2a780217 (diff) | |
download | linux-70c78fc138b6d0ef76d9920034e25082dd3a36ac.tar.xz |
nfp: bpf: refactor nfp_bpf_check_ptr()
nfp_bpf_check_ptr() mostly looks at the pointer register.
Add a temporary variable to shorten the code.
While at it make sure we print error messages if translation
fails to help users identify the problem (to be carried in
ext_ack in due course).
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/netronome/nfp/bpf/jit.c')
0 files changed, 0 insertions, 0 deletions