* [PATCH 21.11] doc: fix mbuf flags
@ 2024-09-03 4:13 Yingming Mao
2024-09-04 14:31 ` Kevin Traynor
0 siblings, 1 reply; 2+ messages in thread
From: Yingming Mao @ 2024-09-03 4:13 UTC (permalink / raw)
To: stable; +Cc: Kevin Traynor
[ upstream commit 1d9077d101b5c9ac2f841a82187ef5ced0fc7f43 ]
Fixes: 2542ad53d867 ("doc: add description of the offload API")
Signed-off-by: Yingming Mao <maoyingming@baidu.com>
Reviewed-by: Shuo Li <lishuo02@baidu.com>
---
.mailmap | 3 ++-
doc/guides/prog_guide/mbuf_lib.rst | 8 ++++----
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/.mailmap b/.mailmap
index 434b0b53b7..03f77dd92c 100644
--- a/.mailmap
+++ b/.mailmap
@@ -826,7 +826,6 @@ Mandeep Rohilla <mrohilla@brocade.com>
Manish Chopra <manishc@marvell.com>
Manish Tomar <manish.tomar@nxp.com>
Mao Jiang <maox.jiang@intel.com>
-Mao YingMing <maoyingming@baidu.com>
Marcel Apfelbaum <marcel@redhat.com>
Marcel Cornu <marcel.d.cornu@intel.com>
Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
@@ -1265,6 +1264,7 @@ Shuanglin Wang <shuanglin.wang@broadcom.com>
Shuki Katzenelson <shuki@lightbitslabs.com>
Shun Hao <shunh@nvidia.com>
Shu Shen <shu.shen@radisys.com>
+Shuo Li <lishuo02@baidu.com>
Shweta Choudaha <shweta.choudaha@att.com>
Shyam Kumar Shrivastav <shrivastav.shyam@gmail.com>
Shy Shyman <shys@nvidia.com> <shys@mellanox.com>
@@ -1558,6 +1558,7 @@ Yi Lu <luyi68@live.com>
Yilun Xu <yilun.xu@intel.com>
Yinan Wang <yinan.wang@intel.com>
Ying A Wang <ying.a.wang@intel.com>
+Yingming Mao <maoyingming@baidu.com>
Yingya Han <yingyax.han@intel.com>
Yinjun Zhang <yinjun.zhang@corigine.com>
Yipeng Wang <yipeng1.wang@intel.com>
diff --git a/doc/guides/prog_guide/mbuf_lib.rst b/doc/guides/prog_guide/mbuf_lib.rst
index 049357c755..749f9c97a8 100644
--- a/doc/guides/prog_guide/mbuf_lib.rst
+++ b/doc/guides/prog_guide/mbuf_lib.rst
@@ -134,7 +134,7 @@ a vxlan-encapsulated tcp packet:
mb->l2_len = len(out_eth)
mb->l3_len = len(out_ip)
- mb->ol_flags |= RTE_MBUF_F_TX_IPV4 | RTE_MBUF_F_TX_IP_CSUM
+ mb->ol_flags |= RTE_MBUF_F_TX_IPV4 | RTE_MBUF_F_TX_IP_CKSUM
set out_ip checksum to 0 in the packet
This is supported on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM.
@@ -143,7 +143,7 @@ a vxlan-encapsulated tcp packet:
mb->l2_len = len(out_eth)
mb->l3_len = len(out_ip)
- mb->ol_flags |= RTE_MBUF_F_TX_IPV4 | RTE_MBUF_F_TX_IP_CSUM | RTE_MBUF_F_TX_UDP_CKSUM
+ mb->ol_flags |= RTE_MBUF_F_TX_IPV4 | RTE_MBUF_F_TX_IP_CKSUM | RTE_MBUF_F_TX_UDP_CKSUM
set out_ip checksum to 0 in the packet
set out_udp checksum to pseudo header using rte_ipv4_phdr_cksum()
@@ -154,7 +154,7 @@ a vxlan-encapsulated tcp packet:
mb->l2_len = len(out_eth + out_ip + out_udp + vxlan + in_eth)
mb->l3_len = len(in_ip)
- mb->ol_flags |= RTE_MBUF_F_TX_IPV4 | RTE_MBUF_F_TX_IP_CSUM
+ mb->ol_flags |= RTE_MBUF_F_TX_IPV4 | RTE_MBUF_F_TX_IP_CKSUM
set in_ip checksum to 0 in the packet
This is similar to case 1), but l2_len is different. It is supported
@@ -165,7 +165,7 @@ a vxlan-encapsulated tcp packet:
mb->l2_len = len(out_eth + out_ip + out_udp + vxlan + in_eth)
mb->l3_len = len(in_ip)
- mb->ol_flags |= RTE_MBUF_F_TX_IPV4 | RTE_MBUF_F_TX_IP_CSUM | RTE_MBUF_F_TX_TCP_CKSUM
+ mb->ol_flags |= RTE_MBUF_F_TX_IPV4 | RTE_MBUF_F_TX_IP_CKSUM | RTE_MBUF_F_TX_TCP_CKSUM
set in_ip checksum to 0 in the packet
set in_tcp checksum to pseudo header using rte_ipv4_phdr_cksum()
--
2.27.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 21.11] doc: fix mbuf flags
2024-09-03 4:13 [PATCH 21.11] doc: fix mbuf flags Yingming Mao
@ 2024-09-04 14:31 ` Kevin Traynor
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Traynor @ 2024-09-04 14:31 UTC (permalink / raw)
To: Yingming Mao, stable
On 03/09/2024 05:13, Yingming Mao wrote:
> [ upstream commit 1d9077d101b5c9ac2f841a82187ef5ced0fc7f43 ]
>
> Fixes: 2542ad53d867 ("doc: add description of the offload API")
>
> Signed-off-by: Yingming Mao <maoyingming@baidu.com>
> Reviewed-by: Shuo Li <lishuo02@baidu.com>
> ---
> .mailmap | 3 ++-
> doc/guides/prog_guide/mbuf_lib.rst | 8 ++++----
> 2 files changed, 6 insertions(+), 5 deletions(-)
>
Thanks Yingming. Applied and pushed,
Kevin.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-09-04 14:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-03 4:13 [PATCH 21.11] doc: fix mbuf flags Yingming Mao
2024-09-04 14:31 ` Kevin Traynor
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).