X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fhns3%2Fhns3_rxtx_vec.c;h=455110361aac041d338a841a1155acdeab97c9ad;hb=8b433d04adc9c62040d229d3eebfa2bdc2ced620;hp=cc8b9706a855daff927612ca92f0c77115136062;hpb=2d408d0609c4b06dbade72e4e6af6c978e96b0de;p=dpdk.git diff --git a/drivers/net/hns3/hns3_rxtx_vec.c b/drivers/net/hns3/hns3_rxtx_vec.c index cc8b9706a8..455110361a 100644 --- a/drivers/net/hns3/hns3_rxtx_vec.c +++ b/drivers/net/hns3/hns3_rxtx_vec.c @@ -19,11 +19,11 @@ hns3_tx_check_vec_support(struct rte_eth_dev *dev) struct rte_eth_txmode *txmode = &dev->data->dev_conf.txmode; struct hns3_hw *hw = HNS3_DEV_PRIVATE_TO_HW(dev->data->dev_private); - if (hns3_dev_ptp_supported(hw)) + if (hns3_dev_get_support(hw, PTP)) return -ENOTSUP; - /* Only support DEV_TX_OFFLOAD_MBUF_FAST_FREE */ - if (txmode->offloads != DEV_TX_OFFLOAD_MBUF_FAST_FREE) + /* Only support RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE */ + if (txmode->offloads != RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE) return -ENOTSUP; return 0; @@ -172,8 +172,6 @@ hns3_rxq_vec_setup_rearm_data(struct hns3_rx_queue *rxq) offsetof(struct rte_mbuf, rearm_data)); RTE_BUILD_BUG_ON(offsetof(struct rte_mbuf, refcnt) < offsetof(struct rte_mbuf, rearm_data)); - RTE_BUILD_BUG_ON(offsetof(struct rte_mbuf, refcnt) < - offsetof(struct rte_mbuf, rearm_data)); RTE_BUILD_BUG_ON(offsetof(struct rte_mbuf, nb_segs) < offsetof(struct rte_mbuf, rearm_data)); RTE_BUILD_BUG_ON(offsetof(struct rte_mbuf, port) < @@ -182,8 +180,6 @@ hns3_rxq_vec_setup_rearm_data(struct hns3_rx_queue *rxq) offsetof(struct rte_mbuf, rearm_data) > 6); RTE_BUILD_BUG_ON(offsetof(struct rte_mbuf, refcnt) - offsetof(struct rte_mbuf, rearm_data) > 6); - RTE_BUILD_BUG_ON(offsetof(struct rte_mbuf, refcnt) - - offsetof(struct rte_mbuf, rearm_data) > 6); RTE_BUILD_BUG_ON(offsetof(struct rte_mbuf, nb_segs) - offsetof(struct rte_mbuf, rearm_data) > 6); RTE_BUILD_BUG_ON(offsetof(struct rte_mbuf, port) - @@ -232,13 +228,13 @@ hns3_rxq_vec_check(struct hns3_rx_queue *rxq, void *arg) int hns3_rx_check_vec_support(struct rte_eth_dev *dev) { - struct rte_fdir_conf *fconf = &dev->data->dev_conf.fdir_conf; + struct rte_eth_fdir_conf *fconf = &dev->data->dev_conf.fdir_conf; struct rte_eth_rxmode *rxmode = &dev->data->dev_conf.rxmode; - uint64_t offloads_mask = DEV_RX_OFFLOAD_TCP_LRO | - DEV_RX_OFFLOAD_VLAN; + uint64_t offloads_mask = RTE_ETH_RX_OFFLOAD_TCP_LRO | + RTE_ETH_RX_OFFLOAD_VLAN; struct hns3_hw *hw = HNS3_DEV_PRIVATE_TO_HW(dev->data->dev_private); - if (hns3_dev_ptp_supported(hw)) + if (hns3_dev_get_support(hw, PTP)) return -ENOTSUP; if (dev->data->scattered_rx)