Skip to content
Commit 9b45be94 authored by Hariprasad Kelam's avatar Hariprasad Kelam Committed by Ruiqiang Hao
Browse files

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: default avatarHariprasad Kelam <hkelam@marvell.com>
Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/52572


Tested-by: default avatarsa_ip-sw-jenkins <sa_ip-sw-jenkins@marvell.com>
Reviewed-by: default avatarSunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: default avatarRuiqiang Hao <Ruiqiang.Hao@windriver.com>
parent dd9db8ff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment