commit | 4ede74e73b5b540b2a20bb6d5ad4d69348ba51fc | [log] [tgz] |
---|---|---|
author | Vladimir Oltean <vladimir.oltean@nxp.com> | Sun Jun 27 14:54:28 2021 +0300 |
committer | David S. Miller <davem@davemloft.net> | Mon Jun 28 14:09:03 2021 -0700 |
tree | 112c5a414667488551819ec997affe82dafed038 | |
parent | 7e8c18586daf7c1653c4b43a8119bc9662ed8fa6 [diff] |
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>