aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorScott Feldman <[email protected]>2015-06-01 11:39:02 -0700
committerDavid S. Miller <[email protected]>2015-06-01 17:00:08 -0700
commit27b808cbc2ad72608fb2fd9abd81930d32464546 (patch)
tree2d5891cfb91eaaabbcf68e561dcad2dc22da24f6 /tools/perf/scripts/python
parent66e5133f19e901a044fa5eaeeb6ecff4545839e5 (diff)
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions