devlink: Move switch_port attribute of devlink_port_attrs to devlink_port
authorDanielle Ratson <danieller@mellanox.com>
Thu, 9 Jul 2020 13:18:15 +0000 (16:18 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Jul 2020 20:15:29 +0000 (13:15 -0700)
commit46737a194945e540e3e2eb1fc870207928a9c2eb
tree60689b2ab9c1323229b9e9a1b3f9d3314a5735bb
parent10a429bab4462581bbda3fd7f41d4ec0ddc5e682
devlink: Move switch_port attribute of devlink_port_attrs to devlink_port

The struct devlink_port_attrs holds the attributes of devlink_port.

Similarly to the previous patch, 'switch_port' attribute is another
exception.

Move 'switch_port' to be devlink_port's field.

Signed-off-by: Danielle Ratson <danieller@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/devlink.h
net/core/devlink.c