4 * Developed by Daynix Computing LTD (http://www.daynix.com)
7 * Andrew Melnychenko <andrew@daynix.com>
8 * Yuri Benditovich <yuri.benditovich@daynix.com>
10 * This work is licensed under the terms of the GNU GPL, version 2. See
11 * the COPYING file in the top-level directory.
14 #ifndef QEMU_EBPF_RSS_H
15 #define QEMU_EBPF_RSS_H
17 struct EBPFRSSContext
{
20 int map_configuration
;
22 int map_indirections_table
;
25 struct EBPFRSSConfig
{
27 uint8_t populate_hash
;
29 uint16_t indirections_len
;
30 uint16_t default_queue
;
31 } __attribute__((packed
));
33 void ebpf_rss_init(struct EBPFRSSContext
*ctx
);
35 bool ebpf_rss_is_loaded(struct EBPFRSSContext
*ctx
);
37 bool ebpf_rss_load(struct EBPFRSSContext
*ctx
);
39 bool ebpf_rss_set_all(struct EBPFRSSContext
*ctx
, struct EBPFRSSConfig
*config
,
40 uint16_t *indirections_table
, uint8_t *toeplitz_key
);
42 void ebpf_rss_unload(struct EBPFRSSContext
*ctx
);
44 #endif /* QEMU_EBPF_RSS_H */