]> git.baikalelectronics.ru Git - 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)
commit4ffd3f00c1d293decb4714e1295bbb7bb48d9b64
treecd23a3af637c15bc513a167851b930aa9506ee7c
parentfe27557c1782fe214d375bcd0b440363644de9f2
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