From patchwork Mon May 14 14:11:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hyong Youb Kim (hyonkim)" X-Patchwork-Id: 40007 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5834A1C882; Mon, 14 May 2018 16:11:34 +0200 (CEST) Received: from alln-iport-2.cisco.com (alln-iport-2.cisco.com [173.37.142.89]) by dpdk.org (Postfix) with ESMTP id 0790A1C87B for ; Mon, 14 May 2018 16:11:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1293; q=dns/txt; s=iport; t=1526307092; x=1527516692; h=from:to:cc:subject:date:message-id; bh=jnHYnndnMEraQg6w4y/FX71VkGBOqDOIheNh0OKzmdI=; b=X0OI/m+4XDeWpeSpgQhRnxkmEQYgaVWfHr/UVNNZSTGvoD0WmVLu0jtq tW5X033M+882xGtmzr9F0CPgfifVtkwO2VkYeAuz9Hfnrj+XzW/5gnZ6G y6yY4fDYlPqOcR4xd7QOFxfzH6B0uI5/ldnHZMxLJr4nNCzPDrsJ5BYog c=; X-IronPort-AV: E=Sophos;i="5.49,400,1520899200"; d="scan'208";a="114213193" Received: from rcdn-core-11.cisco.com ([173.37.93.147]) by alln-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 May 2018 14:11:31 +0000 Received: from cisco.com (savbu-usnic-a.cisco.com [10.193.184.48]) by rcdn-core-11.cisco.com (8.14.5/8.14.5) with ESMTP id w4EEBV4Z014148; Mon, 14 May 2018 14:11:31 GMT Received: by cisco.com (Postfix, from userid 508933) id 1802A20F2001; Mon, 14 May 2018 07:11:31 -0700 (PDT) From: Hyong Youb Kim To: dev@dpdk.org, ferruh.yigit@intel.com Cc: johndale@cisco.com, Hyong Youb Kim Date: Mon, 14 May 2018 07:11:26 -0700 Message-Id: <20180514141126.3732-1-hyonkim@cisco.com> X-Mailer: git-send-email 2.16.2 Subject: [dpdk-dev] [PATCH] net/enic: fix missing offload capabilities X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- 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 |