]> git.baikalelectronics.ru Git - kernel.git/commit
netdevsim: Add dummy implementation for nexthop offload
authorIdo Schimmel <idosch@nvidia.com>
Wed, 4 Nov 2020 13:30:38 +0000 (15:30 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 6 Nov 2020 19:28:50 +0000 (11:28 -0800)
commitec1cd84478d5ed1451d2b52bd9f8a25c204ec3c5
tree3dcd5dc6509f6bb5b79711eb061048a423284ef4
parent7f30fc299229155488651ae77530b1e35d84fe47
netdevsim: Add dummy implementation for nexthop offload

Implement dummy nexthop "offload" in the driver by storing currently
"programmed" nexthops in a hash table. Each nexthop in the hash table is
marked with "trap" indication and increments the nexthops resource
occupancy.

This will later allow us to test the nexthop offload API on top of
netdevsim.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/netdevsim/fib.c