Lines Matching full:split
12 # Test port split configuration using devlink-port lanes attribute.
15 # First, check that all the ports with 1 lane fail to split.
16 # Second, check that all the ports with more than 1 lane can be split
17 # to all valid configurations (e.g., split to 2, split to 4 etc.)
93 Get the $port split ability.
94 Return: split ability, true or false.
105 def split(k, port, should_fail=False): function
107 Split $port into $k ports.
108 If should_fail == True, the split should fail. Otherwise, should pass.
110 If the $port wasn't split, the array will be empty.
113 cmd = "devlink port split %s count %s" % (port.bus_info, k)
118 print("split an unsplittable port %s" % port.name)
123 print("didn't split a splittable port %s" % port.name)
183 Create the split group for $port.
184 Return: Array with $k elements, which are the split port group.
195 # split to max
196 new_split_group = split(k, port, should_fail=True)
207 new_split_group = split(k, port)
209 # Once the split command ends, it takes some time to the sub ifaces'
218 "split port %s into %s" % (port.name, k))
265 # If 1 lane, shouldn't be able to split
268 "%s should not be able to split" % port.name)
271 # Else, splitting should pass and all the split ports should exist.
275 "%s should be able to split" % port.name)