@@ -49,14 +49,21 @@ destination address) and TCP/UDP (source port, destination port) tuples
4949are swapped, the computed hash is the same. This is beneficial in some
5050applications that monitor TCP/IP flows (IDS, firewalls, ...etc) and need
5151both directions of the flow to land on the same Rx queue (and CPU). The
52- "Symmetric-XOR" is a type of RSS algorithms that achieves this hash
53- symmetry by XORing the input source and destination fields of the IP
54- and/or L4 protocols. This, however, results in reduced input entropy and
55- could potentially be exploited. Specifically, the algorithm XORs the input
52+ "Symmetric-XOR" and "Symmetric-OR-XOR" are types of RSS algorithms that
53+ achieve this hash symmetry by XOR/ORing the input source and destination
54+ fields of the IP and/or L4 protocols. This, however, results in reduced
55+ input entropy and could potentially be exploited.
56+
57+ Specifically, the "Symmetric-XOR" algorithm XORs the input
5658as follows::
5759
5860 # (SRC_IP ^ DST_IP, SRC_IP ^ DST_IP, SRC_PORT ^ DST_PORT, SRC_PORT ^ DST_PORT)
5961
62+ The "Symmetric-OR-XOR" algorithm, on the other hand, transforms the input as
63+ follows::
64+
65+ # (SRC_IP | DST_IP, SRC_IP ^ DST_IP, SRC_PORT | DST_PORT, SRC_PORT ^ DST_PORT)
66+
6067The result is then fed to the underlying RSS algorithm.
6168
6269Some advanced NICs allow steering packets to queues based on
0 commit comments