diff options
| author | Jacob Keller <[email protected]> | 2020-03-02 18:25:05 -0800 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-03-05 17:37:32 -0800 |
| commit | 61600112f02f31d9671bfc22df51c7e66b3c15c4 (patch) | |
| tree | c2f9898847a5773536bf9e2ef2add5068b6aae39 /tools/perf/scripts/python/stackcollapse.py | |
| parent | f998958df27272a689a31c5c6f38f0aad3884498 (diff) | |
nfp: Use pci_get_dsn()
Use the newly added pci_get_dsn() function for obtaining the 64-bit
Device Serial Number in the nfp6000_read_serial and
nfp_6000_get_interface functions.
pci_get_dsn() reports the Device Serial number as a u64 value created by
combining two pci_read_config_dword functions. The lower 16 bits
represent the device interface value, and the next 48 bits represent the
serial value. Use put_unaligned_be32 and put_unaligned_be16 to convert
the serial value portion into a Big Endian formatted serial u8 array.
Signed-off-by: Jacob Keller <[email protected]>
Cc: Jakub Kicinski <[email protected]>
Reviewed-by: Jakub Kicinski <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions