Re: [PATCH v2 rfc 8/8] net: dsa: Fix SWITCHDEV_ATTR_ID_PORT_PARENT_ID
From: Florian Fainelli <f.fainelli@gmail.com>
Date: 2017-09-06 16:09:09
From: Florian Fainelli <f.fainelli@gmail.com>
Date: 2017-09-06 16:09:09
On September 6, 2017 8:08:25 AM PDT, Andrew Lunn [off-list ref] wrote:
quoted
quoted
Use the MAC address of the master interface as the parent ID. Thisisquoted
quoted
the same for all switches in a cluster, and should be unique iftherequoted
quoted
are multiple clusters.That is not correct. Support for multiple CPU ports is coming and in this case, you can have two CPU host interfaces wired to two switch ports of the same tree. So two different master MAC addresses.Yes, you are correct. I will change this.
A switch cluster should be tied to the same dsa_switch_tree though, can we use dst->tree as an unique identifier? -- Florian