2022-02-16 07:29:00

by Yevhen Orlov

[permalink] [raw]
Subject: [PATCH net-next 0/3] net: marvell: prestera: add basic routes offloading

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 <[email protected]>
Signed-off-by: Taras Chornyi <[email protected]>
Co-developed-by: Oleksandr Mazur <[email protected]>
Signed-off-by: Oleksandr Mazur <[email protected]>
Signed-off-by: Yevhen Orlov <[email protected]>

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


2022-02-17 23:22:08

by patchwork-bot+netdevbpf

[permalink] [raw]
Subject: Re: [PATCH net-next 0/3] net: marvell: prestera: add basic routes offloading

Hello:

This series was applied to netdev/net-next.git (master)
by David S. Miller <[email protected]>:

On Wed, 16 Feb 2022 03:05:54 +0200 you wrote:
> 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
>
> [...]

Here is the summary with links:
- [net-next,1/3] net: marvell: prestera: Add router LPM ABI
https://git.kernel.org/netdev/net-next/c/19787b93f814
- [net-next,2/3] net: marvell: prestera: add hardware router objects accounting for lpm
https://git.kernel.org/netdev/net-next/c/16de3db1208a
- [net-next,3/3] net: marvell: prestera: handle fib notifications
https://git.kernel.org/netdev/net-next/c/4394fbcb78cf

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html