]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc2f41a1586ae01f1c76a03f8445b7b7afdf6e0ee
tree2e03c2e0ce92bd1e8e09bfb07b8cd1645f62e928
parent9b12bd7e0ff7acbc7a13a16473aae4d0a412f6a6
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