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
2289 * be exploited to reduce the RSS queue spread.2289 * be exploited to reduce the RSS queue spread.
2290 */2290 */
2291#define RXH_XFRM_SYM_XOR (1 << 0)2291#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)
2292#define RXH_XFRM_NO_CHANGE 0xff2296#define RXH_XFRM_NO_CHANGE 0xff
2293 2297
2294/* L2-L4 network traffic flow types */2298/* L2-L4 network traffic flow types */