[Intel-wired-lan] [PATCH v4] ethtool: stop the line wrapping madness
Bowers, AndrewX
andrewx.bowers at intel.com
Fri Jan 13 21:00:05 UTC 2017
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On
> Behalf Of Mitch Williams
> Sent: Wednesday, January 04, 2017 1:33 PM
> To: intel-wired-lan at lists.osuosl.org; netanel at annapurnalabs.com;
> saeed at annapurnalabs.com; zorik at annapurnalabs.com;
> decot at googlers.com
> Subject: [Intel-wired-lan] [PATCH v4] ethtool: stop the line wrapping
> madness
>
> Folks, we have a hard limit of 80 characters per line in the kernel,
> mostly due to Linus' insistence on printing out each release on greenbar
> with his Decwriter. So why do we have function and macro names that are
> over 30 characters long? Add a tab or two and a few parameters and boom!
> you're wrapping lines.
>
> This patch is a search-n-replace of the newly-added ethtool link
> settings API with shorter names. In general, I replaced 'ksettings' with
> 'ks' and elided some unnecessary verbiage. In nearly every instance I
> unwrapped lines and made the code easier to read, especially on a VT102.
>
> In the case of the Amazon Ethernet driver, I found a bug where they were
> setting bits in the the 'settings' field twice. Almost certainly this
> was supposed to set bits in the 'advertising' field instead. So I fixed
> it.
>
> Signed-off-by: Mitch Williams <mitch.a.williams at intel.com>
> v4: even more
> v3: catch a few more drivers
> v2: catch a few more drivers
> ---
> drivers/infiniband/hw/nes/nes_nic.c | 12 +--
> drivers/net/ethernet/3com/3c509.c | 3 +-
> drivers/net/ethernet/3com/typhoon.c | 6 +-
> drivers/net/ethernet/alteon/acenic.c | 3 +-
> drivers/net/ethernet/amazon/ena/ena_ethtool.c | 6 +-
> drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c | 13 +--
> .../net/ethernet/apm/xgene/xgene_enet_ethtool.c | 16 +---
> drivers/net/ethernet/atheros/alx/ethtool.c | 9 +-
> drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c | 6 +-
> drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c | 9 +-
> drivers/net/ethernet/atheros/atlx/atl1.c | 6 +-
> drivers/net/ethernet/atheros/atlx/atl2.c | 9 +-
> drivers/net/ethernet/broadcom/b44.c | 9 +-
> drivers/net/ethernet/broadcom/bcm63xx_enet.c | 6 +-
> drivers/net/ethernet/broadcom/bnx2.c | 9 +-
> drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 102 ++++++++------
> -------
> drivers/net/ethernet/broadcom/tg3.c | 14 +--
> drivers/net/ethernet/brocade/bna/bnad_ethtool.c | 6 +-
> drivers/net/ethernet/calxeda/xgmac.c | 4 +-
> drivers/net/ethernet/cavium/liquidio/lio_ethtool.c | 6 +-
> .../net/ethernet/cavium/thunder/nicvf_ethtool.c | 6 +-
> drivers/net/ethernet/chelsio/cxgb/cxgb2.c | 9 +-
> drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c | 13 +--
> drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c | 12 +--
> .../net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c | 12 +--
> drivers/net/ethernet/cisco/enic/enic_ethtool.c | 10 +-
> drivers/net/ethernet/dec/tulip/de2104x.c | 9 +-
> drivers/net/ethernet/dec/tulip/uli526x.c | 6 +-
> drivers/net/ethernet/dlink/dl2k.c | 6 +-
> drivers/net/ethernet/emulex/benet/be_ethtool.c | 6 +-
> drivers/net/ethernet/hisilicon/hns/hns_ethtool.c | 12 +--
> drivers/net/ethernet/marvell/mv643xx_eth.c | 24 ++---
> drivers/net/ethernet/marvell/pxa168_eth.c | 3 +-
> drivers/net/ethernet/mellanox/mlx4/en_ethtool.c | 49 ++++------
> .../net/ethernet/mellanox/mlx5/core/en_ethtool.c | 25 +++--
> drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 14 +--
> drivers/net/ethernet/qlogic/qede/qede_ethtool.c | 6 +-
> drivers/net/ethernet/sfc/ethtool.c | 6 +-
> drivers/net/ethernet/sfc/falcon/ethtool.c | 4 +-
> drivers/net/ethernet/sfc/falcon/mdio_10g.c | 9 +-
> drivers/net/ethernet/sfc/mcdi_port.c | 12 +--
> .../net/ethernet/stmicro/stmmac/stmmac_ethtool.c | 20 ++--
> drivers/net/ethernet/ti/netcp_ethss.c | 6 +-
> drivers/net/mdio.c | 9 +-
> drivers/net/mii.c | 12 +--
> drivers/net/phy/phy.c | 13 +--
> drivers/net/usb/lan78xx.c | 6 +-
> include/linux/ethtool.h | 21 ++---
> net/core/ethtool.c | 40 ++++----
> 49 files changed, 234 insertions(+), 400 deletions(-)
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list