]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ixgbe: fix reading of the buffer returned by the firmware
authorEmil Tantilov <emil.s.tantilov@intel.com>
Sat, 22 Oct 2011 05:21:32 +0000 (05:21 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 14:23:24 +0000 (22:23 +0800)
commitdd68eaf191ed3f27ed590f2792fda552d05a8c13
treec4337a31cf3e0d738f48e3be91eee8c281297369
parent20dbb3035b430430798078381573bec747258023
ixgbe: fix reading of the buffer returned by the firmware

This patch fixes some issues found in the buffer read portion of
ixgbe_host_interface_command()

- use `bi` as the buffer index counter instead of `i`
- add conversion to native cpu byte ordering on register read
- fix conversion from bytes to dword
- use dword_len instead of buf_len when reading the register

(cherry picked from commit 331bcf45feb76d507a769d9d3b26ff5626804117)
Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/ixgbe/ixgbe_common.c