summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Atkins <paul.atkins@intl.att.com>2019-11-13 12:08:00 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2019-11-20 17:36:06 +0100
commit60b05125c42248fb86af4876828599431a5629f3 (patch)
tree01cd8f36335c0e3e1e840ec62e0b34a7832d9640
parent85c4bcbcc57326cc63ad52082fa090cdfc7855a0 (diff)
downloaddpdk-next-net-intel-60b05125c42248fb86af4876828599431a5629f3.zip
dpdk-next-net-intel-60b05125c42248fb86af4876828599431a5629f3.tar.gz
dpdk-next-net-intel-60b05125c42248fb86af4876828599431a5629f3.tar.xz
net/af_packet: advertise Tx offload capabilities
The af_packet pmd already supports MULTI_SEG tx packets, and tx VLAN_INSERT so advertise these capabilities. Signed-off-by: Paul Atkins <paul.atkins@intl.att.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
-rw-r--r--drivers/net/af_packet/rte_eth_af_packet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/af_packet/rte_eth_af_packet.c b/drivers/net/af_packet/rte_eth_af_packet.c
index 5b71db7..f5806bf 100644
--- a/drivers/net/af_packet/rte_eth_af_packet.c
+++ b/drivers/net/af_packet/rte_eth_af_packet.c
@@ -316,6 +316,8 @@ eth_dev_info(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
dev_info->max_rx_queues = (uint16_t)internals->nb_queues;
dev_info->max_tx_queues = (uint16_t)internals->nb_queues;
dev_info->min_rx_bufsize = 0;
+ dev_info->tx_offload_capa = DEV_TX_OFFLOAD_MULTI_SEGS |
+ DEV_TX_OFFLOAD_VLAN_INSERT;
return 0;
}