octeontx2-af: derive correct DMAC filter index
commit cd1c4cb751a3bc5774e729a0f8e2b8d3a9b197c9 from git@git.assembla.com:cavium/WindRiver.linux.git AF driver assigns number of DMAC filters per lmac based on simple formula max dmac filters/number of lmacs. Number of DMAC filters per lmac vary based on number of enabled lmacs. current implementation is such that DMAC index associated with lmac is derived based on lmac_id. It results wrong index in case of non contiguous lmac. This patch corrects the index calculation by using sequence id of lmac instead of lmac_id. Change-Id: I8c3cca0016b5720b032f6f15f8d08429908eee29 Signed-off-by:Hariprasad Kelam <hkelam@marvell.com> Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/52572 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>
Loading
Please register or sign in to comment