RDMA/cxgb4: fix accept failure due to increased cpl_t5_pass_accept_rpl size
authorPotnuri Bharat Teja <bharat@chelsio.com>
Tue, 9 Aug 2022 18:41:18 +0000 (00:11 +0530)
committerLeon Romanovsky <leonro@nvidia.com>
Tue, 16 Aug 2022 13:20:52 +0000 (16:20 +0300)
commitef0162298abf46b881e4a4d0c604d1a066228647
tree142622c19f055f0c436e33d5e570328715daadd9
parent4b83c3caf289b80acecc539c79f10a6937cc42dd
RDMA/cxgb4: fix accept failure due to increased cpl_t5_pass_accept_rpl size

Commit 'c2ed5611afd7' has increased the cpl_t5_pass_accept_rpl{} structure
size by 8B to avoid roundup. cpl_t5_pass_accept_rpl{} is a HW specific
structure and increasing its size will lead to unwanted adapter errors.
Current commit reverts the cpl_t5_pass_accept_rpl{} back to its original
and allocates zeroed skb buffer there by avoiding the memset for iss field.
Reorder code to minimize chip type checks.

Fixes: c2ed5611afd7 ("iw_cxgb4: Use memset_startat() for cpl_t5_pass_accept_rpl")
Link: https://lore.kernel.org/r/20220809184118.2029-1-rahul.lakkireddy@chelsio.com
Signed-off-by: Potnuri Bharat Teja <bharat@chelsio.com>
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/cxgb4/cm.c
drivers/net/ethernet/chelsio/cxgb4/t4_msg.h