summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/sw/siw/siw_qp_rx.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2023-02-02 21:23:24 +0100
committerJason Gunthorpe <jgg@nvidia.com>2023-04-13 12:17:45 -0300
commita2e20b29cf9ce6d2070a6e36666e2239f7f9625b (patch)
treef23d3553688f1fafe3859748055aefa2c7d41ec8 /drivers/infiniband/sw/siw/siw_qp_rx.c
parent67a00d29c360f4d7b2ca7b1ccf24b145f60d14b8 (diff)
downloadlinux-a2e20b29cf9ce6d2070a6e36666e2239f7f9625b.tar.gz
linux-a2e20b29cf9ce6d2070a6e36666e2239f7f9625b.tar.bz2
linux-a2e20b29cf9ce6d2070a6e36666e2239f7f9625b.zip
RDMA/irdma: Slightly optimize irdma_form_ah_cm_frame()
There is no need to zero 'pktsize' bytes of 'buf', only the header needs to be cleared, to be safe. All the other bytes are already written with some memcpy() at the end of the function. Doing so also gives the opportunity to the compiler to avoid the memset() call. It can be inlined now that the length is known as compile time. Link: https://lore.kernel.org/r/098e3c397be0436f1867899245ecfe656c472110.1675369386.git.christophe.jaillet@wanadoo.fr Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Shiraz Saleem <shiraz.saleem@intel.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/sw/siw/siw_qp_rx.c')
0 files changed, 0 insertions, 0 deletions