net: marvell: prestera: move netdev topology validation to prestera_main
authorVadym Kochan <vkochan@marvell.com>
Thu, 10 Jun 2021 15:43:09 +0000 (18:43 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Jun 2021 21:20:44 +0000 (14:20 -0700)
commit3d5048cc54bd250cfbb358c37fcc011135977887
treef2978fcd0aa626c9fe360b95beeb302cbf02d6e1
parent950fd045d76c96ada8c7a6e80f1f4e40de4beb17
net: marvell: prestera: move netdev topology validation to prestera_main

Move handling of PRECHANGEUPPER event from prestera_switchdev to
prestera_main which is responsible for basic netdev events handling
and routing them to related module.

Signed-off-by: Vadym Kochan <vkochan@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/prestera/prestera_main.c
drivers/net/ethernet/marvell/prestera/prestera_switchdev.c