summaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorVivien Didelot2016-07-07 02:03:54 +0200
committerDavid S. Miller2016-07-09 05:59:49 +0200
commitd390238c4fba7c87a3bcd859ce3373c864eb7b02 (patch)
treebd365573098b83c1addb653306cb0a49db7dab00 /kernel/trace
parenttun: Don't assume type tun in tun_device_event (diff)
downloadkernel-qcow2-linux-d390238c4fba7c87a3bcd859ce3373c864eb7b02.tar.gz
kernel-qcow2-linux-d390238c4fba7c87a3bcd859ce3373c864eb7b02.tar.xz
kernel-qcow2-linux-d390238c4fba7c87a3bcd859ce3373c864eb7b02.zip
net: dsa: initialize the routing table
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@savoirfairelinux.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/trace')
0 files changed, 0 insertions, 0 deletions