From: Chen Jing D(Mark) Date: Mon, 27 Jul 2015 07:56:57 +0000 (+0800) Subject: fm10k: expose Tx checksum capability X-Git-Tag: spdx-start~8632 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4dfda7fb3cbab869a699b00e4681c5824acb1025;p=dpdk.git fm10k: expose Tx checksum capability fm10k has the capability to do checksum offload in TX side. This change will expose the capability to application in infos_get function. Signed-off-by: Chen Jing D(Mark) --- diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c index 5cb65c3b25..5159cc8cd1 100644 --- a/drivers/net/fm10k/fm10k_ethdev.c +++ b/drivers/net/fm10k/fm10k_ethdev.c @@ -932,7 +932,11 @@ fm10k_dev_infos_get(struct rte_eth_dev *dev, DEV_RX_OFFLOAD_UDP_CKSUM | DEV_RX_OFFLOAD_TCP_CKSUM; dev_info->tx_offload_capa = - DEV_TX_OFFLOAD_VLAN_INSERT; + DEV_TX_OFFLOAD_VLAN_INSERT | + DEV_TX_OFFLOAD_IPV4_CKSUM | + DEV_TX_OFFLOAD_UDP_CKSUM | + DEV_TX_OFFLOAD_TCP_CKSUM; + dev_info->hash_key_size = FM10K_RSSRK_SIZE * sizeof(uint32_t); dev_info->reta_size = FM10K_MAX_RSS_INDICES;