diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2017-10-08 21:04:14 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-09 09:51:03 -0700 |
commit | fd068ddc888355dccd90ad610104e4addf23b7a3 (patch) | |
tree | a43f4581174f5bdc370bf80601487c5e5807f397 /drivers/net/ethernet/netronome/nfp/nfp_asm.h | |
parent | 18e53b6cb9ac157f4b2c7db698d4adc064df2fa0 (diff) | |
download | linux-fd068ddc888355dccd90ad610104e4addf23b7a3.tar.bz2 |
nfp: bpf: calculate code store ECC
In the initial PoC firmware I simply disabled ECC on the instruction
store. Do the ECC calculation for generated instructions in the driver.
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>
Diffstat (limited to 'drivers/net/ethernet/netronome/nfp/nfp_asm.h')
-rw-r--r-- | drivers/net/ethernet/netronome/nfp/nfp_asm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/netronome/nfp/nfp_asm.h b/drivers/net/ethernet/netronome/nfp/nfp_asm.h index 40a51a45afd7..d95087e5fb73 100644 --- a/drivers/net/ethernet/netronome/nfp/nfp_asm.h +++ b/drivers/net/ethernet/netronome/nfp/nfp_asm.h @@ -362,4 +362,7 @@ int swreg_to_unrestricted(swreg dst, swreg lreg, swreg rreg, int swreg_to_restricted(swreg dst, swreg lreg, swreg rreg, struct nfp_insn_re_regs *reg, bool has_imm8); +int nfp_ustore_check_valid_no_ecc(u64 insn); +u64 nfp_ustore_calc_ecc_insn(u64 insn); + #endif |