summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.h
diff options
context:
space:
mode:
authorJiri Pirko <jiri@nvidia.com>2020-11-10 12:48:57 +0300
committerJakub Kicinski <kuba@kernel.org>2020-11-13 02:55:21 +0300
commit91d20d71b2f0b1e3ff4197d27a69b22da3d8de0d (patch)
tree2c8ec316ae5d591175209befd7cf64ab35a71c29 /drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.h
parent505cd65c66e82233e0791da8f39312c1e53b6791 (diff)
downloadlinux-91d20d71b2f0b1e3ff4197d27a69b22da3d8de0d.tar.xz
mlxsw: spectrum_router: Have FIB entry op context allocated for the instance
Get the max size needed for FIB entry op context and allocate it once for the instance. Use it repeatedly from the scheduled work. By this, allow to extend the context to hold more data than it is wise to do when it was on the stack. Make sure to signalize that the context needs to be initialized in case families of subsequent FIB entries differ. Signed-off-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: Ido Schimmel <idosch@nvidia.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.h')
0 files changed, 0 insertions, 0 deletions