History

ethtool: Symmetric OR-XOR RSS hash

Add an additional type of symmetric RSS hash type: OR-XOR. The "Symmetric-OR-XOR" algorithm transforms the input as follows: (SRC_IP | DST_IP, SRC_IP ^ DST_IP, SRC_PORT | DST_PORT, SRC_PORT ^ DST_PORT) Change 'cap_rss_sym_xor_supported' to 'supported_input_xfrm', a bitmap of supported RXH_XFRM_* types.

Gal Pressman committed 1 year ago

Commit ecdff891 parent ad530287 files · +24 −14Browse files

Showing the changes to include/uapi (1 of 7 files). Show all

Unified · Split

include/uapi/linux/ethtool.h+4−0
@@ -2289,6 +2289,10 @@ static inline int ethtool_validate_duplex(__u8 duplex) · 2288 unmodified lines
22892289 * be exploited to reduce the RSS queue spread.
22902290 */
22912291 #define RXH_XFRM_SYM_XOR (1 << 0)
2292+/* Similar to SYM_XOR, except that one copy of the XOR'ed fields is replaced by
2293+ * an OR of the same fields
2294+ */
2295+#define RXH_XFRM_SYM_OR_XOR (1 << 1)
22922296 #define RXH_XFRM_NO_CHANGE 0xff
22932297
22942298 /* L2-L4 network traffic flow types */