diff options
author | Scott Feldman <sfeldma@gmail.com> | 2015-06-01 11:39:02 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-01 17:00:08 -0700 |
commit | 27b808cbc2ad72608fb2fd9abd81930d32464546 (patch) | |
tree | 2d5891cfb91eaaabbcf68e561dcad2dc22da24f6 /net/switchdev/switchdev.c | |
parent | 66e5133f19e901a044fa5eaeeb6ecff4545839e5 (diff) | |
download | linux-27b808cbc2ad72608fb2fd9abd81930d32464546.tar.gz linux-27b808cbc2ad72608fb2fd9abd81930d32464546.tar.bz2 linux-27b808cbc2ad72608fb2fd9abd81930d32464546.zip |
rocker: zero allocate ports array
When allocating the array of rocker port pointers, zero the array values so
we can test for !NULL to see if port is allocated/registered. We'll need
this later when installing untagged VLAN support for each port, during port
probe. It's a long story, but to install a VLAN (vid=0 for untagged, in
this case) on a port, we'll need to scan other ports to see if the VLAN
group for that VLAN has been setup. To scan the other ports, we need to
walk the port array.
Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions