On Tue, 15 Jun 2021 09:34:29 +0800 "Min Hu (Connor)" <[email protected]> wrote:
> +void
> +hns3_tx_push_init(struct rte_eth_dev *dev)
> +{
> + struct hns3_hw *hw = HNS3_DEV_PRIVATE_TO_HW(dev->data->dev_private);
> + volatile uint32_t *reg;
> + uint32_t val;
> +
> + if (!hns3_dev_tx_push_supported(hw))
> + return;
> +
> + reg = (volatile uint32_t *)hns3_tx_push_get_queue_tail_reg(dev, 0);
Better to use proper barrier function than using volatile.

