qed, qede, qedf: convert link mode from u32 to ETHTOOL_LINK_MODE
authorAlexander Lobakin <alobakin@marvell.com>
Mon, 20 Jul 2020 18:08:01 +0000 (21:08 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jul 2020 00:59:43 +0000 (17:59 -0700)
commitbdb5d8ec47611ca61e168349f233e1dd1ed063f4
tree2e03c2e0ce92bd1e8e09bfb07b8cd1645f62e928
parente812916d3278baf03aabf10044661fc3b2848823
qed, qede, qedf: convert link mode from u32 to ETHTOOL_LINK_MODE

Currently qed driver already ran out of 32 bits to store link modes,
and this doesn't allow to add and support more speeds.
Convert custom link mode to generic Ethtool bitmap and definitions
(convenient Phylink shorthands are used for elegance and readability).
This allowed us to drop all conversions/mappings between the driver
and Ethtool.

This involves changes in qede and qedf as well, as they used definitions
from shared "qed_if.h".

Suggested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Alexander Lobakin <alobakin@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_main.c
drivers/net/ethernet/qlogic/qede/qede_ethtool.c
drivers/scsi/qedf/qedf_main.c
include/linux/qed/qed_if.h