]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: refactor the prechangeupper sanity checks into a dedicated function
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sun, 27 Jun 2021 11:54:28 +0000 (14:54 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jun 2021 21:09:03 +0000 (14:09 -0700)
commitaeb0d0591de6354c2b54d4893716ff78eeae4be3
tree112c5a414667488551819ec997affe82dafed038
parentf3afc22dbdd695d7a6b7a9cdfe910933a0d5d00f
net: dsa: refactor the prechangeupper sanity checks into a dedicated function

We need to add more logic to the DSA NETDEV_PRECHANGEUPPER event
handler, more exactly we need to request an unsync of switchdev objects.
In order to fit more code, refactor the existing logic into a helper.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/slave.c