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)
commit31c25b949813292e2f85b0e8708b767e55aba093
tree3fa1b9248e8b6fab457c5152af6137e1bcc7e37b
parentac9cc4e25044b699eb8f0f4822ad58a2f5130abb
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