]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_span: Put buffsize update code into helper function
authorJiri Pirko <jiri@mellanox.com>
Mon, 20 Jan 2020 07:52:51 +0000 (09:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jan 2020 12:25:46 +0000 (13:25 +0100)
commit47b44fd307cd3d4a1783e6dcccc72af0f4302154
tree3fa1b9248e8b6fab457c5152af6137e1bcc7e37b
parentdd377715a4e01e0fc1b294092e9d2f1bb5fd5093
mlxsw: spectrum_span: Put buffsize update code into helper function

Avoid duplication of code that is doing buffsize update and put it into
a separate helper function.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c