]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
i40e: fix unconditional execution of cpu_to_le16()
authorJean Sacren <sakiwit@gmail.com>
Tue, 13 Oct 2015 07:06:32 +0000 (01:06 -0600)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 23 Oct 2015 12:40:49 +0000 (05:40 -0700)
commit2fc4cd52fa7ed86e9d1df94e459b6a2435bfa9c7
treecd23a3af637c15bc513a167851b930aa9506ee7c
parent0e5229c6c576969bf8f89f8ca74fa7ea355b434e
i40e: fix unconditional execution of cpu_to_le16()

The commit 3092e5e4cc79 ("i40e: add little endian conversion for
checksum") fixed the checksum bug on big-endian architecture.

But we should not execute cpu_to_le16() unconditionally. Thus, put
cpu_to_le16() under certain condition.

Cc: Jesse Brandeburg <jesse.brandeburg@intel.com>
Cc: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Jean Sacren <sakiwit@gmail.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_nvm.c