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: Michal Schmidt <mschmidt@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Michal Schmidt 2016-03-02 13:47:09 +01:00 committed by David S. Miller
parent ca4f2d5036
commit da472731d8
3 changed files with 5 additions and 7 deletions

View File

@ -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;
}; };

View File

@ -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);

View File

@ -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: