octeontx2-af: Enable hash extraction of IPv6 source/destination
commit 78077fe479d8d5a71645cfc4644d1115813da1a9 from git@git.assembla.com:cavium/WindRiver.linux.git As of today hash extraction of IPv6 source/destination IP was enabled by default for 103x. This patch enables hash extraction based on the MKEX profile. Hashing of IPV6 SIP/DIP is enabled in below scenarios 1. If the silicon variant supports hashing feature 2. If the number of bytes of IP addr being extracted is 4 bytes ie 32bit. The assumption here is that if user wants 8bytes of LSB of IP address or full 16 bytes then his intention is not to use 32bit hash. Fixes: 4346e4b46d692 (octeontx2-af: Use hashed field in MCAM key) Signed-off-by: Suman Ghosh <sumang@marvell.com> Change-Id: Id2a471c8ef0bc594ca6c03a3755572b26c4e6c49 Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/101589 Tested-by: sa_ip-sw-jenkins <sa_ip-sw-jenkins@marvell.com> Reviewed-by: Sunil Kovvuri Goutham <sgoutham@marvell.com> Signed-off-by: Ruiqiang Hao <Ruiqiang.Hao@windriver.com>
Please register or sign in to comment