OpenCloudOS-Kernel/drivers/net/ethernet/intel
Jacob Keller f998958df2 ixgbe: Use pci_get_dsn()
Replace the open-coded implementation for reading the PCIe DSN with
pci_get_dsn().

The original code used a simple for-loop to read the bytes in order into
a buffer one byte at a time.

The pci_get_dsn() function returns the DSN as a u64, correctly ordering
the upper and lower 32 bit dwords. Simplify the display code by using
%016llX to display the u64 DSN.

This should have equivalent behavior on both Little and Big Endian
systems. The bus will have correctly ordered the dwords in the CPU
endian format, while pci_get_dsn() will correctly order the lower and
higher dwords into a u64.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-03-05 17:36:46 -08:00
..
e1000 e1000(e): use new helper tcp_v6_gso_csum_prep 2020-02-19 11:20:59 -08:00
e1000e e1000e: reject unsupported coalescing params 2020-03-05 12:12:35 -08:00
fm10k intel: Replace zero-length array with flexible-array member 2020-02-24 15:26:17 -08:00
i40e intel: Replace zero-length array with flexible-array member 2020-02-24 15:26:17 -08:00
iavf iavf: use tc_cls_can_offload_and_chain0() instead of chain check 2020-02-26 09:01:19 -08:00
ice ice: Use pci_get_dsn() 2020-03-05 17:36:24 -08:00
igb intel: Replace zero-length array with flexible-array member 2020-02-24 15:26:17 -08:00
igbvf netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
igc intel: Replace zero-length array with flexible-array member 2020-02-24 15:26:17 -08:00
ixgb Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-12-22 15:15:05 -08:00
ixgbe ixgbe: Use pci_get_dsn() 2020-03-05 17:36:46 -08:00
ixgbevf Merge ra.kernel.org:/pub/scm/linux/kernel/git/netdev/net 2020-01-19 22:10:04 +01:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile igc: Add skeletal frame for Intel(R) 2.5G Ethernet Controller support 2018-10-17 12:14:54 -07:00
e100.c netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00