net/cnxk: add SoC specific PTP timestamp read
[dpdk.git] / drivers / net / cnxk / cn9k_tx.c
index e5691a2..f99e5d3 100644 (file)
@@ -36,6 +36,10 @@ pick_tx_func(struct rte_eth_dev *eth_dev,
                [!!(dev->tx_offload_flags & NIX_TX_OFFLOAD_VLAN_QINQ_F)]
                [!!(dev->tx_offload_flags & NIX_TX_OFFLOAD_OL3_OL4_CSUM_F)]
                [!!(dev->tx_offload_flags & NIX_TX_OFFLOAD_L3_L4_CSUM_F)];
+
+       if (eth_dev->data->dev_started)
+               rte_eth_fp_ops[eth_dev->data->port_id].tx_pkt_burst =
+                       eth_dev->tx_pkt_burst;
 }
 
 void
@@ -77,11 +81,11 @@ cn9k_eth_set_tx_function(struct rte_eth_dev *eth_dev)
 
        if (dev->scalar_ena) {
                pick_tx_func(eth_dev, nix_eth_tx_burst);
-               if (dev->tx_offloads & DEV_TX_OFFLOAD_MULTI_SEGS)
+               if (dev->tx_offloads & RTE_ETH_TX_OFFLOAD_MULTI_SEGS)
                        pick_tx_func(eth_dev, nix_eth_tx_burst_mseg);
        } else {
                pick_tx_func(eth_dev, nix_eth_tx_vec_burst);
-               if (dev->tx_offloads & DEV_TX_OFFLOAD_MULTI_SEGS)
+               if (dev->tx_offloads & RTE_ETH_TX_OFFLOAD_MULTI_SEGS)
                        pick_tx_func(eth_dev, nix_eth_tx_vec_burst_mseg);
        }