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.)
95 Get the $port split ability.
96 Return: split ability, true or false.
107 def split(k, port, should_fail=False): function
109 Split $port into $k ports.
110 If should_fail == True, the split should fail. Otherwise, should pass.
112 If the $port wasn't split, the array will be empty.
115 cmd = "devlink port split %s count %s" % (port.bus_info, k)
120 print("split an unsplittable port %s" % port.name)
125 print("didn't split a splittable port %s" % port.name)
185 Create the split group for $port.
186 Return: Array with $k elements, which are the split port group.
197 # split to max
198 new_split_group = split(k, port, should_fail=True)
209 new_split_group = split(k, port)
211 # Once the split command ends, it takes some time to the sub ifaces'
220 "split port %s into %s" % (port.name, k))
286 # If 1 lane, shouldn't be able to split
289 "%s should not be able to split" % port.name)
292 # Else, splitting should pass and all the split ports should exist.
296 "%s should be able to split" % port.name)