DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [RFC] net/mlx5: add support of LRO in MLX5 PMD
       [not found] <VI1PR05MB4224DBA75435A46F1A3EAD14B6090@VI1PR05MB4224.eurprd05.prod.outlook.com>
@ 2019-05-16 12:13 ` Dekel Peled
  0 siblings, 0 replies; only message in thread
From: Dekel Peled @ 2019-05-16 12:13 UTC (permalink / raw)
  To: Shahaf Shuler, Ori Kam, Yongseok Koh; +Cc: dev

Introduction:
LRO (Large Receive Offload) is intended to reduce host CPU overhead when processing Rx TCP packets.
LRO works by aggregating multiple incoming packets from a single stream into a larger buffer, before they
are passed higher up the networking stack. Thus reducing the number of packets that have to be processed.

Use:
MLX5 PMD will query the HCA capabilities on initialization to check if LRO is supported and can be used.
LRO in MLX5 PMD is intended for use by applications using a relatively small number of flows.
LRO support can be enabled per port.
Multiple simultaneous LRO sessions will be supported, using multiple RQs per DPDK Rx queue.
In each LRO session, packets of the same flow will be coalesced until one of the following occur:

  *   Buffer size limit is exceeded.
  *   Session timeout is exceeded.
  *   Packet from a different flow is received on the same queue.
When LRO session ends the coalesced packet is passed to the PMD, which will update the header fields
before passing the packet to the application.
For efficient memory utilization, packets from all RQs will be stored in a single RMP per DPDK Rx queue,
utilizing MPRQ mechanism.
Support of Non-LRO flows will not be impacted.

Existing API:
Offload capability DEV_RX_OFFLOAD_TCP_LRO will be used to indicate device supports LRO.
testpmd command-line option "-enable-lro" will be used to request LRO feature enable on application start.
testpmd rx_offload "tcp_lro" on or off will be used to request LRO feature enable or disable during application runtime.
Offload flag PKT_RX_LRO will be used. This flag can be set in Rx mbuf to indicate this is a LRO coalesced packet.

New API:
PMD configuration parameter lro_timeout_usec will be added.
This parameter can be used by application to select LRO session timeout (in microseconds).
If this value is not specified, the minimal value supported by device will be used.

Comments are welcome.


Signed-off-by: Dekel Peled <dekelp@mellanox.com<mailto:dekelp@mellanox.com>>


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-05-16 12:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <VI1PR05MB4224DBA75435A46F1A3EAD14B6090@VI1PR05MB4224.eurprd05.prod.outlook.com>
2019-05-16 12:13 ` [dpdk-dev] [RFC] net/mlx5: add support of LRO in MLX5 PMD Dekel Peled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).