OSDN Git Service

i40e: little endian only valid checksums
authorTom Rix <trix@redhat.com>
Wed, 2 Mar 2022 12:57:02 +0000 (04:57 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 17 Mar 2022 14:40:46 +0000 (07:40 -0700)
commitad739d0889a81a4273ab60a6c83cac3e6fad6aad
treec175cc4629f59ffb34d6f3ac1412411a1da61cd4
parent1abea24af42c35c6eb537e4402836e2cde2a5b13
i40e: little endian only valid checksums

The calculation of the checksum can fail.
So move converting the checksum to little endian
to inside the return status check.

Signed-off-by: Tom Rix <trix@redhat.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e_nvm.c