DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] af_packet: advertise offload capabilities that code already supports
@ 2019-11-13 12:08 Paul Atkins
  2019-11-18 17:33 ` Ferruh Yigit
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Atkins @ 2019-11-13 12:08 UTC (permalink / raw)
  To: dev

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>
---
 drivers/net/af_packet/rte_eth_af_packet.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/af_packet/rte_eth_af_packet.c b/drivers/net/af_packet/rte_eth_af_packet.c
index 5b71db707..f5806bf42 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;
 }
-- 
2.11.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] [PATCH] af_packet: advertise offload capabilities that code already supports
  2019-11-13 12:08 [dpdk-dev] [PATCH] af_packet: advertise offload capabilities that code already supports Paul Atkins
@ 2019-11-18 17:33 ` Ferruh Yigit
  0 siblings, 0 replies; 2+ messages in thread
From: Ferruh Yigit @ 2019-11-18 17:33 UTC (permalink / raw)
  To: Paul Atkins, dev

On 11/13/2019 12:08 PM, Paul Atkins wrote:
> 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>

Applied to dpdk-next-net/master, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-11-18 17:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-13 12:08 [dpdk-dev] [PATCH] af_packet: advertise offload capabilities that code already supports Paul Atkins
2019-11-18 17:33 ` Ferruh Yigit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).