git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
common/mlx5: fix default devargs initialization
[dpdk.git]
/
drivers
/
net
/
cnxk
/
cnxk_lookup.c
diff --git
a/drivers/net/cnxk/cnxk_lookup.c
b/drivers/net/cnxk/cnxk_lookup.c
index
4eb1ecf
..
f36fb8f
100644
(file)
--- a/
drivers/net/cnxk/cnxk_lookup.c
+++ b/
drivers/net/cnxk/cnxk_lookup.c
@@
-337,7
+337,8
@@
cnxk_nix_lookup_mem_sa_base_set(struct cnxk_eth_dev *dev)
if (!sa_base)
return -ENOTSUP;
- sa_w = plt_log2_u32(dev->nix.ipsec_in_max_spi + 1);
+ sa_w = plt_log2_u32(dev->nix.ipsec_in_max_spi + 1 -
+ dev->nix.ipsec_in_min_spi);
/* Set SA Base in lookup mem */
sa_base_tbl = (uintptr_t)lookup_mem;