Re: [PATCH rdma-next 09/13] RDMA/mana_ib: UD/GSI work requests
From: Jason Gunthorpe
Date: Thu Jan 23 2025 - 14:03:39 EST
On Thu, Jan 23, 2025 at 06:20:34PM +0000, Long Li wrote:
> > + shadow_wqe = shadow_queue_producer_entry(&qp->shadow_rq);
> > + memset(shadow_wqe, 0, sizeof(*shadow_wqe));
>
> I would avoid using memset since this is on data path.
The compiler often does an amazing job with constant size small length
memsets.
Jason