DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/enic: fix missing offload capabilities
@ 2018-05-14 14:11 Hyong Youb Kim
  2018-05-14 14:35 ` Ferruh Yigit
  0 siblings, 1 reply; 2+ messages in thread
From: Hyong Youb Kim @ 2018-05-14 14:11 UTC (permalink / raw)
  To: dev, ferruh.yigit; +Cc: johndale, Hyong Youb Kim

Add the following missing flags to the advertised offloads.
- DEV_RX_OFFLOAD_CRC_STRIP
  CRC is always stripped.
- DEV_RX_OFFLOAD_JUMBO_FRAME
  Jumbo support is always enabled on the NIC.
- DEV_RX_OFFLOAD_SCATTER
  Scatter Rx is currently supported.
- DEV_TX_OFFLOAD_MULTI_SEGS
  Multiple-segment transmit has always been supported.

Fixes: 93fb21fdbe23 ("net/enic: enable overlay offload for VXLAN and GENEVE")

Signed-off-by: Hyong Youb Kim <hyonkim@cisco.com>
---
 drivers/net/enic/enic_res.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/enic/enic_res.c b/drivers/net/enic/enic_res.c
index a504de5d5..6b404c3c0 100644
--- a/drivers/net/enic/enic_res.c
+++ b/drivers/net/enic/enic_res.c
@@ -182,12 +182,16 @@ int enic_get_vnic_config(struct enic *enic)
 	 * flags if it enables overlay offloads.
 	 */
 	enic->tx_offload_capa =
+		DEV_TX_OFFLOAD_MULTI_SEGS |
 		DEV_TX_OFFLOAD_VLAN_INSERT |
 		DEV_TX_OFFLOAD_IPV4_CKSUM |
 		DEV_TX_OFFLOAD_UDP_CKSUM |
 		DEV_TX_OFFLOAD_TCP_CKSUM |
 		DEV_TX_OFFLOAD_TCP_TSO;
 	enic->rx_offload_capa =
+		DEV_RX_OFFLOAD_SCATTER |
+		DEV_RX_OFFLOAD_JUMBO_FRAME |
+		DEV_RX_OFFLOAD_CRC_STRIP |
 		DEV_RX_OFFLOAD_VLAN_STRIP |
 		DEV_RX_OFFLOAD_IPV4_CKSUM |
 		DEV_RX_OFFLOAD_UDP_CKSUM |
-- 
2.16.2

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

* Re: [dpdk-dev] [PATCH] net/enic: fix missing offload capabilities
  2018-05-14 14:11 [dpdk-dev] [PATCH] net/enic: fix missing offload capabilities Hyong Youb Kim
@ 2018-05-14 14:35 ` Ferruh Yigit
  0 siblings, 0 replies; 2+ messages in thread
From: Ferruh Yigit @ 2018-05-14 14:35 UTC (permalink / raw)
  To: Hyong Youb Kim, dev; +Cc: johndale

On 5/14/2018 3:11 PM, Hyong Youb Kim wrote:
> Add the following missing flags to the advertised offloads.
> - DEV_RX_OFFLOAD_CRC_STRIP
>   CRC is always stripped.
> - DEV_RX_OFFLOAD_JUMBO_FRAME
>   Jumbo support is always enabled on the NIC.
> - DEV_RX_OFFLOAD_SCATTER
>   Scatter Rx is currently supported.
> - DEV_TX_OFFLOAD_MULTI_SEGS
>   Multiple-segment transmit has always been supported.
> 
> Fixes: 93fb21fdbe23 ("net/enic: enable overlay offload for VXLAN and GENEVE")
> 
> Signed-off-by: Hyong Youb Kim <hyonkim@cisco.com>

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

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

end of thread, other threads:[~2018-05-14 14:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-14 14:11 [dpdk-dev] [PATCH] net/enic: fix missing offload capabilities Hyong Youb Kim
2018-05-14 14:35 ` 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).