ixgbe驱动
rte_eth_dev_info_get -> ixgbe_dev_info_get -> ixgbe_get_tx_port_offloads
uint64_t ixgbe_get_tx_port_offloads(struct rte_eth_dev *dev)
{uint64_t tx_offload_capa;struct ixgbe_hw *hw = IXGBE_DEV_PRIVATE_TO_HW(dev->data->dev_private);tx_offload_capa =RTE_ETH_TX_OFFLOAD_VLAN_INSERT |RTE_ETH_TX_OFFLOAD_IPV4_CKSUM |RTE_ETH_TX_OFFLOAD_UDP_CKSUM |RTE_ETH_TX_OFFLOAD_TCP_CKSUM |RTE_ETH_TX_OFFLOAD_SCTP_CKSUM |RTE_ETH_TX_OFFLOAD_TCP_TSO |RTE_ETH_TX_OFFLOAD_MULTI_SEGS;if (hw->mac.type == ixgbe_mac_82599EB ||hw->mac.type == ixgbe_mac_X540)tx_offload_capa |= RTE_ETH_TX_OFFLOAD_MACSEC_INSERT;if (hw->mac.type == ixgbe_mac_X550 ||hw->mac.type == ixgbe_mac_X550EM_x ||hw->mac.type == ixgbe_mac_X550EM_a)tx_offload_capa |= RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM;#ifdef RTE_LIB_SECURITYif (dev->security_ctx)tx_offload_capa |= RTE_ETH_TX_OFFLOAD_SECURITY;
#endifreturn tx_offload_capa;
}