diff options
author | Jiri Pirko <jiri@mellanox.com> | 2019-03-24 11:14:33 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-03-24 14:55:31 -0400 |
commit | 45b861120e0c2694cabf082c63b022465ac572bb (patch) | |
tree | 27ca12de04f592893947116998ce8cbf169cc3b1 /drivers/net/ethernet/netronome | |
parent | dsa: move devlink_port_attrs_set() call before register (diff) | |
download | linux-dev-45b861120e0c2694cabf082c63b022465ac572bb.tar.xz linux-dev-45b861120e0c2694cabf082c63b022465ac572bb.zip |
net: devlink: disallow port_attrs_set() to be called before register
Since the port attributes are static and cannot change during the port
lifetime, WARN_ON if some driver calls it after registration. Also, no
need to call notifications as it is noop anyway due to check of
devlink_port->registered there.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/netronome')
0 files changed, 0 insertions, 0 deletions