1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2020 Intel Corporation
*/
#ifndef _INCLUDE_OBJ_H_
#define _INCLUDE_OBJ_H_
#include <stdint.h>
/*
* ethdev
*/
#ifndef ETHDEV_RXQ_RSS_MAX
#define ETHDEV_RXQ_RSS_MAX 16
#endif
struct ethdev_params_rss {
uint32_t queue_id[ETHDEV_RXQ_RSS_MAX];
uint32_t n_queues;
};
struct ethdev_params {
struct {
uint32_t n_queues;
uint32_t queue_size;
const char *mempool_name;
struct ethdev_params_rss *rss;
} rx;
struct {
uint32_t n_queues;
uint32_t queue_size;
} tx;
int promiscuous;
};
int
ethdev_config(const char *name, struct ethdev_params *params);
/*
* cryptodev
*/
struct cryptodev_params {
uint32_t n_queue_pairs;
uint32_t queue_size;
};
int
cryptodev_config(const char *name, struct cryptodev_params *params);
#endif /* _INCLUDE_OBJ_H_ */
|