numam-dpdk/drivers/net/txgbe/rte_pmd_txgbe.h
Jiawen Wu fa7c130df4 net/txgbe: add process mailbox operation
Add check operation for vf function level reset,
mailbox messages and ack from vf.
Waiting to process the messages.

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2020-11-03 23:24:27 +01:00

38 lines
1004 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2015-2020
*/
/**
* @file rte_pmd_txgbe.h
* txgbe PMD specific functions.
*
**/
#ifndef _PMD_TXGBE_H_
#define _PMD_TXGBE_H_
#include <rte_compat.h>
#include <rte_ethdev.h>
#include <rte_ether.h>
/**
* Response sent back to txgbe driver from user app after callback
*/
enum rte_pmd_txgbe_mb_event_rsp {
RTE_PMD_TXGBE_MB_EVENT_NOOP_ACK, /**< skip mbox request and ACK */
RTE_PMD_TXGBE_MB_EVENT_NOOP_NACK, /**< skip mbox request and NACK */
RTE_PMD_TXGBE_MB_EVENT_PROCEED, /**< proceed with mbox request */
RTE_PMD_TXGBE_MB_EVENT_MAX /**< max value of this enum */
};
/**
* Data sent to the user application when the callback is executed.
*/
struct rte_pmd_txgbe_mb_event_param {
uint16_t vfid; /**< Virtual Function number */
uint16_t msg_type; /**< VF to PF message type, defined in txgbe_mbx.h */
uint16_t retval; /**< return value */
void *msg; /**< pointer to message */
};
#endif /* _PMD_TXGBE_H_ */