aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorBrian Welty <[email protected]>2019-01-17 12:41:32 -0800
committerJason Gunthorpe <[email protected]>2019-01-21 14:20:08 -0700
commit904bba211acc2112fdf866e5a2bc6cd9ecd0de1b (patch)
tree101781a8c2fbf766daa22c4d9200b68601c4142e /net/lapb/lapb_subr.c
parentf45f8edbe1d345273ba0d8d8a9872bb30966869b (diff)
IB/{hfi1, qib}: Fix WC.byte_len calculation for UD_SEND_WITH_IMM
The work completion length for a receiving a UD send with immediate is short by 4 bytes causing application using this opcode to fail. The UD receive logic incorrectly subtracts 4 bytes for immediate value. These bytes are already included in header length and are used to calculate header/payload split, so the result is these 4 bytes are subtracted twice, once when the header length subtracted from the overall length and once again in the UD opcode specific path. Remove the extra subtraction when handling the opcode. Fixes: 7724105686e7 ("IB/hfi1: add driver files") Reviewed-by: Michael J. Ruhl <[email protected]> Signed-off-by: Brian Welty <[email protected]> Signed-off-by: Mike Marciniszyn <[email protected]> Signed-off-by: Dennis Dalessandro <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions