f-stack/dpdk/drivers/net/mlx5/mlx5_rxtx.h

47 lines
1.1 KiB
C
Raw Normal View History

2019-06-25 11:12:58 +00:00
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2015 6WIND S.A.
* Copyright 2015 Mellanox Technologies, Ltd
2017-04-21 10:43:26 +00:00
*/
#ifndef RTE_PMD_MLX5_RXTX_H_
#define RTE_PMD_MLX5_RXTX_H_
#include <stddef.h>
#include <stdint.h>
#include <sys/queue.h>
2017-04-21 10:43:26 +00:00
#include <rte_mbuf.h>
#include <rte_mempool.h>
#include <rte_common.h>
#include <rte_hexdump.h>
2019-06-25 11:12:58 +00:00
#include <rte_spinlock.h>
#include <rte_io.h>
2021-02-05 08:48:47 +00:00
#include <rte_cycles.h>
2017-04-21 10:43:26 +00:00
2021-02-05 08:48:47 +00:00
#include <mlx5_common.h>
#include <mlx5_common_mr.h>
2017-04-21 10:43:26 +00:00
#include "mlx5_utils.h"
#include "mlx5.h"
#include "mlx5_autoconf.h"
2019-06-26 10:17:41 +00:00
struct mlx5_priv;
2017-04-21 10:43:26 +00:00
/* mlx5_rxtx.c */
extern uint32_t mlx5_ptype_table[];
2019-06-25 11:12:58 +00:00
extern uint8_t mlx5_cksum_table[];
extern uint8_t mlx5_swp_types_table[];
void mlx5_set_ptype_table(void);
2019-06-25 11:12:58 +00:00
void mlx5_set_cksum_table(void);
void mlx5_set_swp_types_table(void);
2020-06-18 16:55:50 +00:00
void mlx5_dump_debug_information(const char *path, const char *title,
const void *buf, unsigned int len);
int mlx5_queue_state_modify_primary(struct rte_eth_dev *dev,
const struct mlx5_mp_arg_queue_state_modify *sm);
2022-09-06 04:00:10 +00:00
int mlx5_queue_state_modify(struct rte_eth_dev *dev,
struct mlx5_mp_arg_queue_state_modify *sm);
2021-02-05 08:48:47 +00:00
2017-04-21 10:43:26 +00:00
#endif /* RTE_PMD_MLX5_RXTX_H_ */