summaryrefslogtreecommitdiff
path: root/staging/layer4.c
AgeCommit message (Expand)AuthorFilesLines
2015-03-17mz: Add igmp v1/v2 packet type crafting supportVadim Kochan1-0/+101
2015-01-11mz: allow for zero udp checksumMark Latimer1-2/+4
2013-05-13staging: add mausezahn staging directoryDaniel Borkmann1-0/+884
patch) tree8b42a9a04d40fdf9a3ac8409698531fd4fd2781a parente58be79e2dc818b0e2b3c69ea3d3fefcbc8c709b (diff)
mlxsw: spectrum_router: Store nexthop groups in a hash table
Currently, when we're notified about a new RTN_UNICAST route we perform a lookup on the nexthop group list looking for a group with a matching configuration to that found in the FIB info. This is quite inefficient. Instead, we can simply rely on the kernel to consolidate several FIB configurations into the same FIB info and use the FIB info as the key for our private nexthop group struct. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/spectrum.h2
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c104
2 files changed, 54 insertions, 52 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.h b/drivers/net/ethernet/mellanox/mlxsw/spectrum.h