net/ice/base: fix ACL rules index
authorQi Zhang <qi.z.zhang@intel.com>
Mon, 15 Jun 2020 02:04:32 +0000 (10:04 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jun 2020 17:21:07 +0000 (19:21 +0200)
commit89f33892951cb1eec32c38e71ba231fb0e4c1177
treed3c1850a600e88e1ef31d7daa845a02020a70d79
parentf982681d847a38c4f9c54d014f8718387fa142b1
net/ice/base: fix ACL rules index

A u8 idx in ice_acl_add_entry  causes the code to truncate the values
greater than 255 to 255 or less when calling ice_aq_program_acl_entry()
resulting in the wrong TCAM index being programmed for the specified
rule. The result is that the rule action doesn't work correctly
(packets don't get routed to the correct queue or dropped if that
is the action). Fix the issue by changing the variable to be a u16
again.

Fixes: f3202a097f12 ("net/ice/base: add ACL module")
Cc: stable@dpdk.org
Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/base/ice_acl_ctrl.c