Skip to content

Commit

Permalink
net/ice: fix TSO tunnel setting
Browse files Browse the repository at this point in the history
The Tx offload capabilities doesn't include tso tunnel which
will result in tso tunnel setting to not take effect.

The patch adds tunnel tso offload to ICE_TX_NO_VECTOR_FLAGS.

This commit will add tso tunnel capabilities in ice_dev_info_get().

Bugzilla ID: 1327
Fixes: d852fec ("net/ice: fix Tx offload path choice")
Fixes: 295968d ("ethdev: add namespace")
Cc: [email protected]

Signed-off-by: Kaiwen Deng <[email protected]>
Acked-by: Qi Zhang <[email protected]>
  • Loading branch information
kevin-intel authored and qzhan16 committed Dec 27, 2023
1 parent d3af910 commit 6a69230
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/net/ice/ice_ethdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -3891,7 +3891,11 @@ ice_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
RTE_ETH_TX_OFFLOAD_TCP_CKSUM |
RTE_ETH_TX_OFFLOAD_SCTP_CKSUM |
RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM |
RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM;
RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM |
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;
dev_info->flow_type_rss_offloads |= ICE_RSS_OFFLOAD_ALL;
}

Expand Down
4 changes: 4 additions & 0 deletions drivers/net/ice/ice_rxtx_vec_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,10 @@ ice_rxq_vec_setup_default(struct ice_rx_queue *rxq)
RTE_ETH_TX_OFFLOAD_MULTI_SEGS | \
RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM | \
RTE_ETH_TX_OFFLOAD_TCP_TSO | \
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_OUTER_UDP_CKSUM)

#define ICE_TX_VECTOR_OFFLOAD ( \
Expand Down

0 comments on commit 6a69230

Please sign in to comment.