From patchwork Tue Jul 19 22:43:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "John Daley (johndale)" X-Patchwork-Id: 14912 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 4BEFB3238; Wed, 20 Jul 2016 00:43:50 +0200 (CEST) Received: from alln-iport-1.cisco.com (alln-iport-1.cisco.com [173.37.142.88]) by dpdk.org (Postfix) with ESMTP id 8356E2C01 for ; Wed, 20 Jul 2016 00:43:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=892; q=dns/txt; s=iport; t=1468968228; x=1470177828; h=from:to:cc:subject:date:message-id; bh=hsM9jwzVDmTeIOzejlEPyNRruQJNs1vHVPd6vYaU8IE=; b=iYX41aUtHrkIO8JfQXn78XJ4IMfRsWshJr8Pf0AW34kg2bd/K6zrbTPh 8Y1DNYcgKCOkN4BQEpJaUiXsTye3uM4+g6LIvo9cRCP9kOzRkl3PSKVfX 91qJclxylpfrahR8WW1AzGNhqEyTI+clRQjpy0AvW820SYIPPZ4yfgQAX c=; X-IronPort-AV: E=Sophos;i="5.28,391,1464652800"; d="scan'208";a="299898879" Received: from alln-core-3.cisco.com ([173.36.13.136]) by alln-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 19 Jul 2016 22:43:47 +0000 Received: from cisco.com (savbu-usnic-a.cisco.com [10.193.184.48]) by alln-core-3.cisco.com (8.14.5/8.14.5) with ESMTP id u6JMhl9I029864; Tue, 19 Jul 2016 22:43:47 GMT Received: by cisco.com (Postfix, from userid 392789) id 939BA3FAAE12; Tue, 19 Jul 2016 15:43:47 -0700 (PDT) From: John Daley To: dev@dpdk.org Cc: bruce.richardson@intel.com, John Daley Date: Tue, 19 Jul 2016 15:43:45 -0700 Message-Id: <1468968225-32717-1-git-send-email-johndale@cisco.com> X-Mailer: git-send-email 2.7.0 Subject: [dpdk-dev] [PATCH] net/enic: heed VLAN strip flag in device configure function X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The configure function enicpmd_dev_configure() was not paying attention to the rxmode VLAN strip bit. Set the VLAN strip mode according to the bit. Fixes: fefed3d1e62c ("enic: new driver") Signed-off-by: John Daley Reviewed-by: David Harton Tested-by: David Harton --- Although not critical, it is low risk and would be nice to have in 16_07. drivers/net/enic/enic_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/enic/enic_ethdev.c b/drivers/net/enic/enic_ethdev.c index 59082d2..47b07c9 100644 --- a/drivers/net/enic/enic_ethdev.c +++ b/drivers/net/enic/enic_ethdev.c @@ -356,6 +356,7 @@ static int enicpmd_dev_configure(struct rte_eth_dev *eth_dev) eth_dev->data->dev_conf.rxmode.split_hdr_size); } + enicpmd_vlan_offload_set(eth_dev, ETH_VLAN_STRIP_MASK); enic->hw_ip_checksum = eth_dev->data->dev_conf.rxmode.hw_ip_checksum; return 0; }