DPI needs to know the PEM number for all external transfers.
Signed-off-by: Radha Mohan Chintakuntla <radhac@marvell.com>
Reviewed-by: Satananda Burla <sburla@marvell.com>
Acked-by: Satha Rao <skoteshwar@marvell.com>
index += 4;
hdr->s.fport = 0;
hdr->s.lport = 0;
+ if (ctx->xtype != DPI_XTYPE_INTERNAL_ONLY)
+ hdr->s.lport = ctx->pem_id;
/* For inbound case, src pointers are last pointers.
* For all other cases, src pointers are first pointers.
uint16_t req_type:2;
uint16_t use_lock:1;
uint16_t deallocv;
+ uint16_t pem_id;
struct dpi_cring_data_s *c_ring;
};