X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fiavf%2Fiavf.h;h=f1c2daa06e4b168e444efdbaec5a5b3611206438;hb=149280731bf383e369262aa156b1a3d7e6fbbe6f;hp=c0a4a47b049f0b700d51531cd564deb9f1e36f80;hpb=b14e8a57b9fe8ccd65b46b023201f554c6bb4e96;p=dpdk.git diff --git a/drivers/net/iavf/iavf.h b/drivers/net/iavf/iavf.h index c0a4a47b04..f1c2daa06e 100644 --- a/drivers/net/iavf/iavf.h +++ b/drivers/net/iavf/iavf.h @@ -268,6 +268,9 @@ struct iavf_info { struct iavf_tm_conf tm_conf; struct rte_eth_dev *eth_dev; + + uint32_t ptp_caps; + rte_spinlock_t phc_time_aq_lock; }; #define IAVF_MAX_PKT_TYPE 1024 @@ -310,6 +313,7 @@ struct iavf_adapter { bool tx_vec_allowed; uint32_t ptype_tbl[IAVF_MAX_PKT_TYPE] __rte_cache_min_aligned; bool stopped; + bool closed; uint16_t fdir_ref_cnt; struct iavf_devargs devargs; }; @@ -476,4 +480,6 @@ int iavf_ipsec_crypto_request(struct iavf_adapter *adapter, uint8_t *msg, size_t msg_len, uint8_t *resp_msg, size_t resp_msg_len); extern const struct rte_tm_ops iavf_tm_ops; +int iavf_get_ptp_cap(struct iavf_adapter *adapter); +int iavf_get_phc_time(struct iavf_rx_queue *rxq); #endif /* _IAVF_ETHDEV_H_ */