dpdk/0195-app-testpmd-revert-MAC-update-in-checksum-forwarding.patch
chenjiji09 9a66244233 Sync some patches for bonding PMD and testpmd. And patchs
are as follows:
 - app/testpmd: revert MAC update in checksum forwarding
 - net/bonding: fix bond4 drop valid MAC packets
 - net/bonding: fix slave device Rx/Tx offload configuration
 - app/testpmd: fix MAC header in csum forward engine
 - app/testpmd: update bond port configurations when add slave
 - app/testpmd: fix GENEVE parsing in checksum mode
 - net: add UDP/TCP checksum in mbuf segments
 - app/testpmd: add SW L4 checksum in multi-segments
 - app/testpmd: fix L4 checksum in multi-segments
 - net/bonding: fix mbuf fast free handling

(cherry picked from commit e33f71a88757d130f19712e0efd64ab7623510fb)
2022-11-16 14:56:36 +08:00

43 lines
1.4 KiB
Diff

From 304a7bf032352999131c0b3e28c585610000990e Mon Sep 17 00:00:00 2001
From: Maxime Coquelin <maxime.coquelin@redhat.com>
Date: Tue, 15 Nov 2022 12:06:06 +0800
Subject: app/testpmd: revert MAC update in checksum forwarding
[ upstream commit 9b4ea7ae77faa8f8aba8c7510c821f75d7863b16 ]
This patch reverts
commit 10f4620f02e1 ("app/testpmd: modify mac in csum forwarding"),
as the checksum forwarding is expected to only perform
checksum and not also overwrites the source and destination MAC addresses.
Doing so, we can test checksum offloading with real traffic
without breaking broadcast packets.
Fixes: 10f4620f02e1 ("app/testpmd: modify mac in csum forwarding")
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: Chenbo Xia <chenbo.xia@intel.com>
Acked-by: Aman Singh <aman.deep.singh@intel.com>
---
app/test-pmd/csumonly.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c
index 0177284d9c..206968d37a 100644
--- a/app/test-pmd/csumonly.c
+++ b/app/test-pmd/csumonly.c
@@ -887,10 +887,6 @@ pkt_burst_checksum_forward(struct fwd_stream *fs)
* and inner headers */
eth_hdr = rte_pktmbuf_mtod(m, struct rte_ether_hdr *);
- rte_ether_addr_copy(&peer_eth_addrs[fs->peer_addr],
- &eth_hdr->dst_addr);
- rte_ether_addr_copy(&ports[fs->tx_port].eth_addr,
- &eth_hdr->src_addr);
parse_ethernet(eth_hdr, &info);
l3_hdr = (char *)eth_hdr + info.l2_len;
--
2.23.0