1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2015-2020 Beijing WangXun Technology Co., Ltd.
3 * Copyright(c) 2010-2017 Intel Corporation
7 * @file rte_pmd_txgbe.h
8 * txgbe PMD specific functions.
15 #include <rte_compat.h>
16 #include <rte_ethdev.h>
17 #include <rte_ether.h>
20 * Response sent back to txgbe driver from user app after callback
22 enum rte_pmd_txgbe_mb_event_rsp {
23 RTE_PMD_TXGBE_MB_EVENT_NOOP_ACK, /**< skip mbox request and ACK */
24 RTE_PMD_TXGBE_MB_EVENT_NOOP_NACK, /**< skip mbox request and NACK */
25 RTE_PMD_TXGBE_MB_EVENT_PROCEED, /**< proceed with mbox request */
26 RTE_PMD_TXGBE_MB_EVENT_MAX /**< max value of this enum */
30 * Data sent to the user application when the callback is executed.
32 struct rte_pmd_txgbe_mb_event_param {
33 uint16_t vfid; /**< Virtual Function number */
34 uint16_t msg_type; /**< VF to PF message type, defined in txgbe_mbx.h */
35 uint16_t retval; /**< return value */
36 void *msg; /**< pointer to message */
38 #endif /* _PMD_TXGBE_H_ */