summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h
diff options
context:
space:
mode:
authorJiri Pirko <jiri@nvidia.com>2020-11-10 12:48:56 +0300
committerJakub Kicinski <kuba@kernel.org>2020-11-13 02:55:21 +0300
commit505cd65c66e82233e0791da8f39312c1e53b6791 (patch)
treefb941e7f1904f9e7eec2c7d28503794bcff5f830 /drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h
parent7f5c4090e46f069b089647cc8880da6fe95bea84 (diff)
downloadlinux-505cd65c66e82233e0791da8f39312c1e53b6791.tar.xz
mlxsw: spectrum_router: Prepare work context for possible bulking
For XMDR register it is possible to carry multiple FIB entry operations in a single write. However the FW does not restrict mixing the types of operations, make the code easier and indicate the bulking is ok only in case the bulk contains FIB operations of the same family and event. 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_router.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h
index 2f700ad74385..859a5c5d51d0 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h
+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h
@@ -61,6 +61,7 @@ enum mlxsw_sp_fib_entry_op {
};
struct mlxsw_sp_fib_entry_op_ctx {
+ u8 bulk_ok:1;
char ralue_pl[MLXSW_REG_RALUE_LEN];
};