This continues the work started by Alex Maftei <amaf...@solarflare.com> in the series "sfc: code refactoring", "sfc: more code refactoring", "sfc: even more code refactoring" and "sfc: refactor mcdi filtering code", to prepare for a new driver which will share much of the code to support the new EF100 family of Solarflare/Xilinx NICs. After this series, there will be approximately two more of these 'prerequisites' series, followed by the sfc_ef100 driver itself.
v2: fix reverse xmas tree in patch 5. (Left the cases in patches 7, 9 and 14 alone as those are all in pure movement of existing code.) Edward Cree (15): sfc: update MCDI protocol headers sfc: determine flag word automatically in efx_has_cap() sfc: extend bitfield macros up to POPULATE_DWORD_13 sfc: don't try to create more channels than we can have VIs sfc: refactor EF10 stats handling sfc: split up nic.h sfc: commonise ethtool link handling functions sfc: commonise ethtool NFC and RXFH/RSS functions sfc: commonise other ethtool bits sfc: commonise FC advertising sfc: track which BAR is mapped sfc: commonise PCI error handlers sfc: commonise drain event handling sfc: commonise ARFS handling sfc: extend common GRO interface to support CHECKSUM_COMPLETE drivers/net/ethernet/sfc/bitfield.h | 34 +- drivers/net/ethernet/sfc/ef10.c | 100 +- drivers/net/ethernet/sfc/efx.c | 119 +- drivers/net/ethernet/sfc/efx.h | 8 - drivers/net/ethernet/sfc/efx_channels.c | 7 + drivers/net/ethernet/sfc/efx_common.c | 134 +- drivers/net/ethernet/sfc/efx_common.h | 6 +- drivers/net/ethernet/sfc/ethtool.c | 913 --- drivers/net/ethernet/sfc/ethtool_common.c | 911 +++ drivers/net/ethernet/sfc/ethtool_common.h | 36 +- drivers/net/ethernet/sfc/mcdi.c | 10 +- drivers/net/ethernet/sfc/mcdi.h | 5 +- drivers/net/ethernet/sfc/mcdi_filters.c | 8 +- drivers/net/ethernet/sfc/mcdi_pcol.h | 6933 ++++++++++++++++++++- drivers/net/ethernet/sfc/net_driver.h | 4 + drivers/net/ethernet/sfc/nic.c | 45 + drivers/net/ethernet/sfc/nic.h | 298 +- drivers/net/ethernet/sfc/nic_common.h | 273 + drivers/net/ethernet/sfc/ptp.c | 5 +- drivers/net/ethernet/sfc/ptp.h | 45 + drivers/net/ethernet/sfc/rx.c | 236 +- drivers/net/ethernet/sfc/rx_common.c | 245 +- drivers/net/ethernet/sfc/rx_common.h | 6 +- drivers/net/ethernet/sfc/siena.c | 1 + 24 files changed, 8671 insertions(+), 1711 deletions(-) create mode 100644 drivers/net/ethernet/sfc/nic_common.h create mode 100644 drivers/net/ethernet/sfc/ptp.h