|
@@ -2984,20 +2984,20 @@ static void *set_eth_seg(struct mlx5_wqe_eth_seg *eseg,
|
|
|
|
|
|
if (wr->opcode == IB_WR_LSO) {
|
|
|
struct ib_ud_wr *ud_wr = container_of(wr, struct ib_ud_wr, wr);
|
|
|
- int size_of_inl_hdr_start = sizeof(eseg->inline_hdr_start);
|
|
|
+ int size_of_inl_hdr_start = sizeof(eseg->inline_hdr.start);
|
|
|
u64 left, leftlen, copysz;
|
|
|
void *pdata = ud_wr->header;
|
|
|
|
|
|
left = ud_wr->hlen;
|
|
|
eseg->mss = cpu_to_be16(ud_wr->mss);
|
|
|
- eseg->inline_hdr_sz = cpu_to_be16(left);
|
|
|
+ eseg->inline_hdr.sz = cpu_to_be16(left);
|
|
|
|
|
|
/*
|
|
|
* check if there is space till the end of queue, if yes,
|
|
|
* copy all in one shot, otherwise copy till the end of queue,
|
|
|
* rollback and than the copy the left
|
|
|
*/
|
|
|
- leftlen = qend - (void *)eseg->inline_hdr_start;
|
|
|
+ leftlen = qend - (void *)eseg->inline_hdr.start;
|
|
|
copysz = min_t(u64, leftlen, left);
|
|
|
|
|
|
memcpy(seg - size_of_inl_hdr_start, pdata, copysz);
|