]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Prepare work context for possible bulking
authorJiri Pirko <jiri@nvidia.com>
Tue, 10 Nov 2020 09:48:56 +0000 (11:48 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 12 Nov 2020 23:55:21 +0000 (15:55 -0800)
commitb31925ce72a915a8da3ec2425820d8496f13ec41
treefb941e7f1904f9e7eec2c7d28503794bcff5f830
parentfaa069842be65e40d8e2709b0ef516e928094cb3
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>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h