git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/pcap: support imissed stats
[dpdk.git]
/
drivers
/
net
/
tap
/
tap_rss.h
diff --git
a/drivers/net/tap/tap_rss.h
b/drivers/net/tap/tap_rss.h
index
3bb0d14
..
176e718
100644
(file)
--- a/
drivers/net/tap/tap_rss.h
+++ b/
drivers/net/tap/tap_rss.h
@@
-1,5
+1,5
@@
/* SPDX-License-Identifier: BSD-3-Clause
/* SPDX-License-Identifier: BSD-3-Clause
- * Copyright 2017 Mellanox Technologies, Ltd
.
+ * Copyright 2017 Mellanox Technologies, Ltd
*/
#ifndef _TAP_RSS_H_
*/
#ifndef _TAP_RSS_H_
@@
-9,6
+9,12
@@
#define TAP_MAX_QUEUES 16
#endif
#define TAP_MAX_QUEUES 16
#endif
+/* Fixed RSS hash key size in bytes. */
+#define TAP_RSS_HASH_KEY_SIZE 40
+
+/* Supported RSS */
+#define TAP_RSS_HF_MASK (~(ETH_RSS_IP | ETH_RSS_UDP | ETH_RSS_TCP))
+
/* hashed fields for RSS */
enum hash_field {
HASH_FIELD_IPV4_L3, /* IPv4 src/dst addr */
/* hashed fields for RSS */
enum hash_field {
HASH_FIELD_IPV4_L3, /* IPv4 src/dst addr */
@@
-29,6
+35,6
@@
struct rss_key {
__u32 key_size;
__u32 queues[TAP_MAX_QUEUES];
__u32 nb_queues;
__u32 key_size;
__u32 queues[TAP_MAX_QUEUES];
__u32 nb_queues;
-} __
attribute__((packed))
;
+} __
rte_packed
;
#endif /* _TAP_RSS_H_ */
#endif /* _TAP_RSS_H_ */