From: Maxime Coquelin <maxime.coquelin@redhat.com>
To: "Singh, Aman Deep" <aman.deep.singh@intel.com>,
dev@dpdk.org, jasowang@redhat.com, chenbo.xia@intel.com,
david.marchand@redhat.com, olivier.matz@6wind.com,
wenwux.ma@intel.com, yuying.zhang@intel.com
Cc: stable@dpdk.org
Subject: Re: [PATCH v2 1/6] Revert "app/testpmd: modify mac in csum forwarding"
Date: Fri, 17 Jun 2022 14:42:42 +0200 [thread overview]
Message-ID: <c47cda40-90db-5dce-ef48-5e59fa8907c2@redhat.com> (raw)
In-Reply-To: <81ca6e19-969a-18ad-8ef4-65c331cc8564@intel.com>
On 6/13/22 14:24, Singh, Aman Deep wrote:
> Hi Maxime,
>
> On 6/8/2022 6:19 PM, Maxime Coquelin wrote:
>> 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")
>> Cc: stable@dpdk.org
>>
>> 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 7df201e047..1a3fd9ce8a 100644
>> --- a/app/test-pmd/csumonly.c
>> +++ b/app/test-pmd/csumonly.c
>> @@ -916,10 +916,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],
>> - ð_hdr->dst_addr);
>> - rte_ether_addr_copy(&ports[fs->tx_port].eth_addr,
>> - ð_hdr->src_addr);
>> parse_ethernet(eth_hdr, &info);
>> l3_hdr = (char *)eth_hdr + info.l2_len;
>
> LGTM, In principle csum mode should not modify the mac addresses.
> This code has been there from start, so might break some TC's.
>
>
Agree, some tests will need to be adapted.
David showed me some tests in DTS were removing the MAC rewriting.
Thanks,
Maxime
next prev parent reply other threads:[~2022-06-17 12:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20220608124946.102623-1-maxime.coquelin@redhat.com>
2022-06-08 12:49 ` Maxime Coquelin
2022-06-13 12:24 ` Singh, Aman Deep
2022-06-17 12:42 ` Maxime Coquelin [this message]
2022-06-08 12:49 ` [PATCH v2 2/6] vhost: fix missing enqueue pseudo-header calculation Maxime Coquelin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c47cda40-90db-5dce-ef48-5e59fa8907c2@redhat.com \
--to=maxime.coquelin@redhat.com \
--cc=aman.deep.singh@intel.com \
--cc=chenbo.xia@intel.com \
--cc=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=jasowang@redhat.com \
--cc=olivier.matz@6wind.com \
--cc=stable@dpdk.org \
--cc=wenwux.ma@intel.com \
--cc=yuying.zhang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).