bnx2x: fix crash on big-endian when adding VLAN
authorMichal Schmidt <mschmidt@redhat.com>
Wed, 2 Mar 2016 12:47:05 +0000 (13:47 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Mar 2016 18:31:55 +0000 (13:31 -0500)
commit9cd753a1f449b9af49a4c994ffab8c4f99d91f14
tree4df9d2bf14b0fe9eea6dc9666f8e119b33ccd89c
parent735c1e2511a5c4e6c451c8b3d29916c4b0fa39ae
bnx2x: fix crash on big-endian when adding VLAN

bnx2x crashes during the initialization of the 8021q module on ppc64.
The bug is a missing conversion from le32 in
bnx2x_handle_classification_eqe() when obtaining the cid value from
struct eth_event_data.

The fields in struct eth_event_data should all be declared as
little-endian and conversions added where missing.

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c