- IPv4/IPv6 TCP/UDP transmit checksum offload
+- Inner IPv4/IPv6 TCP/UDP transmit checksum offload
+
- Port hardware statistics
- Extended statistics (see Solarflare Server Adapter User's Guide for
DEV_TX_OFFLOAD_UDP_CKSUM |
DEV_TX_OFFLOAD_TCP_CKSUM;
+ if (encp->enc_tunnel_encapsulations_supported != 0)
+ dev_info->tx_offload_capa |= DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM;
+
dev_info->default_txconf.txq_flags = ETH_TXQ_FLAGS_NOXSUMSCTP;
if ((~sa->dp_tx->features & SFC_DP_TX_FEAT_VLAN_INSERT) ||
!encp->enc_hw_tx_insert_vlan_enabled)
int
sfc_tx_qstart(struct sfc_adapter *sa, unsigned int sw_index)
{
+ const efx_nic_cfg_t *encp = efx_nic_cfg_get(sa->nic);
struct rte_eth_dev_data *dev_data;
struct sfc_txq_info *txq_info;
struct sfc_txq *txq;
if ((txq->flags & ETH_TXQ_FLAGS_NOXSUMTCP) ||
(txq->flags & ETH_TXQ_FLAGS_NOXSUMUDP)) {
flags = EFX_TXQ_CKSUM_IPV4;
+
+ if (encp->enc_tunnel_encapsulations_supported != 0)
+ flags |= EFX_TXQ_CKSUM_INNER_IPV4;
} else {
flags = EFX_TXQ_CKSUM_IPV4 | EFX_TXQ_CKSUM_TCPUDP;
+ if (encp->enc_tunnel_encapsulations_supported != 0)
+ flags |= EFX_TXQ_CKSUM_INNER_IPV4 |
+ EFX_TXQ_CKSUM_INNER_TCPUDP;
+
if (sa->tso)
flags |= EFX_TXQ_FATSOV2;
}