net/txgbe: add L2 tunnel filter init and uninit
[dpdk.git] / drivers / net / txgbe / rte_pmd_txgbe.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2015-2020
3  */
4
5 /**
6  * @file rte_pmd_txgbe.h
7  * txgbe PMD specific functions.
8  *
9  **/
10
11 #ifndef _PMD_TXGBE_H_
12 #define _PMD_TXGBE_H_
13
14 #include <rte_compat.h>
15 #include <rte_ethdev.h>
16 #include <rte_ether.h>
17
18 /**
19  * Response sent back to txgbe driver from user app after callback
20  */
21 enum rte_pmd_txgbe_mb_event_rsp {
22         RTE_PMD_TXGBE_MB_EVENT_NOOP_ACK,  /**< skip mbox request and ACK */
23         RTE_PMD_TXGBE_MB_EVENT_NOOP_NACK, /**< skip mbox request and NACK */
24         RTE_PMD_TXGBE_MB_EVENT_PROCEED,  /**< proceed with mbox request  */
25         RTE_PMD_TXGBE_MB_EVENT_MAX       /**< max value of this enum */
26 };
27
28 /**
29  * Data sent to the user application when the callback is executed.
30  */
31 struct rte_pmd_txgbe_mb_event_param {
32         uint16_t vfid;     /**< Virtual Function number */
33         uint16_t msg_type; /**< VF to PF message type, defined in txgbe_mbx.h */
34         uint16_t retval;   /**< return value */
35         void *msg;         /**< pointer to message */
36 };
37 #endif /* _PMD_TXGBE_H_ */