1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright 2017 Mellanox Technologies, Ltd
9 #define TAP_MAX_QUEUES 16
12 /* Fixed RSS hash key size in bytes. */
13 #define TAP_RSS_HASH_KEY_SIZE 40
16 #define TAP_RSS_HF_MASK (~(ETH_RSS_IP | ETH_RSS_UDP | ETH_RSS_TCP))
18 /* hashed fields for RSS */
20 HASH_FIELD_IPV4_L3, /* IPv4 src/dst addr */
21 HASH_FIELD_IPV4_L3_L4, /* IPv4 src/dst addr + L4 src/dst ports */
22 HASH_FIELD_IPV6_L3, /* IPv6 src/dst addr */
23 HASH_FIELD_IPV6_L3_L4, /* IPv6 src/dst addr + L4 src/dst ports */
24 HASH_FIELD_L2_SRC, /* Ethernet src addr */
25 HASH_FIELD_L2_DST, /* Ethernet dst addr */
26 HASH_FIELD_L3_SRC, /* L3 src addr */
27 HASH_FIELD_L3_DST, /* L3 dst addr */
28 HASH_FIELD_L4_SRC, /* TCP/UDP src ports */
29 HASH_FIELD_L4_DST, /* TCP/UDP dst ports */
36 __u32 queues[TAP_MAX_QUEUES];
40 #endif /* _TAP_RSS_H_ */