OSDN Git Service

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)
commit5f9abc597cdd7a63433b7ebfcf26ee2746a76638
treeb2a686976da82e40c4d2d00de19385de5be99c87
parentb80888a9194f3aecd5edf6a7ede5c23d77bade8b
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