src/dpdk/drivers/net/octeontx2/otx2_ptp.c
void
otx2_nix_ptp_enable_vf(struct rte_eth_dev *eth_dev)
{
	struct otx2_eth_dev *dev = otx2_eth_pmd_priv(eth_dev);

	if (otx2_nix_recalc_mtu(eth_dev))
		otx2_err("Failed to set MTU size for ptp");

	dev->scalar_ena = true;
	dev->rx_offload_flags |= NIX_RX_OFFLOAD_TSTAMP_F;

	/* Setting up the function pointers as per new offload flags */
	otx2_eth_set_rx_function(eth_dev);
	otx2_eth_set_tx_function(eth_dev);
}
/* Function to enable ptp config for VFs */
Function to enable ptp config for VFs
Function to enable ptp config for VFs
void
otx2_nix_ptp_enable_vf(struct rte_eth_dev *eth_dev)
{
	struct otx2_eth_dev *dev = otx2_eth_pmd_priv(eth_dev);
	if (otx2_nix_recalc_mtu(eth_dev))
		otx2_err("Failed to set MTU size for ptp");
	dev->scalar_ena = true;
	dev->rx_offload_flags |= NIX_RX_OFFLOAD_TSTAMP_F;
	otx2_eth_set_rx_function(eth_dev);
	otx2_eth_set_tx_function(eth_dev);
}
void otx2_nix_ptp_enable_vf ( struct rte_eth_dev * eth_dev ) { struct otx2_eth_dev * dev = otx2_eth_pmd_priv ( eth_dev ) ; if ( otx2_nix_recalc_mtu ( eth_dev ) ) otx2_err ( " " ) ; dev -> scalar_ena = true ; dev -> rx_offload_flags |= NIX_RX_OFFLOAD_TSTAMP_F ; otx2_eth_set_rx_function ( eth_dev ) ; otx2_eth_set_tx_function ( eth_dev ) ; }
Function to enable ptp config for VFs
Function to enable ptp config for VFs
/* Setting up the function pointers as per new offload flags */