[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170607.150034.106912047540062374.davem@davemloft.net>
Date: Wed, 07 Jun 2017 15:00:34 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: vivien.didelot@...oirfairelinux.com
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel@...oirfairelinux.com, f.fainelli@...il.com, andrew@...n.ch
Subject: Re: [PATCH net-next 3/5] net: dsa: add CPU and DSA ports as VLAN
members
From: Vivien Didelot <vivien.didelot@...oirfairelinux.com>
Date: Tue, 6 Jun 2017 16:56:29 -0400
> @@ -166,6 +166,9 @@ static int dsa_switch_vlan_add(struct dsa_switch *ds,
> bitmap_zero(members, ds->num_ports);
> if (ds->index == info->sw_index)
> set_bit(info->port, members);
> + for (port = 0; port < ds->num_ports; ++port)
> + if (dsa_is_cpu_port(ds, port) || dsa_is_dsa_port(ds, port))
> + set_bit(port, members);
Please use the more canonical "x++" post-increment in the for() statement.
Thank you.
Powered by blists - more mailing lists