i40e: convert to cpu from le16 to generate switch_id correctly
authorJacob Keller <jacob.e.keller@intel.com>
Mon, 12 Dec 2016 23:44:14 +0000 (15:44 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 19 Feb 2017 04:35:36 +0000 (20:35 -0800)
commit2ae0bf501425cbddc8b992a2b65fc04d911cae8c
treecfb7296fcdd4c986a3518d00efebfbfac7bd35ba
parent773d4023badee2e196f4125a94fe9d5a739720a0
i40e: convert to cpu from le16 to generate switch_id correctly

On Big Endian platforms we would incorrectly calculate the wrong switch
id since we did not properly convert the le16 value into CPU format.
Caught by sparse.

Change-ID: I69a2f9fa064a0a91691f7d0e6fcc206adceb8e36
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_debugfs.c