Skip to content

Commit 933e8c9

Browse files
mkalderondavem330
authored andcommitted
qed: Fix MPA unalign flow in case header is split across two packets.
There is a corner case in the MPA unalign flow where a FPDU header is split over two tcp segments. The length of the first fragment in this case was not initialized properly and should be '1' Fixes: c7d1d83 ("qed: Add support for MPA header being split over two tcp packets") Signed-off-by: Michal Kalderon <[email protected]> Signed-off-by: Ariel Elior <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent fa6a91e commit 933e8c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/qlogic/qed/qed_iwarp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1928,8 +1928,8 @@ qed_iwarp_update_fpdu_length(struct qed_hwfn *p_hwfn,
19281928
/* Missing lower byte is now available */
19291929
mpa_len = fpdu->fpdu_length | *mpa_data;
19301930
fpdu->fpdu_length = QED_IWARP_FPDU_LEN_WITH_PAD(mpa_len);
1931-
fpdu->mpa_frag_len = fpdu->fpdu_length;
19321931
/* one byte of hdr */
1932+
fpdu->mpa_frag_len = 1;
19331933
fpdu->incomplete_bytes = fpdu->fpdu_length - 1;
19341934
DP_VERBOSE(p_hwfn,
19351935
QED_MSG_RDMA,

0 commit comments

Comments
 (0)