Commit da472731 authored by Michal Schmidt's avatar Michal Schmidt Committed by David S. Miller

bnx2x: define fields of struct cfc_del_event_data as little-endian

There were no missing endianness conversions in this case, but the
fields of struct cfc_del_event_data should be defined as little-endian
to get rid of the ugly (__force __le32) casts.
Signed-off-by: default avatarMichal Schmidt <mschmidt@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ca4f2d50
...@@ -4896,9 +4896,9 @@ struct c2s_pri_trans_table_entry { ...@@ -4896,9 +4896,9 @@ struct c2s_pri_trans_table_entry {
* cfc delete event data * cfc delete event data
*/ */
struct cfc_del_event_data { struct cfc_del_event_data {
u32 cid; __le32 cid;
u32 reserved0; __le32 reserved0;
u32 reserved1; __le32 reserved1;
}; };
......
...@@ -5501,8 +5501,7 @@ static void bnx2x_eq_int(struct bnx2x *bp) ...@@ -5501,8 +5501,7 @@ static void bnx2x_eq_int(struct bnx2x *bp)
*/ */
/* elem CID originates from FW; actually LE */ /* elem CID originates from FW; actually LE */
cid = SW_CID((__force __le32) cid = SW_CID(elem->message.data.cfc_del_event.cid);
elem->message.data.cfc_del_event.cid);
DP(BNX2X_MSG_SP, DP(BNX2X_MSG_SP,
"got delete ramrod for MULTI[%d]\n", cid); "got delete ramrod for MULTI[%d]\n", cid);
......
...@@ -1747,8 +1747,7 @@ int bnx2x_iov_eq_sp_event(struct bnx2x *bp, union event_ring_elem *elem) ...@@ -1747,8 +1747,7 @@ int bnx2x_iov_eq_sp_event(struct bnx2x *bp, union event_ring_elem *elem)
switch (opcode) { switch (opcode) {
case EVENT_RING_OPCODE_CFC_DEL: case EVENT_RING_OPCODE_CFC_DEL:
cid = SW_CID((__force __le32) cid = SW_CID(elem->message.data.cfc_del_event.cid);
elem->message.data.cfc_del_event.cid);
DP(BNX2X_MSG_IOV, "checking cfc-del comp cid=%d\n", cid); DP(BNX2X_MSG_IOV, "checking cfc-del comp cid=%d\n", cid);
break; break;
case EVENT_RING_OPCODE_CLASSIFICATION_RULES: case EVENT_RING_OPCODE_CLASSIFICATION_RULES:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment