RE: [EXT] Re: [PATCH v4 2/2] net: dsa: ocelot: Add support for QinQ Operation

2020-08-05 Thread Hongbo Wang
> On 8/3/2020 11:36 PM, Hongbo Wang wrote: > >>> + if (vlan->proto == ETH_P_8021AD) { > >>> + ocelot->enable_qinq = true; > >>> + ocelot_port->qinq_mode = true; > >>> + } > >> ... > >>> + if (vlan->proto == ETH_P_8021AD) { > >>> + ocelot->enable_qinq

RE: [EXT] Re: [PATCH v4 2/2] net: dsa: ocelot: Add support for QinQ Operation

2020-08-04 Thread Hongbo Wang
> Caution: EXT Email > > On 8/3/2020 11:36 PM, Hongbo Wang wrote: > >>> + if (vlan->proto == ETH_P_8021AD) { > >>> + ocelot->enable_qinq = true; > >>> + ocelot_port->qinq_mode = true; > >>> + } > >> ... > >>> + if (vlan->proto == ETH_P_8021AD) { > >>> +

Re: [EXT] Re: [PATCH v4 2/2] net: dsa: ocelot: Add support for QinQ Operation

2020-08-04 Thread Florian Fainelli
On 8/3/2020 11:36 PM, Hongbo Wang wrote: >>> + if (vlan->proto == ETH_P_8021AD) { >>> + ocelot->enable_qinq = true; >>> + ocelot_port->qinq_mode = true; >>> + } >> ... >>> + if (vlan->proto == ETH_P_8021AD) { >>> + ocelot->enable_qinq = false; >>>

RE: [EXT] Re: [PATCH v4 2/2] net: dsa: ocelot: Add support for QinQ Operation

2020-08-04 Thread Hongbo Wang
> > This featue can be test using network test tools > > mispelled: feature, can be used to test network test tools? or can be used to > exercise network test tool? when testing this feature, I need network tool to send packet with VLAN tag(pcp proto and vid), I will change it to avoid ambiguity

RE: [EXT] Re: [PATCH v4 2/2] net: dsa: ocelot: Add support for QinQ Operation

2020-08-03 Thread Hongbo Wang
> > + if (vlan->proto == ETH_P_8021AD) { > > + ocelot->enable_qinq = true; > > + ocelot_port->qinq_mode = true; > > + } > ... > > + if (vlan->proto == ETH_P_8021AD) { > > + ocelot->enable_qinq = false; > > + ocelot_port->qinq_mode = false

Re: [PATCH v4 2/2] net: dsa: ocelot: Add support for QinQ Operation

2020-08-03 Thread Florian Fainelli
On 7/30/2020 3:25 AM, hongbo.w...@nxp.com wrote: > From: "hongbo.wang" > > This featue can be test using network test tools mispelled: feature, can be used to test network test tools? or can be used to exercise network test tool? > TX-tool -> swp0 -> swp1 -> RX-tool > > TX-tool

Re: [PATCH v4 2/2] net: dsa: ocelot: Add support for QinQ Operation

2020-08-03 Thread David Miller
From: hongbo.w...@nxp.com Date: Thu, 30 Jul 2020 18:25:05 +0800 > + if (vlan->proto == ETH_P_8021AD) { > + ocelot->enable_qinq = true; > + ocelot_port->qinq_mode = true; > + } ... > + if (vlan->proto == ETH_P_8021AD) { > + ocelot->enable_qinq = fals

[PATCH v4 2/2] net: dsa: ocelot: Add support for QinQ Operation

2020-07-30 Thread hongbo . wang
From: "hongbo.wang" This featue can be test using network test tools TX-tool -> swp0 -> swp1 -> RX-tool TX-tool simulates Customer that will send and receive packets with single VLAN tag(CTAG), RX-tool simulates Service-Provider that will send and receive packets with double VLAN ta