]> 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)
commitcd705c8ed16db46119cc5f3df6b4ce52f532dc34
tree3dcd5dc6509f6bb5b79711eb061048a423284ef4
parent0c09bc0e09cc5af262c1eda40333ea39ef85e6b3
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