forked from Minki/linux
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:
parent
ca4f2d5036
commit
da472731d8
@ -4896,9 +4896,9 @@ struct c2s_pri_trans_table_entry {
|
||||
* cfc delete event data
|
||||
*/
|
||||
struct cfc_del_event_data {
|
||||
u32 cid;
|
||||
u32 reserved0;
|
||||
u32 reserved1;
|
||||
__le32 cid;
|
||||
__le32 reserved0;
|
||||
__le32 reserved1;
|
||||
};
|
||||
|
||||
|
||||
|
@ -5501,8 +5501,7 @@ static void bnx2x_eq_int(struct bnx2x *bp)
|
||||
*/
|
||||
|
||||
/* elem CID originates from FW; actually LE */
|
||||
cid = SW_CID((__force __le32)
|
||||
elem->message.data.cfc_del_event.cid);
|
||||
cid = SW_CID(elem->message.data.cfc_del_event.cid);
|
||||
|
||||
DP(BNX2X_MSG_SP,
|
||||
"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)
|
||||
|
||||
switch (opcode) {
|
||||
case EVENT_RING_OPCODE_CFC_DEL:
|
||||
cid = SW_CID((__force __le32)
|
||||
elem->message.data.cfc_del_event.cid);
|
||||
cid = SW_CID(elem->message.data.cfc_del_event.cid);
|
||||
DP(BNX2X_MSG_IOV, "checking cfc-del comp cid=%d\n", cid);
|
||||
break;
|
||||
case EVENT_RING_OPCODE_CLASSIFICATION_RULES:
|
||||
|
Loading…
Reference in New Issue
Block a user