(self, packet: Packet)
| 105 | return hash_value.value |
| 106 | |
| 107 | def get_queue_index(self, packet: Packet) -> int: |
| 108 | bytes_to_hash = packet.hash_data(self.use_l4_port) |
| 109 | |
| 110 | # get the 32bit hash of the packet |
| 111 | hash_value = self.toeplitz_hash(bytes_to_hash) |
| 112 | |
| 113 | # determine the offset in the redirection table |
| 114 | offset = hash_value & (len(self.reta) - 1) |
| 115 | |
| 116 | return self.reta[offset] |
| 117 | |
| 118 | |
| 119 | def balanced_traffic( |
no test coverage detected