]> git.baikalelectronics.ru Git - kernel.git/commit
netdevsim: Protect both reload_down and reload_up paths
authorLeon Romanovsky <leonro@nvidia.com>
Thu, 5 Aug 2021 14:34:28 +0000 (17:34 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Aug 2021 09:36:36 +0000 (10:36 +0100)
commit207d82eceaf775534d8bcc112efa50c51d07590f
tree4408cd811d6cb35d050a7c3ccdf84e0747586c2c
parent7795ee20e375f4da468ece4e512bdff8eb37cb46
netdevsim: Protect both reload_down and reload_up paths

Don't progress with adding and deleting ports as long as devlink
reload is running.

Fixes: 64d14590c79f ("netdevsim: Forbid devlink reload when adding or deleting ports")
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netdevsim/bus.c
drivers/net/netdevsim/dev.c
drivers/net/netdevsim/netdevsim.h