[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20160709.000028.885177477710080482.davem@davemloft.net>
Date: Sat, 09 Jul 2016 00:00:28 -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] net: dsa: initialize the routing table
From: Vivien Didelot <vivien.didelot@...oirfairelinux.com>
Date: Wed, 6 Jul 2016 20:03:54 -0400
> The routing table of every switch in a tree is currently initialized to
> all zeros. This is an issue since 0 is a valid port number.
>
> Add a DSA_RTABLE_NONE=-1 constant to initialize the signed values of the
> routing table pointing to other switches.
>
> This fixes the device mapping of the mv88e6xxx driver where the port
> pointing to the switch itself and to non-existent switches was wrongly
> configured to be 0. It is now set to the expected 0xf value.
>
> Signed-off-by: Vivien Didelot <vivien.didelot@...oirfairelinux.com>
Applied.
Powered by blists - more mailing lists