linux/drivers/net/ethernet/broadcom/bnxt
Michael Chan 9b0436c3f2 bnxt_en: Fix SRIOV on big-endian architecture.
The PF driver sets up a list of firmware commands from the VF driver that
needs to be forwarded to the PF for approval.  This list is a 256-bit
bitmap.  The code that sets up the bitmap falls apart on big-endian
architecture.  __set_bit() does not work because it operates on long types
whereas the firmware interface is defined in u32 types, causing bits in
the wrong 32-bit word to be set.

Fix it by setting the proper bits on an array of u32.

Fixes: de68f5de56 ("bnxt_en: Fix bitmap declaration to work on 32-bit arches.")
Reported-by: Shannon Nelson <shannon.nelson@oracle.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-07-11 10:32:11 -07:00
..
bnxt_dcb.c bnxt_en: Check status of firmware DCBX agent before setting DCB_CAP_DCBX_HOST. 2017-05-17 15:12:49 -04:00
bnxt_dcb.h bnxt_en: Pass DCB RoCE app priority to firmware. 2017-04-24 13:54:46 -04:00
bnxt_ethtool.c bnxt_en: Fix bug in ethtool -L. 2017-07-11 10:32:11 -07:00
bnxt_ethtool.h bnxt_en: Add basic ethtool -t selftest support. 2017-04-05 06:24:26 -07:00
bnxt_fw_hdr.h bnxt_en: Added support for Secure Firmware Update 2016-09-19 21:32:24 -04:00
bnxt_hsi.h bnxt_en: Update firmware interface spec to 1.7.6.2. 2017-04-05 06:24:26 -07:00
bnxt_nvm_defs.h bnxt_en: Add support for updating flash more securely 2016-07-02 14:52:35 -04:00
bnxt_sriov.c bnxt_en: Fix VF attributes reporting. 2017-04-24 13:54:46 -04:00
bnxt_sriov.h bnxt_en: Update firmware interface spec to 1.7.6.2. 2017-04-05 06:24:26 -07:00
bnxt_ulp.c bnxt_en: Add a callback to inform RDMA driver during PCI shutdown. 2017-05-30 18:14:07 -04:00
bnxt_ulp.h bnxt_en: Add a callback to inform RDMA driver during PCI shutdown. 2017-05-30 18:14:07 -04:00
bnxt_xdp.c bnxt_en: Fix bug in ethtool -L. 2017-07-11 10:32:11 -07:00
bnxt_xdp.h bnxt_en: Add ethtool mac loopback self test. 2017-04-05 06:24:26 -07:00
bnxt.c bnxt_en: Fix SRIOV on big-endian architecture. 2017-07-11 10:32:11 -07:00
bnxt.h bnxt_en: Fix bug in ethtool -L. 2017-07-11 10:32:11 -07:00
Makefile bnxt_en: Add basic XDP support. 2017-02-07 13:31:00 -05:00