* [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding
@ 2015-08-07 3:29 Michael Qiu
2015-08-07 16:05 ` De Lara Guarch, Pablo
` (2 more replies)
0 siblings, 3 replies; 15+ messages in thread
From: Michael Qiu @ 2015-08-07 3:29 UTC (permalink / raw)
To: dev
For some ethnet-switch like intel RRC, all the packet forwarded
out by DPDK will be dropped in switch side, so the packet
generator will never receive the packet.
Signed-off-by: Michael Qiu <michael.qiu@intel.com>
---
app/test-pmd/csumonly.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c
index 1bf3485..bf8af1d 100644
--- a/app/test-pmd/csumonly.c
+++ b/app/test-pmd/csumonly.c
@@ -550,6 +550,10 @@ pkt_burst_checksum_forward(struct fwd_stream *fs)
* and inner headers */
eth_hdr = rte_pktmbuf_mtod(m, struct ether_hdr *);
+ ether_addr_copy(&peer_eth_addrs[fs->peer_addr],
+ ð_hdr->d_addr);
+ ether_addr_copy(&ports[fs->tx_port].eth_addr,
+ ð_hdr->s_addr);
parse_ethernet(eth_hdr, &info);
l3_hdr = (char *)eth_hdr + info.l2_len;
--
1.9.3
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding
2015-08-07 3:29 [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding Michael Qiu
@ 2015-08-07 16:05 ` De Lara Guarch, Pablo
2015-08-07 18:42 ` Qiu, Michael
2015-08-07 16:06 ` Zhang, Helin
2015-08-26 6:12 ` Liu, Jijiang
2 siblings, 1 reply; 15+ messages in thread
From: De Lara Guarch, Pablo @ 2015-08-07 16:05 UTC (permalink / raw)
To: Qiu, Michael, dev
Hi Michael,
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Michael Qiu
> Sent: Friday, August 07, 2015 4:29 AM
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding
>
> For some ethnet-switch like intel RRC, all the packet forwarded
> out by DPDK will be dropped in switch side, so the packet
> generator will never receive the packet.
>
> Signed-off-by: Michael Qiu <michael.qiu@intel.com>
> ---
> app/test-pmd/csumonly.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c
> index 1bf3485..bf8af1d 100644
> --- a/app/test-pmd/csumonly.c
> +++ b/app/test-pmd/csumonly.c
> @@ -550,6 +550,10 @@ pkt_burst_checksum_forward(struct fwd_stream
> *fs)
> * and inner headers */
>
> eth_hdr = rte_pktmbuf_mtod(m, struct ether_hdr *);
> + ether_addr_copy(&peer_eth_addrs[fs->peer_addr],
> + ð_hdr->d_addr);
> + ether_addr_copy(&ports[fs->tx_port].eth_addr,
> + ð_hdr->s_addr);
> parse_ethernet(eth_hdr, &info);
> l3_hdr = (char *)eth_hdr + info.l2_len;
>
> --
> 1.9.3
Why do you make this change only in this mode? If NICs like RRC has this issue,
I assume it would happen in other modes.
Thanks,
Pablo
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding
2015-08-07 3:29 [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding Michael Qiu
2015-08-07 16:05 ` De Lara Guarch, Pablo
@ 2015-08-07 16:06 ` Zhang, Helin
2015-08-07 18:52 ` Qiu, Michael
2015-08-08 0:13 ` Ouyang, Changchun
2015-08-26 6:12 ` Liu, Jijiang
2 siblings, 2 replies; 15+ messages in thread
From: Zhang, Helin @ 2015-08-07 16:06 UTC (permalink / raw)
To: Qiu, Michael, dev
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Michael Qiu
> Sent: Thursday, August 6, 2015 8:29 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding
>
> For some ethnet-switch like intel RRC, all the packet forwarded out by DPDK will
> be dropped in switch side, so the packet generator will never receive the packet.
Is it because of anti-sproof? E.g. When the hardware found that the dest mac is the
port itself, then it will be dropped during TX.
You need to tell the root cause, and why we need to modify like this.
>
> Signed-off-by: Michael Qiu <michael.qiu@intel.com>
> ---
> app/test-pmd/csumonly.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c index
> 1bf3485..bf8af1d 100644
> --- a/app/test-pmd/csumonly.c
> +++ b/app/test-pmd/csumonly.c
> @@ -550,6 +550,10 @@ pkt_burst_checksum_forward(struct fwd_stream *fs)
> * and inner headers */
>
> eth_hdr = rte_pktmbuf_mtod(m, struct ether_hdr *);
> + ether_addr_copy(&peer_eth_addrs[fs->peer_addr],
> + ð_hdr->d_addr);
> + ether_addr_copy(&ports[fs->tx_port].eth_addr,
> + ð_hdr->s_addr);
Is it really necessary? Why other NICs do not need this?
> parse_ethernet(eth_hdr, &info);
> l3_hdr = (char *)eth_hdr + info.l2_len;
>
> --
> 1.9.3
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding
2015-08-07 16:05 ` De Lara Guarch, Pablo
@ 2015-08-07 18:42 ` Qiu, Michael
0 siblings, 0 replies; 15+ messages in thread
From: Qiu, Michael @ 2015-08-07 18:42 UTC (permalink / raw)
To: De Lara Guarch, Pablo, dev
On 2015/8/7 9:05, De Lara Guarch, Pablo wrote:
> Hi Michael,
>
>> -----Original Message-----
>> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Michael Qiu
>> Sent: Friday, August 07, 2015 4:29 AM
>> To: dev@dpdk.org
>> Subject: [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding
>>
>> For some ethnet-switch like intel RRC, all the packet forwarded
>> out by DPDK will be dropped in switch side, so the packet
>> generator will never receive the packet.
>>
>> Signed-off-by: Michael Qiu <michael.qiu@intel.com>
>> ---
>> app/test-pmd/csumonly.c | 4 ++++
>> 1 file changed, 4 insertions(+)
>>
>> diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c
>> index 1bf3485..bf8af1d 100644
>> --- a/app/test-pmd/csumonly.c
>> +++ b/app/test-pmd/csumonly.c
>> @@ -550,6 +550,10 @@ pkt_burst_checksum_forward(struct fwd_stream
>> *fs)
>> * and inner headers */
>>
>> eth_hdr = rte_pktmbuf_mtod(m, struct ether_hdr *);
>> + ether_addr_copy(&peer_eth_addrs[fs->peer_addr],
>> + ð_hdr->d_addr);
>> + ether_addr_copy(&ports[fs->tx_port].eth_addr,
>> + ð_hdr->s_addr);
>> parse_ethernet(eth_hdr, &info);
>> l3_hdr = (char *)eth_hdr + info.l2_len;
>>
>> --
>> 1.9.3
> Why do you make this change only in this mode? If NICs like RRC has this issue,
> I assume it would happen in other modes.
Yes, exactly, but for iofwd if we change the mac, so the mode is changed
.... am I right?
Thanks,
Michael
> Thanks,
> Pablo
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding
2015-08-07 16:06 ` Zhang, Helin
@ 2015-08-07 18:52 ` Qiu, Michael
2015-08-07 20:37 ` Zhang, Helin
2015-08-08 0:13 ` Ouyang, Changchun
1 sibling, 1 reply; 15+ messages in thread
From: Qiu, Michael @ 2015-08-07 18:52 UTC (permalink / raw)
To: Zhang, Helin, dev
On 2015/8/7 9:06, Zhang, Helin wrote:
>
>> -----Original Message-----
>> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Michael Qiu
>> Sent: Thursday, August 6, 2015 8:29 PM
>> To: dev@dpdk.org
>> Subject: [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding
>>
>> For some ethnet-switch like intel RRC, all the packet forwarded out by DPDK will
>> be dropped in switch side, so the packet generator will never receive the packet.
> Is it because of anti-sproof? E.g. When the hardware found that the dest mac is the
> port itself, then it will be dropped during TX.
> You need to tell the root cause, and why we need to modify like this.
Actually, it is not the hardware from PEP(PCI End Point) side, but the
switch side.
The TX is OK for DPDK and NIC, but in switch, it receives the packet and
try to forward it, but the dest mac is the same as the NIC which
transmit this packet.
So switch will drop it as "Loopback Suppression Drop" in RRC. This
should only happen when switch forwarding packets using dest mac.
>
>> Signed-off-by: Michael Qiu <michael.qiu@intel.com>
>> ---
>> app/test-pmd/csumonly.c | 4 ++++
>> 1 file changed, 4 insertions(+)
>>
>> diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c index
>> 1bf3485..bf8af1d 100644
>> --- a/app/test-pmd/csumonly.c
>> +++ b/app/test-pmd/csumonly.c
>> @@ -550,6 +550,10 @@ pkt_burst_checksum_forward(struct fwd_stream *fs)
>> * and inner headers */
>>
>> eth_hdr = rte_pktmbuf_mtod(m, struct ether_hdr *);
>> + ether_addr_copy(&peer_eth_addrs[fs->peer_addr],
>> + ð_hdr->d_addr);
>> + ether_addr_copy(&ports[fs->tx_port].eth_addr,
>> + ð_hdr->s_addr);
> Is it really necessary? Why other NICs do not need this?
Because other NICs is connect directly to packet generator...., if we
using switch to connect the generator and the NICs, I think it will need
this.
Thanks,
Michael
>
>> parse_ethernet(eth_hdr, &info);
>> l3_hdr = (char *)eth_hdr + info.l2_len;
>>
>> --
>> 1.9.3
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding
2015-08-07 18:52 ` Qiu, Michael
@ 2015-08-07 20:37 ` Zhang, Helin
2015-08-07 21:16 ` Qiu, Michael
0 siblings, 1 reply; 15+ messages in thread
From: Zhang, Helin @ 2015-08-07 20:37 UTC (permalink / raw)
To: Qiu, Michael, dev
> -----Original Message-----
> From: Qiu, Michael
> Sent: Friday, August 7, 2015 11:53 AM
> To: Zhang, Helin; dev@dpdk.org
> Subject: Re: [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding
>
> On 2015/8/7 9:06, Zhang, Helin wrote:
> >
> >> -----Original Message-----
> >> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Michael Qiu
> >> Sent: Thursday, August 6, 2015 8:29 PM
> >> To: dev@dpdk.org
> >> Subject: [dpdk-dev] [PATCH] testpmd: modify the mac of csum
> >> forwarding
> >>
> >> For some ethnet-switch like intel RRC, all the packet forwarded out
> >> by DPDK will be dropped in switch side, so the packet generator will never
> receive the packet.
> > Is it because of anti-sproof? E.g. When the hardware found that the
> > dest mac is the port itself, then it will be dropped during TX.
> > You need to tell the root cause, and why we need to modify like this.
>
> Actually, it is not the hardware from PEP(PCI End Point) side, but the switch side.
>
> The TX is OK for DPDK and NIC, but in switch, it receives the packet and try to
> forward it, but the dest mac is the same as the NIC which transmit this packet.
> So switch will drop it as "Loopback Suppression Drop" in RRC. This should only
> happen when switch forwarding packets using dest mac.
>
>
> >
> >> Signed-off-by: Michael Qiu <michael.qiu@intel.com>
> >> ---
> >> app/test-pmd/csumonly.c | 4 ++++
> >> 1 file changed, 4 insertions(+)
> >>
> >> diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c index
> >> 1bf3485..bf8af1d 100644
> >> --- a/app/test-pmd/csumonly.c
> >> +++ b/app/test-pmd/csumonly.c
> >> @@ -550,6 +550,10 @@ pkt_burst_checksum_forward(struct fwd_stream
> *fs)
> >> * and inner headers */
> >>
> >> eth_hdr = rte_pktmbuf_mtod(m, struct ether_hdr *);
> >> + ether_addr_copy(&peer_eth_addrs[fs->peer_addr],
> >> + ð_hdr->d_addr);
> >> + ether_addr_copy(&ports[fs->tx_port].eth_addr,
> >> + ð_hdr->s_addr);
> > Is it really necessary? Why other NICs do not need this?
>
> Because other NICs is connect directly to packet generator...., if we using switch
> to connect the generator and the NICs, I think it will need this.
There are 'iofwd' and 'mac' mode in testpmd, and mac forware will modify the dest
mac before transmitting the packet. They are for different cases.
Why not use mac forwarding mode for your testing, and just keep it as is?
Regards,
Helin
>
> Thanks,
> Michael
> >
> >> parse_ethernet(eth_hdr, &info);
> >> l3_hdr = (char *)eth_hdr + info.l2_len;
> >>
> >> --
> >> 1.9.3
> >
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding
2015-08-07 20:37 ` Zhang, Helin
@ 2015-08-07 21:16 ` Qiu, Michael
0 siblings, 0 replies; 15+ messages in thread
From: Qiu, Michael @ 2015-08-07 21:16 UTC (permalink / raw)
To: Zhang, Helin, dev
On 2015/8/7 13:37, Zhang, Helin wrote:
>
>> -----Original Message-----
>> From: Qiu, Michael
>> Sent: Friday, August 7, 2015 11:53 AM
>> To: Zhang, Helin; dev@dpdk.org
>> Subject: Re: [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding
>>
>> On 2015/8/7 9:06, Zhang, Helin wrote:
>>>> -----Original Message-----
>>>> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Michael Qiu
>>>> Sent: Thursday, August 6, 2015 8:29 PM
>>>> To: dev@dpdk.org
>>>> Subject: [dpdk-dev] [PATCH] testpmd: modify the mac of csum
>>>> forwarding
>>>>
>>>> For some ethnet-switch like intel RRC, all the packet forwarded out
>>>> by DPDK will be dropped in switch side, so the packet generator will never
>> receive the packet.
>>> Is it because of anti-sproof? E.g. When the hardware found that the
>>> dest mac is the port itself, then it will be dropped during TX.
>>> You need to tell the root cause, and why we need to modify like this.
>> Actually, it is not the hardware from PEP(PCI End Point) side, but the switch side.
>>
>> The TX is OK for DPDK and NIC, but in switch, it receives the packet and try to
>> forward it, but the dest mac is the same as the NIC which transmit this packet.
>> So switch will drop it as "Loopback Suppression Drop" in RRC. This should only
>> happen when switch forwarding packets using dest mac.
>>
>>
>>>> Signed-off-by: Michael Qiu <michael.qiu@intel.com>
>>>> ---
>>>> app/test-pmd/csumonly.c | 4 ++++
>>>> 1 file changed, 4 insertions(+)
>>>>
>>>> diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c index
>>>> 1bf3485..bf8af1d 100644
>>>> --- a/app/test-pmd/csumonly.c
>>>> +++ b/app/test-pmd/csumonly.c
>>>> @@ -550,6 +550,10 @@ pkt_burst_checksum_forward(struct fwd_stream
>> *fs)
>>>> * and inner headers */
>>>>
>>>> eth_hdr = rte_pktmbuf_mtod(m, struct ether_hdr *);
>>>> + ether_addr_copy(&peer_eth_addrs[fs->peer_addr],
>>>> + ð_hdr->d_addr);
>>>> + ether_addr_copy(&ports[fs->tx_port].eth_addr,
>>>> + ð_hdr->s_addr);
>>> Is it really necessary? Why other NICs do not need this?
>> Because other NICs is connect directly to packet generator...., if we using switch
>> to connect the generator and the NICs, I think it will need this.
> There are 'iofwd' and 'mac' mode in testpmd, and mac forware will modify the dest
> mac before transmitting the packet. They are for different cases.
> Why not use mac forwarding mode for your testing, and just keep it as is?
Yes, I don't touch iofwd, I just modify the csum, when we test checksum
offload, especially for checksum insert in TX side.
Thanks,
Michael
> Regards,
> Helin
>
>> Thanks,
>> Michael
>>>> parse_ethernet(eth_hdr, &info);
>>>> l3_hdr = (char *)eth_hdr + info.l2_len;
>>>>
>>>> --
>>>> 1.9.3
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding
2015-08-07 16:06 ` Zhang, Helin
2015-08-07 18:52 ` Qiu, Michael
@ 2015-08-08 0:13 ` Ouyang, Changchun
2015-08-10 4:45 ` Qiu, Michael
1 sibling, 1 reply; 15+ messages in thread
From: Ouyang, Changchun @ 2015-08-08 0:13 UTC (permalink / raw)
To: Zhang, Helin, Qiu, Michael, dev
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Zhang, Helin
> Sent: Saturday, August 8, 2015 12:07 AM
> To: Qiu, Michael; dev@dpdk.org
> Subject: Re: [dpdk-dev] [PATCH] testpmd: modify the mac of csum
> forwarding
>
>
>
> > -----Original Message-----
> > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Michael Qiu
> > Sent: Thursday, August 6, 2015 8:29 PM
> > To: dev@dpdk.org
> > Subject: [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding
> >
> > For some ethnet-switch like intel RRC, all the packet forwarded out by
> > DPDK will be dropped in switch side, so the packet generator will never
> receive the packet.
> Is it because of anti-sproof? E.g. When the hardware found that the dest mac
> is the port itself, then it will be dropped during TX.
> You need to tell the root cause, and why we need to modify like this.
>
> >
> > Signed-off-by: Michael Qiu <michael.qiu@intel.com>
> > ---
> > app/test-pmd/csumonly.c | 4 ++++
> > 1 file changed, 4 insertions(+)
> >
> > diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c index
> > 1bf3485..bf8af1d 100644
> > --- a/app/test-pmd/csumonly.c
> > +++ b/app/test-pmd/csumonly.c
> > @@ -550,6 +550,10 @@ pkt_burst_checksum_forward(struct fwd_stream
> *fs)
> > * and inner headers */
> >
> > eth_hdr = rte_pktmbuf_mtod(m, struct ether_hdr *);
> > + ether_addr_copy(&peer_eth_addrs[fs->peer_addr],
> > + ð_hdr->d_addr);
> > + ether_addr_copy(&ports[fs->tx_port].eth_addr,
> > + ð_hdr->s_addr);
> Is it really necessary? Why other NICs do not need this?
>
Seems the behavior changes from io fwd into mac fwd?
> > parse_ethernet(eth_hdr, &info);
> > l3_hdr = (char *)eth_hdr + info.l2_len;
> >
> > --
> > 1.9.3
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding
2015-08-08 0:13 ` Ouyang, Changchun
@ 2015-08-10 4:45 ` Qiu, Michael
0 siblings, 0 replies; 15+ messages in thread
From: Qiu, Michael @ 2015-08-10 4:45 UTC (permalink / raw)
To: Ouyang, Changchun, Zhang, Helin, dev
On 2015/8/7 17:13, Ouyang, Changchun wrote:
>
>>
[.../...]
>>
>> eth_hdr = rte_pktmbuf_mtod(m, struct ether_hdr *);
>> + ether_addr_copy(&peer_eth_addrs[fs->peer_addr],
>> + ð_hdr->d_addr);
>> + ether_addr_copy(&ports[fs->tx_port].eth_addr,
>> + ð_hdr->s_addr);
>> Is it really necessary? Why other NICs do not need this?
>>
> Seems the behavior changes from io fwd into mac fwd?
Yes, but I think it is no influence for checksum offload.
Thanks,
Michael
>>> parse_ethernet(eth_hdr, &info);
>>> l3_hdr = (char *)eth_hdr + info.l2_len;
>>>
>>> --
>>> 1.9.3
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding
2015-08-07 3:29 [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding Michael Qiu
2015-08-07 16:05 ` De Lara Guarch, Pablo
2015-08-07 16:06 ` Zhang, Helin
@ 2015-08-26 6:12 ` Liu, Jijiang
2015-09-14 3:37 ` Qiu, Michael
2015-10-13 6:29 ` Qiu, Michael
2 siblings, 2 replies; 15+ messages in thread
From: Liu, Jijiang @ 2015-08-26 6:12 UTC (permalink / raw)
To: Qiu, Michael, dev
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Michael Qiu
> Sent: Friday, August 07, 2015 11:29 AM
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding
>
> For some ethnet-switch like intel RRC, all the packet forwarded out by DPDK
> will be dropped in switch side, so the packet generator will never receive the
> packet.
>
> Signed-off-by: Michael Qiu <michael.qiu@intel.com>
> ---
> app/test-pmd/csumonly.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c index
> 1bf3485..bf8af1d 100644
> --- a/app/test-pmd/csumonly.c
> +++ b/app/test-pmd/csumonly.c
> @@ -550,6 +550,10 @@ pkt_burst_checksum_forward(struct fwd_stream
> *fs)
> * and inner headers */
>
> eth_hdr = rte_pktmbuf_mtod(m, struct ether_hdr *);
> + ether_addr_copy(&peer_eth_addrs[fs->peer_addr],
> + ð_hdr->d_addr);
> + ether_addr_copy(&ports[fs->tx_port].eth_addr,
> + ð_hdr->s_addr);
> parse_ethernet(eth_hdr, &info);
> l3_hdr = (char *)eth_hdr + info.l2_len;
>
> --
> 1.9.3
The change will affect on the csum fwd performance.
But I also think the change is necessary, or we cannot use csumonly fwd mode in guest。
Acked-by: Jijiang Liu <Jijiang.liu@intel.com>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding
2015-08-26 6:12 ` Liu, Jijiang
@ 2015-09-14 3:37 ` Qiu, Michael
2015-10-13 6:29 ` Qiu, Michael
1 sibling, 0 replies; 15+ messages in thread
From: Qiu, Michael @ 2015-09-14 3:37 UTC (permalink / raw)
To: dev
Hi, all
any other comments about this patch?
Thanks,
Michael
On 8/26/2015 2:12 PM, Liu, Jijiang wrote:
>
>> -----Original Message-----
>> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Michael Qiu
>> Sent: Friday, August 07, 2015 11:29 AM
>> To: dev@dpdk.org
>> Subject: [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding
>>
>> For some ethnet-switch like intel RRC, all the packet forwarded out by DPDK
>> will be dropped in switch side, so the packet generator will never receive the
>> packet.
>>
>> Signed-off-by: Michael Qiu <michael.qiu@intel.com>
>> ---
>> app/test-pmd/csumonly.c | 4 ++++
>> 1 file changed, 4 insertions(+)
>>
>> diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c index
>> 1bf3485..bf8af1d 100644
>> --- a/app/test-pmd/csumonly.c
>> +++ b/app/test-pmd/csumonly.c
>> @@ -550,6 +550,10 @@ pkt_burst_checksum_forward(struct fwd_stream
>> *fs)
>> * and inner headers */
>>
>> eth_hdr = rte_pktmbuf_mtod(m, struct ether_hdr *);
>> + ether_addr_copy(&peer_eth_addrs[fs->peer_addr],
>> + ð_hdr->d_addr);
>> + ether_addr_copy(&ports[fs->tx_port].eth_addr,
>> + ð_hdr->s_addr);
>> parse_ethernet(eth_hdr, &info);
>> l3_hdr = (char *)eth_hdr + info.l2_len;
>>
>> --
>> 1.9.3
> The change will affect on the csum fwd performance.
> But I also think the change is necessary, or we cannot use csumonly fwd mode in guest。
>
> Acked-by: Jijiang Liu <Jijiang.liu@intel.com>
>
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding
2015-08-26 6:12 ` Liu, Jijiang
2015-09-14 3:37 ` Qiu, Michael
@ 2015-10-13 6:29 ` Qiu, Michael
2015-10-24 16:52 ` Thomas Monjalon
1 sibling, 1 reply; 15+ messages in thread
From: Qiu, Michael @ 2015-10-13 6:29 UTC (permalink / raw)
To: dev, thomas.monjalon
Hi, Thomas
Any comments on this patch? Is it suitable for DPDK?
Thanks,
Michael
On 2015/8/26 14:12, Liu, Jijiang wrote:
>
>> -----Original Message-----
>> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Michael Qiu
>> Sent: Friday, August 07, 2015 11:29 AM
>> To: dev@dpdk.org
>> Subject: [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding
>>
>> For some ethnet-switch like intel RRC, all the packet forwarded out by DPDK
>> will be dropped in switch side, so the packet generator will never receive the
>> packet.
>>
>> Signed-off-by: Michael Qiu <michael.qiu@intel.com>
>> ---
>> app/test-pmd/csumonly.c | 4 ++++
>> 1 file changed, 4 insertions(+)
>>
>> diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c index
>> 1bf3485..bf8af1d 100644
>> --- a/app/test-pmd/csumonly.c
>> +++ b/app/test-pmd/csumonly.c
>> @@ -550,6 +550,10 @@ pkt_burst_checksum_forward(struct fwd_stream
>> *fs)
>> * and inner headers */
>>
>> eth_hdr = rte_pktmbuf_mtod(m, struct ether_hdr *);
>> + ether_addr_copy(&peer_eth_addrs[fs->peer_addr],
>> + ð_hdr->d_addr);
>> + ether_addr_copy(&ports[fs->tx_port].eth_addr,
>> + ð_hdr->s_addr);
>> parse_ethernet(eth_hdr, &info);
>> l3_hdr = (char *)eth_hdr + info.l2_len;
>>
>> --
>> 1.9.3
> The change will affect on the csum fwd performance.
> But I also think the change is necessary, or we cannot use csumonly fwd mode in guest。
>
> Acked-by: Jijiang Liu <Jijiang.liu@intel.com>
>
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding
2015-10-13 6:29 ` Qiu, Michael
@ 2015-10-24 16:52 ` Thomas Monjalon
2015-10-26 19:47 ` De Lara Guarch, Pablo
0 siblings, 1 reply; 15+ messages in thread
From: Thomas Monjalon @ 2015-10-24 16:52 UTC (permalink / raw)
To: Qiu, Michael; +Cc: dev
2015-10-13 06:29, Qiu, Michael:
> Hi, Thomas
>
> Any comments on this patch? Is it suitable for DPDK?
Please check with the testpmd maintainer.
Pablo?
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding
2015-10-24 16:52 ` Thomas Monjalon
@ 2015-10-26 19:47 ` De Lara Guarch, Pablo
2015-10-29 22:55 ` Thomas Monjalon
0 siblings, 1 reply; 15+ messages in thread
From: De Lara Guarch, Pablo @ 2015-10-26 19:47 UTC (permalink / raw)
To: Thomas Monjalon, Qiu, Michael; +Cc: dev
HI,
> -----Original Message-----
> From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com]
> Sent: Saturday, October 24, 2015 5:52 PM
> To: Qiu, Michael
> Cc: dev@dpdk.org; Liu, Jijiang; De Lara Guarch, Pablo
> Subject: Re: [dpdk-dev] [PATCH] testpmd: modify the mac of csum
> forwarding
>
> 2015-10-13 06:29, Qiu, Michael:
> > Hi, Thomas
> >
> > Any comments on this patch? Is it suitable for DPDK?
>
> Please check with the testpmd maintainer.
> Pablo?
The patch looks harmless for other NICs, and it does similar stuff as other forwarding modes,
so I think it is safe to integrate.
Thanks,
Pablo
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding
2015-10-26 19:47 ` De Lara Guarch, Pablo
@ 2015-10-29 22:55 ` Thomas Monjalon
0 siblings, 0 replies; 15+ messages in thread
From: Thomas Monjalon @ 2015-10-29 22:55 UTC (permalink / raw)
To: Qiu, Michael; +Cc: dev
2015-10-26 19:47, De Lara Guarch, Pablo:
> > 2015-10-13 06:29, Qiu, Michael:
> > > Hi, Thomas
> > >
> > > Any comments on this patch? Is it suitable for DPDK?
> >
> > Please check with the testpmd maintainer.
> > Pablo?
>
> The patch looks harmless for other NICs, and it does similar stuff as other forwarding modes,
> so I think it is safe to integrate.
Applied, thanks
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2015-10-29 22:56 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-07 3:29 [dpdk-dev] [PATCH] testpmd: modify the mac of csum forwarding Michael Qiu
2015-08-07 16:05 ` De Lara Guarch, Pablo
2015-08-07 18:42 ` Qiu, Michael
2015-08-07 16:06 ` Zhang, Helin
2015-08-07 18:52 ` Qiu, Michael
2015-08-07 20:37 ` Zhang, Helin
2015-08-07 21:16 ` Qiu, Michael
2015-08-08 0:13 ` Ouyang, Changchun
2015-08-10 4:45 ` Qiu, Michael
2015-08-26 6:12 ` Liu, Jijiang
2015-09-14 3:37 ` Qiu, Michael
2015-10-13 6:29 ` Qiu, Michael
2015-10-24 16:52 ` Thomas Monjalon
2015-10-26 19:47 ` De Lara Guarch, Pablo
2015-10-29 22:55 ` Thomas Monjalon
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).