OpenCloudOS-Kernel/drivers/net/ethernet/intel
Jacob Keller 6ad96bdca8 i40e(vf): remove i40e_ethtool_stats.h header file
Essentially reverts commit 8fd75c58a0 ("i40e: move ethtool
stats boiler plate code to i40e_ethtool_stats.h", 2018-08-30), and
additionally moves the similar code in i40evf into i40evf_ethtool.c.

The code was intially moved from i40e_ethtool.c into i40e_ethtool_stats.h
as a way of better logically organizing the code. This has two problems.
First, we can't have an inline function with variadic arguments on all
platforms. Second, it gave the appearance that we had plans to share
code between the i40e and i40evf drivers, due to having a near copy of
the contents in the i40evf/i40e_ethtool_stats.h file.

Patches which actually attempt to combine or share code between the i40e
and i40evf drivers have not materialized, and are likely a ways off.

Rather than fixing the one function which causes build issues, just move
this code back into the i40e_ethtool.c and i40evf_ethtool.c files. Note
that we also change these functions back from static inlines to just
statics, since they're no longer in a header file.

We can revisit this if/when work is done to actually attempt to share
code between drivers. Alternatively, this stats code could be made more
generic so that it can be shared across drivers as part of ethtool
kernel work.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-09-08 10:06:17 -07:00
..
e1000 e1000: ensure to free old tx/rx rings in set_ringparam() 2018-08-24 08:52:35 -07:00
e1000e treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
fm10k treewide: Use array_size() in vmalloc() 2018-06-12 16:19:22 -07:00
i40e i40e(vf): remove i40e_ethtool_stats.h header file 2018-09-08 10:06:17 -07:00
i40evf i40e(vf): remove i40e_ethtool_stats.h header file 2018-09-08 10:06:17 -07:00
ice ice: Fix and update driver version string 2018-08-28 11:14:19 -07:00
igb igb: Replace mdelay() with msleep() in igb_integrated_phy_loopback() 2018-08-24 08:52:35 -07:00
igbvf igbvf: netdev: Mark expected switch fall-through 2018-08-07 17:54:20 -07:00
ixgb ixgb: use dma_zalloc_coherent instead of allocator/memset 2018-08-24 08:52:35 -07:00
ixgbe ixgbe: fix the return value for unsupported VF offload 2018-08-28 14:33:38 -07:00
ixgbevf ixgbevf: enable VF IPsec offload operations 2018-08-28 14:33:30 -07:00
Kconfig docs: Fix more broken references 2018-06-15 18:11:26 -03:00
Makefile ice: Add basic driver framework for Intel(R) E800 Series 2018-03-26 08:28:02 -07:00
e100.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00