MCPcopy Create free account
hub / github.com/F-Stack/f-stack / MlxDriverInfo

Class MlxDriverInfo

dpdk/usertools/dpdk-rss-flows.py:170–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168
169
170class MlxDriverInfo(DriverInfo):
171 def rss_key(self) -> bytes:
172 return bytes(
173 (
174 # fmt: off
175 # rss_hash_default_key, see drivers/net/mlx5/mlx5_rxq.c
176 0x2c, 0xc6, 0x81, 0xd1, 0x5b, 0xdb, 0xf4, 0xf7,
177 0xfc, 0xa2, 0x83, 0x19, 0xdb, 0x1a, 0x3e, 0x94,
178 0x6b, 0x9e, 0x38, 0xd9, 0x2c, 0x9c, 0x03, 0xd1,
179 0xad, 0x99, 0x44, 0xa7, 0xd9, 0x56, 0x3d, 0x59,
180 0x06, 0x3c, 0x25, 0xf3, 0xfc, 0x1f, 0xdc, 0x2a,
181 # fmt: on
182 )
183 )
184
185 def reta_size(self, num_queues: int) -> int:
186 if num_queues & (num_queues - 1) == 0:
187 # If the requested number of RX queues is power of two,
188 # use a table of this size.
189 return num_queues
190 # otherwise, use the maximum table size
191 return 512
192
193
194DEFAULT_DRIVERS = {

Callers 1

dpdk-rss-flows.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected