net/ixgbe: add application callback on VF to PF messsage
[dpdk.git] / drivers / net / ixgbe / rte_pmd_ixgbe.h
index 7928c97..2fdf530 100644 (file)
@@ -180,4 +180,24 @@ int rte_pmd_ixgbe_set_vf_split_drop_en(uint8_t port, uint16_t vf, uint8_t on);
  */
 int
 rte_pmd_ixgbe_set_vf_vlan_stripq(uint8_t port, uint16_t vf, uint8_t on);
+
+/**
+ * Response sent back to ixgbe driver from user app after callback
+ */
+enum rte_pmd_ixgbe_mb_event_rsp {
+       RTE_PMD_IXGBE_MB_EVENT_NOOP_ACK,  /**< skip mbox request and ACK */
+       RTE_PMD_IXGBE_MB_EVENT_NOOP_NACK, /**< skip mbox request and NACK */
+       RTE_PMD_IXGBE_MB_EVENT_PROCEED,  /**< proceed with mbox request  */
+       RTE_PMD_IXGBE_MB_EVENT_MAX       /**< max value of this enum */
+};
+
+/**
+ * Data sent to the user application when the callback is executed.
+ */
+struct rte_pmd_ixgbe_mb_event_param {
+       uint16_t vfid;     /**< Virtual Function number */
+       uint16_t msg_type; /**< VF to PF message type, defined in ixgbe_mbx.h */
+       uint16_t retval;   /**< return value */
+       void *msg;         /**< pointer to message */
+};
 #endif /* _PMD_IXGBE_H_ */