linux/drivers/net
Brett Creeley 1d0e28a9be ice: Remove and replace ice speed defines with ethtool.h versions
The driver is currently using ICE_LINK_SPEED_* defines that mirror what
ethtool.h defines, with one exception ICE_LINK_SPEED_UNKNOWN.

This issue is fixed by the following changes:

1. replace ICE_LINK_SPEED_UNKNOWN with 0 because SPEED_UNKNOWN in
   ethtool.h is "-1" and that doesn't match the driver's expected behavior
2. transform ICE_LINK_SPEED_*MBPS to SPEED_* using static tables and
   fls()-1 to convert from BIT() to an index in a table.

Suggested-by: Alexander Lobakin <alexandr.lobakin@intel.com>
Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Co-developed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2022-11-23 08:59:42 -08:00
..
appletalk
arcnet
bonding
caif
can Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-11-10 17:43:53 -08:00
dsa net: dsa: modularize DSA_TAG_PROTO_NONE 2022-11-22 20:41:45 -08:00
ethernet ice: Remove and replace ice speed defines with ethtool.h versions 2022-11-23 08:59:42 -08:00
fddi
fjes
hamradio Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-11-10 17:43:53 -08:00
hippi
hyperv
ieee802154
ipa net: ipa: avoid a null pointer dereference 2022-11-18 11:46:18 +00:00
ipvlan
mctp mctp i2c: don't count unused / invalid keys for flow release 2022-11-11 20:13:27 -08:00
mdio
netdevsim devlink: Allow to set up parent in devl_rate_leaf_create() 2022-11-17 21:41:27 -08:00
pcs net: pcs: xpcs: use mdiodev accessors 2022-11-09 19:28:49 -08:00
phy net: phy: mscc: macsec: do not copy encryption keys 2022-11-18 09:17:42 +00:00
plip
ppp ppp: associate skb with a device at tx 2022-11-23 12:54:18 +00:00
pse-pd
slip
team
usb Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-11-17 18:30:39 -08:00
vmxnet3
vxlan
wan net: lapbether: fix issue of invalid opcode in lapbeth_open() 2022-11-08 12:47:36 +01:00
wireguard
wireless wireless-next patches for v6.2 2022-11-18 11:44:36 +00:00
wwan Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-11-10 17:43:53 -08:00
xen-netback
amt.c
bareudp.c
dummy.c ethtool: doc: clarify what drivers can implement in their get_drvinfo() 2022-11-17 19:26:02 -08:00
eql.c
geneve.c
gtp.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-11-10 17:43:53 -08:00
macvlan.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-11-17 18:30:39 -08:00
macvtap.c
Makefile
mdio.c
mhi_net.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-11-17 18:30:39 -08:00
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c net: thunderbolt: Fix error handling in tbnet_init() 2022-11-16 09:19:37 +00:00
tun.c net: tun: rebuild error handling in tun_get_user 2022-11-14 09:52:07 +00:00
veth.c Revert "veth: Avoid drop packets when xdp_redirect performs" 2022-11-22 20:42:08 -08:00
virtio_net.c
vrf.c
vsockmon.c
xen-netfront.c