net: marvell: prestera: Add router LPM ABI
authorYevhen Orlov <yevhen.orlov@plvision.eu>
Wed, 16 Feb 2022 01:05:55 +0000 (03:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Feb 2022 20:45:01 +0000 (20:45 +0000)
commit19787b93f81408b1c1fbeba74a5d664e982195bf
treeaefcd9f5cf20628c93d2af294e2c2578c194476b
parent93d11e0d76e3c5a8350c77d1463d9f845bdc9307
net: marvell: prestera: Add router LPM ABI

Add functions to create/delete lpm entry in hw.
prestera_hw_lpm_add() take index of allocated virtual router.
Also it takes grp_id, which is index of allocated nexthop group.
ABI to create nexthop group will be added soon.

Co-developed-by: Taras Chornyi <tchornyi@marvell.com>
Signed-off-by: Taras Chornyi <tchornyi@marvell.com>
Co-developed-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
Signed-off-by: Yevhen Orlov <yevhen.orlov@plvision.eu>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/prestera/prestera_hw.c
drivers/net/ethernet/marvell/prestera/prestera_hw.h