]> git.baikalelectronics.ru Git - kernel.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)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 2 Nov 2011 23:55:48 +0000 (16:55 -0700)
commitd7965061a5c6b1a603bef41c90ce4c1688d229f4
tree6c3d3ba0a7f440d263a776aa55d44caa41b09c59
parenta53e99a0241d83c06e6bde89c8ec2b25f54ab6bf
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

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>
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c