linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] net: marvell: prestera: add basic routes offloading
@ 2022-02-16  1:05 Yevhen Orlov
  2022-02-16  1:05 ` [PATCH net-next 1/3] net: marvell: prestera: Add router LPM ABI Yevhen Orlov
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Yevhen Orlov @ 2022-02-16  1:05 UTC (permalink / raw)
  To: netdev
  Cc: Volodymyr Mytnyk, Taras Chornyi, Mickey Rachamim, Serhiy Pshyk,
	Yevhen Orlov, Taras Chornyi, Oleksandr Mazur, David S. Miller,
	Jakub Kicinski, linux-kernel

Add support for blackhole and local routes for Marvell Prestera driver.
Subscribe on fib notifications and handle add/del.

Add features:
 - Support route adding.
   e.g.: "ip route add blackhole 7.7.1.1/24"
   e.g.: "ip route add local 9.9.9.9 dev sw1p30"
 - Support "rt_trap", "rt_offload", "rt_offload_failed" flags
 - Handle case, when route in "local" table overlaps route in "main" table
   example:
	ip ro add blackhole 7.7.7.7
	ip ro add local 7.7.7.7 dev sw1p30
	# blackhole route will be deoffloaded. rt_offload flag disappeared

Limitations:
 - Only "blackhole" and "local" routes supported. "nexthop" routes is TRAP
   for now and will be implemented soon.
 - Only "local" and "main" tables supported

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>

Yevhen Orlov (3):
  net: marvell: prestera: Add router LPM ABI
  net: marvell: prestera: add hardware router objects accounting for lpm
  net: marvell: prestera: handle fib notifications

 .../net/ethernet/marvell/prestera/prestera.h  |   5 +
 .../ethernet/marvell/prestera/prestera_hw.c   |  49 +++
 .../ethernet/marvell/prestera/prestera_hw.h   |   6 +
 .../ethernet/marvell/prestera/prestera_main.c |  11 +
 .../marvell/prestera/prestera_router.c        | 412 ++++++++++++++++++
 .../marvell/prestera/prestera_router_hw.c     | 132 +++++-
 .../marvell/prestera/prestera_router_hw.h     |  44 ++
 7 files changed, 652 insertions(+), 7 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-02-17 20:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-16  1:05 [PATCH net-next 0/3] net: marvell: prestera: add basic routes offloading Yevhen Orlov
2022-02-16  1:05 ` [PATCH net-next 1/3] net: marvell: prestera: Add router LPM ABI Yevhen Orlov
2022-02-16  1:05 ` [PATCH net-next 2/3] net: marvell: prestera: add hardware router objects accounting for lpm Yevhen Orlov
2022-02-16  1:05 ` [PATCH net-next 3/3] net: marvell: prestera: handle fib notifications Yevhen Orlov
2022-02-17 20:50 ` [PATCH net-next 0/3] net: marvell: prestera: add basic routes offloading patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).