diff options
author | Ido Schimmel <idosch@nvidia.com> | 2020-11-04 14:30:38 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-11-06 20:28:50 +0100 |
commit | 8fa84742d66625281a14b5db4c1f64f06c5b106a (patch) | |
tree | 3dcd5dc6509f6bb5b79711eb061048a423284ef4 /drivers/net/netdevsim/bus.c | |
parent | netdevsim: Add devlink resource for nexthops (diff) | |
download | linux-8fa84742d66625281a14b5db4c1f64f06c5b106a.tar.xz linux-8fa84742d66625281a14b5db4c1f64f06c5b106a.zip |
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>
Diffstat (limited to 'drivers/net/netdevsim/bus.c')
0 files changed, 0 insertions, 0 deletions