Skip to content

Commit a564d30

Browse files
Dirk van der Merwedavem330
authored andcommitted
nfp: add get/set link settings ndos to representors
Since it is now safe to modify link settings for representors, we can attach the get/set link settings ndos to it. The get/set link settings are nfp_port based operations. If a port becomes invalid, the representor will be removed in the same way a vnic would be. Signed-off-by: Dirk van der Merwe <[email protected]> Signed-off-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 5fa27d5 commit a564d30

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,6 +1155,8 @@ const struct ethtool_ops nfp_port_ethtool_ops = {
11551155
.set_dump = nfp_app_set_dump,
11561156
.get_dump_flag = nfp_app_get_dump_flag,
11571157
.get_dump_data = nfp_app_get_dump_data,
1158+
.get_link_ksettings = nfp_net_get_link_ksettings,
1159+
.set_link_ksettings = nfp_net_set_link_ksettings,
11581160
};
11591161

11601162
void nfp_net_set_ethtool_ops(struct net_device *netdev)

0 commit comments

Comments
 (0)