Skip to content

Commit 665bc53

Browse files
Gal Pressmandavem330
authored andcommitted
net/mlx5e: Use new ethtool get/set link ksettings API
Use new get/set link ksettings and remove get/set settings legacy callbacks. This allows us to use bitmasks longer than 32 bit for supported and advertised link modes and use modes that were previously not supported. Signed-off-by: Gal Pressman <[email protected]> CC: Ben Hutchings <[email protected]> CC: David Decotigny <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 4a50e35 commit 665bc53

File tree

3 files changed

+143
-167
lines changed

3 files changed

+143
-167
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,9 @@ enum mlx5e_link_mode {
634634

635635
#define MLX5E_PROT_MASK(link_mode) (1 << link_mode)
636636

637+
638+
void mlx5e_build_ptys2ethtool_map(void);
639+
637640
void mlx5e_send_nop(struct mlx5e_sq *sq, bool notify_hw);
638641
u16 mlx5e_select_queue(struct net_device *dev, struct sk_buff *skb,
639642
void *accel_priv, select_queue_fallback_t fallback);

0 commit comments

Comments
 (0)