From patchwork Mon May 14 07:56:20 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: 39986 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 08B1F1BB43; Mon, 14 May 2018 09:56:43 +0200 (CEST) Received: from alln-iport-4.cisco.com (alln-iport-4.cisco.com [173.37.142.91]) by dpdk.org (Postfix) with ESMTP id 1FC221BB3D for ; Mon, 14 May 2018 09:56:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=761; q=dns/txt; s=iport; t=1526284601; x=1527494201; h=from:to:cc:subject:date:message-id; bh=f8IPJAky1dMCE3a2vG5pxF3GltdDUwJc5h6HYGhtTUQ=; b=CKyhFw0fl8ca2I5WuaAUuI4cDN71nD7/bFbec8Xro8kOG0oDz7TEvX2y NQLFMjyOwQ6zbwDXuy5qXGaZwIkSeYPbyGymp7WVA1SLNSfQd7f2kscib VUvwpGJBE8PmX6fFKU5mYeajP825Yxvx5fqqe0H6+rr/vNlazZN14LOss I=; X-IronPort-AV: E=Sophos;i="5.49,399,1520899200"; d="scan'208";a="114085600" Received: from rcdn-core-2.cisco.com ([173.37.93.153]) by alln-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 May 2018 07:56:40 +0000 Received: from cisco.com (savbu-usnic-a.cisco.com [10.193.184.48]) by rcdn-core-2.cisco.com (8.14.5/8.14.5) with ESMTP id w4E7uebC028167; Mon, 14 May 2018 07:56:40 GMT Received: by cisco.com (Postfix, from userid 508933) id E731C20F2001; Mon, 14 May 2018 00:56:39 -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 00:56:20 -0700 Message-Id: <20180514075620.10848-1-hyonkim@cisco.com> X-Mailer: git-send-email 2.16.2 Subject: [dpdk-dev] [PATCH] net/enic: fix CRC strip offload capability 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" The NIC always strips CRC, so advertise the CRC strip offload in rx_offload_capa. Fixes: 93fb21fdbe23 ("net/enic: enable overlay offload for VXLAN and GENEVE") Signed-off-by: Hyong Youb Kim --- drivers/net/enic/enic_res.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/enic/enic_res.c b/drivers/net/enic/enic_res.c index a504de5d5..fc60d8b77 100644 --- a/drivers/net/enic/enic_res.c +++ b/drivers/net/enic/enic_res.c @@ -188,6 +188,7 @@ int enic_get_vnic_config(struct enic *enic) DEV_TX_OFFLOAD_TCP_CKSUM | DEV_TX_OFFLOAD_TCP_TSO; enic->rx_offload_capa = + DEV_RX_OFFLOAD_CRC_STRIP | DEV_RX_OFFLOAD_VLAN_STRIP | DEV_RX_OFFLOAD_IPV4_CKSUM | DEV_RX_OFFLOAD_UDP_CKSUM |