From: Florian Fainelli <f.fainelli@gmail.com>
To: David Miller <davem@davemloft.net>, hongbo.wang@nxp.com
Cc: xiaoliang.yang_1@nxp.com, po.liu@nxp.com, mingkai.hu@nxp.com,
allan.nielsen@microchip.com, claudiu.manoil@nxp.com,
alexandru.marginean@nxp.com, vladimir.oltean@nxp.com,
leoyang.li@nxp.com, andrew@lunn.ch, vivien.didelot@gmail.com,
jiri@resnulli.us, idosch@idosch.org, kuba@kernel.org,
vinicius.gomes@intel.com, nikolay@cumulusnetworks.com,
roopa@cumulusnetworks.com, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, horatiu.vultur@microchip.com,
alexandre.belloni@bootlin.com, UNGLinuxDriver@microchip.com,
ivecera@redhat.com
Subject: Re: [PATCH v6 0/3] Add 802.1AD protocol support for dsa switch and ocelot driver
Date: Fri, 18 Sep 2020 17:23:15 -0700 [thread overview]
Message-ID: <83403bcf-b6d8-f763-9269-682979a5619f@gmail.com> (raw)
In-Reply-To: <20200918.172025.962077344132523092.davem@davemloft.net>
On 9/18/2020 5:20 PM, David Miller wrote:
> From: hongbo.wang@nxp.com
> Date: Wed, 16 Sep 2020 17:48:42 +0800
>
>> 1. Overview
>> a) 0001* is for support to set dsa slave into 802.1AD(QinQ) mode.
>> b) 0002* is for vlan_proto support for br_switchdev_port_vlan_add and br_switchdev_port_vlan_del.
>> c) 0003* is for setting QinQ related registers in ocelot switch driver, after applying this patch, the switch(VSC99599)'s port can enable or disable QinQ mode.
>
> You're going to have to update every single SWITCHDEV_PORT_ADD_OBJ handler
> and subsequent helpers to check the validate the protocol value.
>
> You also are going to have to make sure that every instantiated
> switchdev_obj_port_vlan object initializes the vlan protocol field
> properly.
>
> Basically, now that this structure has a new member, everything that
> operates on that object must be updated to handle the new protocol
> value.
>
> And I do mean everything.
>
> You can't just add the protocol handling to the locations you care
> about for bridging and DSA.
>
> You also have to more fully address the feedback given by Vladimir
> in patch #3. Are the expectations on the user side a Linux based
> expectation, or one specific about how this ASIC is expected to
> behave by default. It is very unclear what you are talking about
> when you say customer and ISP etc.
Switch vendors like to refer to the outer tag as ISP VLAN tag and inner
tag as customer VLAN tag, sometimes S-TAG and C-TAG terms are used, too...
--
Florian
next prev parent reply other threads:[~2020-09-19 0:23 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-16 9:48 [PATCH v6 0/3] Add 802.1AD protocol support for dsa switch and ocelot driver hongbo.wang
2020-09-16 9:48 ` [PATCH v6 1/3] net: dsa: Add protocol support for 802.1AD when adding or deleting vlan for dsa switch port hongbo.wang
2020-09-16 9:48 ` [PATCH v6 2/3] net: switchdev: Add VLAN protocol support for switchdev port hongbo.wang
2020-09-16 9:48 ` [PATCH v6 3/3] net: dsa: ocelot: Add support for QinQ Operation hongbo.wang
2020-09-16 10:00 ` Vladimir Oltean
2020-09-16 10:28 ` [EXT] " Hongbo Wang
2020-09-16 10:45 ` Vladimir Oltean
2020-09-17 2:37 ` Hongbo Wang
2020-10-09 12:29 ` Vladimir Oltean
2020-10-10 3:22 ` Hongbo Wang
2020-09-19 0:20 ` [PATCH v6 0/3] Add 802.1AD protocol support for dsa switch and ocelot driver David Miller
2020-09-19 0:23 ` Florian Fainelli [this message]
2020-09-21 3:05 ` [EXT] " Hongbo Wang
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=83403bcf-b6d8-f763-9269-682979a5619f@gmail.com \
--to=f.fainelli@gmail.com \
--cc=UNGLinuxDriver@microchip.com \
--cc=alexandre.belloni@bootlin.com \
--cc=alexandru.marginean@nxp.com \
--cc=allan.nielsen@microchip.com \
--cc=andrew@lunn.ch \
--cc=claudiu.manoil@nxp.com \
--cc=davem@davemloft.net \
--cc=hongbo.wang@nxp.com \
--cc=horatiu.vultur@microchip.com \
--cc=idosch@idosch.org \
--cc=ivecera@redhat.com \
--cc=jiri@resnulli.us \
--cc=kuba@kernel.org \
--cc=leoyang.li@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingkai.hu@nxp.com \
--cc=netdev@vger.kernel.org \
--cc=nikolay@cumulusnetworks.com \
--cc=po.liu@nxp.com \
--cc=roopa@cumulusnetworks.com \
--cc=vinicius.gomes@intel.com \
--cc=vivien.didelot@gmail.com \
--cc=vladimir.oltean@nxp.com \
--cc=xiaoliang.yang_1@nxp.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