Lines Matching +full:4 +full:th
36 def _get_static_size(self, th): argument
39 return th * 8000 * self._cell_size()
49 th = random.randint(3, 16)
51 return th
53 return self._get_static_size(th)
71 if objid["pool"] in [4, 8, 9, 10]:
72 # The threshold type of pools 4, 8, 9 and 10 cannot be changed
82 th = self._get_th(pool)
84 return (pool_n, th)
89 th = self._get_th(pool)
90 return (th,)
109 if isinstance(objid, Pool) and objid["pool"] in [4, 8, 9, 10]:
110 # The threshold type of pools 4, 8, 9 and 10 cannot be changed
237 def dl_set(self, pool, th): argument
238 … run_cmd("devlink sb tc bind set {} sb {} tc {} type {} pool {} th {}".format(self["dlportname"],
242 pool, th))
268 (pool, th) = vp.get_value(tcbind)
271 tcbind.dl_set(pool, th)
278 if tcbind["threshold"] != th:
279 err_msg = "Incorrect threshold (got {}, expected {})".format(tcbind["threshold"], th)
311 def dl_set(self, th): argument
312 run_cmd("devlink sb port pool set {} sb {} pool {} th {}".format(self["dlportname"],
314 self["pool"], th))
339 (th,) = vp.get_value(portpool)
340 portpool.dl_set(th)
345 if portpool["threshold"] != th:
346 err_msg = "Incorrect threshold (got {}, expected {})".format(portpool["threshold"], th)