]> 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)
commit359fdfba502353c01bfaf99b78a1349bda0a6b26
tree2e03c2e0ce92bd1e8e09bfb07b8cd1645f62e928
parent44b2cc8d9a3d0c964ca948086df82d6afd3fdd36
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