dev.dpdk.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] pmd: add new flag to indicate TX TSO operation on the packet
@ 2014-10-13 14:38 miroslaw.walukiewicz-ral2JQCrhuEAvxtiuMwx3w
       [not found] ` <20141013143834.19211.44077.stgit-tpi2AMbES9qir5R1eWH9hGt3HXsI98Cx0E9HWUfgJXw@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: miroslaw.walukiewicz-ral2JQCrhuEAvxtiuMwx3w @ 2014-10-13 14:38 UTC (permalink / raw)
  To: dev-VfR2kkLFssw

From: Miroslaw Walukiewicz <miroslaw.walukiewicz-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>

Transmission of TCP packets could be accelerated by
HW Transmit Segmentation Offload. With TSO packets up to
64K could be transmismitted.

When this flag is set the PMD drived will enable TCP segmentation.

The new field tso_segsz is added to indicate how long is TCP TSO segment.

Signed-off-by: Mirek Walukiewicz <miroslaw.walukiewicz-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---
 lib/librte_mbuf/rte_mbuf.h |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h
index ddadc21..63cbc36 100644
--- a/lib/librte_mbuf/rte_mbuf.h
+++ b/lib/librte_mbuf/rte_mbuf.h
@@ -117,6 +117,9 @@ extern "C" {
 /* Use final bit of flags to indicate a control mbuf */
 #define CTRL_MBUF_FLAG       (1ULL << 63) /**< Mbuf contains control data */
 
+/* Bit 50 - TSO (TCP Transmit Segmenation Offload) */
+#define PKT_TX_TCP_TSO       (1ULL << 50) /**< Mbuf needs TSO enabling */
+
 /**
  * Bit Mask to indicate what bits required for building TX context
  */
@@ -196,6 +199,8 @@ struct rte_mbuf {
 			uint16_t l2_len:7;      /**< L2 (MAC) Header Length. */
 		};
 	};
+	/* field to support TSO segment size */
+	uint32_t tso_segsz;
 } __rte_cache_aligned;
 
 /**

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-10-14  9:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-13 14:38 [PATCH 1/3] pmd: add new flag to indicate TX TSO operation on the packet miroslaw.walukiewicz-ral2JQCrhuEAvxtiuMwx3w
     [not found] ` <20141013143834.19211.44077.stgit-tpi2AMbES9qir5R1eWH9hGt3HXsI98Cx0E9HWUfgJXw@public.gmane.org>
2014-10-13 14:38   ` [PATCH 2/3] pmd: add new header containing TCP offload specific definitions miroslaw.walukiewicz-ral2JQCrhuEAvxtiuMwx3w
     [not found]     ` <20141013143840.19211.79771.stgit-tpi2AMbES9qir5R1eWH9hGt3HXsI98Cx0E9HWUfgJXw@public.gmane.org>
2014-10-14  9:50       ` Thomas Monjalon
2014-10-13 14:38   ` [PATCH 3/3] pmd i40e: Enable Transmit Segmentation Offload for TCP traffic miroslaw.walukiewicz-ral2JQCrhuEAvxtiuMwx3w
2014-10-14  7:47   ` [PATCH 1/3] pmd: add new flag to indicate TX TSO operation on the packet Liu, Jijiang

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).