net/ice: gate send on timestamp offload to E830
PATCH 1/1 net/ice: gate send on timestamp offload to E830
The SEND_ON_TIMESTAMP TX offload capability was unconditionally advertised for all ice devices in non-safe mode. However, only E830 hardware supports TxPP (Tx Packet Pacing) via the TXTIME queue mechanism. E810 and other ice devices correctly reject the offload at queue setup time (ice_tx_queue_setup checks hw->phy_model), but advertising the capability misleads applications into thinking the feature is available.
Gate the SEND_ON_TIMESTAMP capability advertisement on hw->phy_model == ICE_PHY_E830 so that only devices which actually support TxPP report the capability.
--- drivers/net/intel/ice/ice_ethdev.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/net/intel/ice/ice_ethdev.c +4 -2
@@ -4568,8 +4568,10 @@ ice_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO |RTE_ETH_TX_OFFLOAD_GRE_TNL_TSO |RTE_ETH_TX_OFFLOAD_IPIP_TNL_TSO | -RTE_ETH_TX_OFFLOAD_GENEVE_TNL_TSO | -RTE_ETH_TX_OFFLOAD_SEND_ON_TIMESTAMP ; +RTE_ETH_TX_OFFLOAD_GENEVE_TNL_TSO ; +if (hw->phy_model ==ICE_PHY_E830 ) + dev_info->tx_offload_capa |= +RTE_ETH_TX_OFFLOAD_SEND_ON_TIMESTAMP ; dev_info->flow_type_rss_offloads |=ICE_RSS_OFFLOAD_ALL ; }
Signature · 1 line
2.34.1
Quoted 8 lines · Soumyadeep Hore
The
SEND_ON_TIMESTAMPTX offload capability was unconditionally advertised for all ice devices in non-safe mode. However, only E830 hardware supports TxPP (Tx Packet Pacing) via the TXTIME queue mechanism. E810 and other ice devices correctly reject the offload at queue setup time (ice_tx_queue_setupcheckshw->phy_model), but advertising the capability misleads applications into thinking the feature is available.
Quoted 6 lines
Gate the
SEND_ON_TIMESTAMPcapability advertisement onhw->phy_model==ICE_PHY_E830so that only devices which actually support TxPP report the capability.Signed-off-by Soumyadeep Hore <[email protected]>---
Applied to dpdk-next-net-intel.
Thanks,
/Bruce
Quoted 23 lines
drivers/net/intel/ice/ice_ethdev.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)drivers/net/intel/ice/ice_ethdev.c +4
-2@@ -4568,8 +4568,10 @@ ice_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO |RTE_ETH_TX_OFFLOAD_GRE_TNL_TSO |RTE_ETH_TX_OFFLOAD_IPIP_TNL_TSO | -RTE_ETH_TX_OFFLOAD_GENEVE_TNL_TSO | -RTE_ETH_TX_OFFLOAD_SEND_ON_TIMESTAMP ; +RTE_ETH_TX_OFFLOAD_GENEVE_TNL_TSO ; +if (hw->phy_model ==ICE_PHY_E830 ) + dev_info->tx_offload_capa |= +RTE_ETH_TX_OFFLOAD_SEND_ON_TIMESTAMP ; dev_info->flow_type_rss_offloads |=ICE_RSS_OFFLOAD_ALL ; }Signature · 1 line
2.34.1