OSDN Git Service

ethtool: Validate master slave configuration before rtnl_lock()
authorDanielle Ratson <danieller@nvidia.com>
Tue, 2 Feb 2021 18:06:05 +0000 (20:06 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 4 Feb 2021 02:37:28 +0000 (18:37 -0800)
commit189e7a8d94208a26b7f7876d155cf695393f8efa
tree8630972007bebb2d93b431d649de742b90bb24a2
parent99b8202b179fc3dbbca69e8af6da660224c9d676
ethtool: Validate master slave configuration before rtnl_lock()

Create a new function for input validations to be called before
rtnl_lock() and move the master slave validation to that function.

This would be a cleanup for next patch that would add another validation
to the new function.

Signed-off-by: Danielle Ratson <danieller@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ethtool/linkmodes.c