Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb2463ba authored by Bart Van Assche's avatar Bart Van Assche Committed by Jason Gunthorpe
Browse files

rdma/cxgb4: Fix SRQ endianness annotations



This patch avoids that sparse complains about casts to restricted __be32.

Fixes: a3cdaa69 ("cxgb4: Adds CPL support for Shared Receive Queues")
Signed-off-by: default avatarBart Van Assche <bart.vanassche@wdc.com>
Acked-by: default avatarSteve Wise <swise@opengridcomputing.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 7810e09b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1853,7 +1853,8 @@ static int rx_data(struct c4iw_dev *dev, struct sk_buff *skb)
	return 0;
}

static void complete_cached_srq_buffers(struct c4iw_ep *ep, u32 srqidx_status)
static void complete_cached_srq_buffers(struct c4iw_ep *ep,
					__be32 srqidx_status)
{
	enum chip_type adapter_type;
	u32 srqidx;
+2 −2
Original line number Diff line number Diff line
@@ -755,7 +755,7 @@ struct cpl_abort_req_rss {
struct cpl_abort_req_rss6 {
	WR_HDR;
	union opcode_tid ot;
	__u32 srqidx_status;
	__be32 srqidx_status;
};

#define ABORT_RSS_STATUS_S    0
@@ -785,7 +785,7 @@ struct cpl_abort_rpl_rss {

struct cpl_abort_rpl_rss6 {
	union opcode_tid ot;
	__u32 srqidx_status;
	__be32 srqidx_status;
};

struct cpl_abort_rpl {