]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_switchdev: Break smid write function
authorNogah Frankel <nogahf@mellanox.com>
Wed, 20 Sep 2017 14:15:05 +0000 (16:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Sep 2017 01:03:12 +0000 (18:03 -0700)
commit22650f0711b0b31898130afcf3a82c359dce0acd
treeb2a686976da82e40c4d2d00de19385de5be99c87
parentaab243fc30a027b8bfef42380e06f31b00750512
mlxsw: spectrum_switchdev: Break smid write function

Break the smid write function into two, one that cleans the ports that
might be still written there and one that changes an exiting mid entry.

Signed-off-by: Nogah Frankel <nogahf@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c