linux/drivers/net/ethernet/intel/fm10k
Jacob Keller 36592d6ce8 fm10k: use macro to avoid passing the array and size separately
Avoid potential bugs with fm10k_add_stat_strings and
fm10k_add_ethtool_stats by using a macro to calculate the ARRAY_SIZE
when passing. This helps ensure that the size is always correct.

Note that it assumes we only pass static const fm10k_stat arrays, and
that evaluation of the argument won't have side effects.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2018-05-09 09:02:39 -07:00
..
fm10k_common.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
fm10k_common.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
fm10k_dcbnl.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
fm10k_debugfs.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
fm10k_ethtool.c fm10k: use macro to avoid passing the array and size separately 2018-05-09 09:02:39 -07:00
fm10k_iov.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
fm10k_main.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
fm10k_mbx.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
fm10k_mbx.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
fm10k_netdev.c fm10k: setup VLANs for l2 accelerated macvlan interfaces 2018-05-09 07:12:03 -07:00
fm10k_pci.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
fm10k_pf.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
fm10k_pf.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
fm10k_tlv.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
fm10k_tlv.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
fm10k_type.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
fm10k_vf.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
fm10k_vf.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
fm10k.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
Makefile net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00