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 53 54 55 56 57 58 59 60 61 62 63
|
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2020 Mellanox Technologies, Ltd
*/
#ifndef _RTE_REGEXDEV_DRIVER_H_
#define _RTE_REGEXDEV_DRIVER_H_
/**
* @file
*
* RTE RegEx Device PMD API
*
* APIs that are used by the RegEx drivers, to communicate with the
* RegEx lib.
*/
#include <rte_compat.h>
#include "rte_regexdev.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @internal
* Register a RegEx device slot for a RegEx device and return the
* pointer to that slot.
*
* @param name
* RegEx device name.
*
* @return
* A pointer to the RegEx device slot case of success,
* NULL otherwise.
*/
__rte_internal
struct rte_regexdev *rte_regexdev_register(const char *name);
/**
* @internal
* Unregister the specified regexdev port.
*
* @param dev
* Device to be released.
*/
__rte_internal
void rte_regexdev_unregister(struct rte_regexdev *dev);
/**
* @internal
* Return the RegEx device based on the device name.
*
* @param name
* The device name.
*/
__rte_internal
struct rte_regexdev *rte_regexdev_get_device_by_name(const char *name);
#ifdef __cplusplus
}
#endif
#endif /* _RTE_REGEXDEV_DRIVER_H_ */
|