Skip to content

Commit 48bb9eb

Browse files
idoschdavem330
authored andcommitted
netdevsim: fib: Add dummy implementation for FIB offload
Implement dummy IPv4 and IPv6 FIB "offload" in the driver by storing currently "programmed" routes in a hash table. Each route in the hash table is marked with "trap" indication. The indication is cleared when the route is replaced or when the netdevsim instance is deleted. This will later allow us to test the route offload API on top of netdevsim. v2: * Convert to new fib_alias_hw_flags_set() interface Signed-off-by: Ido Schimmel <idosch@mellanox.com> Reviewed-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent ee5a044 commit 48bb9eb

2 files changed

Lines changed: 663 additions & 9 deletions

File tree

‎drivers/net/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,7 @@ source "drivers/net/hyperv/Kconfig"
549549
config NETDEVSIM
550550
tristate "Simulated networking device"
551551
depends on DEBUG_FS
552+
depends on IPV6 || IPV6=n
552553
select NET_DEVLINK
553554
help
554555
This driver is a developer testing tool and software model that can

0 commit comments

Comments
 (0)