[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190321134101.GA17655@lunn.ch>
Date: Thu, 21 Mar 2019 14:41:01 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Jiri Pirko <jiri@...nulli.us>
Cc: netdev@...r.kernel.org, davem@...emloft.net, mlxsw@...lanox.com,
idosch@...lanox.com, jakub.kicinski@...ronome.com,
f.fainelli@...il.com, vivien.didelot@...il.com
Subject: Re: [patch net-next 09/11] dsa: move devlink_port_attrs_set() call
before register
On Thu, Mar 21, 2019 at 02:20:17PM +0100, Jiri Pirko wrote:
> + switch (dp->type) {
> + case DSA_PORT_TYPE_CPU:
> + flavour = DEVLINK_PORT_FLAVOUR_CPU;
> + break;
> + case DSA_PORT_TYPE_DSA:
> + flavour = DEVLINK_PORT_FLAVOUR_DSA;
> + break;
> + case DSA_PORT_TYPE_USER: /* fall-through */
> + default:
> + flavour = DEVLINK_PORT_FLAVOUR_PHYSICAL;
> + break;
> + }
> +
> + /* dp->index is used now as port_number. However
> + * CPU ports should have separate numbering
> + * independent from front panel port numbers.
> + */
Hi Jiri
Given the way you have rearranged this code, i think the text above
should now be:
However CPU ports and DSA ports should have separate numbering.
Andrew
Powered by blists - more mailing lists