]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/octeontx2/otx2_ptp.c
examples/ip_frag: fix use of ethdev internal device array
[dpdk.git] / drivers / net / octeontx2 / otx2_ptp.c
index 5291da2410cd1873330eae02fb6a614595a6fc8e..0186c629a2ef889bc1bae19a22db60155791ec6e 100644 (file)
@@ -118,6 +118,10 @@ otx2_nix_timesync_enable(struct rte_eth_dev *eth_dev)
                        struct otx2_eth_txq *txq = eth_dev->data->tx_queues[i];
                        otx2_nix_form_default_desc(txq);
                }
+
+               /* Setting up the function pointers as per new offload flags */
+               otx2_eth_set_rx_function(eth_dev);
+               otx2_eth_set_tx_function(eth_dev);
        }
        return rc;
 }
@@ -147,6 +151,10 @@ otx2_nix_timesync_disable(struct rte_eth_dev *eth_dev)
                        struct otx2_eth_txq *txq = eth_dev->data->tx_queues[i];
                        otx2_nix_form_default_desc(txq);
                }
+
+               /* Setting up the function pointers as per new offload flags */
+               otx2_eth_set_rx_function(eth_dev);
+               otx2_eth_set_tx_function(eth_dev);
        }
        return rc;
 }