net/ice: fix max entry number for ACL normal priority
authorSimei Su <simei.su@intel.com>
Wed, 28 Jul 2021 02:24:29 +0000 (10:24 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Sun, 15 Aug 2021 02:31:51 +0000 (04:31 +0200)
commit4f72c21fdffa9074f0df9d5855522735ec61f4d7
tree9c5f87dc668dd20823125b23db0fa6a6feb7ac9f
parent23370156431239ac850ba2360277d11c19431d0f
net/ice: fix max entry number for ACL normal priority

For ACL, there are three entry priorities: LOW, NORMAL, HIGH.
Low priority starts from the highest index, 25% of total entries;
Normal priority starts from the highest index, 50% of total entries;
High priority starts from the lowest index, 25% of total entries.

Each TCAM block has 512 entries of 40 bits. Currently, there is a
scenario in which multiple TCAM blocks are cascaded. It means the
total entries are 512. The default priority is NORMAL, so the max
entry is 256, not 512. This patch changes the max entry number for
NORMAL priority.

Fixes: 40d466fa9f76 ("net/ice: support ACL filter in DCF")
Cc: stable@dpdk.org
Signed-off-by: Simei Su <simei.su@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_acl_filter.c
drivers/net/ice/ice_ethdev.h