From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00041.outbound.protection.outlook.com [40.107.0.41]) by dpdk.org (Postfix) with ESMTP id 7C40B1B452; Fri, 12 Oct 2018 12:05:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9QgRpA2SAJ+0jmc2ZigcXa4UUp243AuUa6L+ZRZ8YTo=; b=c1tFnPFIx1OA60gO7dz3Bjz0Nvsnl3RtAyybsopVlCOE2F4wxK5uH+dRd94EmDRm701WYRxCZ1qPsHfDPOStScbxCkSHjF8hYERnZ24ZHq/eIQHNAKOJcG0PvZ2Hb8/f94hU4SeTYShkSI0JRnw5IP6QtmrKDFtuuABDeBkaPlM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from Tophie.ap.freescale.net (14.142.187.166) by AM0PR04MB4676.eurprd04.prod.outlook.com (2603:10a6:208:75::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.25; Fri, 12 Oct 2018 10:05:42 +0000 From: Shreyansh Jain To: thomas@monjalon.net Cc: ferruh.yigit@intel.com, dev@dpdk.org, Hemant Agrawal , stable@dpdk.org Date: Fri, 12 Oct 2018 15:34:13 +0530 Message-Id: <20181012100426.29349-3-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181012100426.29349-1-shreyansh.jain@nxp.com> References: <20180926180440.31726-1-shreyansh.jain@nxp.com> <20181012100426.29349-1-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BMXPR01CA0004.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:d::14) To AM0PR04MB4676.eurprd04.prod.outlook.com (2603:10a6:208:75::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 92a38e82-1739-4a2b-91f5-08d6302a45a7 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR04MB4676; X-Microsoft-Exchange-Diagnostics: 1; AM0PR04MB4676; 3:mZ9NChIYv8TAKEYge6MGxpfUe52/KMiONo9ZAKeU2s2VeIsI17Mxh57DL9RXkIFHgQu60G4P7QGifMUbVJk4BOQ3ZA6+8ZkRYq/Q/rpx/diM7l0QkKkuoSEG3wx+Ubof9u1lqwJojaYbPYuS1Y+iGw1O3upEMXTJWJdHJ4x3AuPPILoHpGMFc1EDYkttSiekxFQxbtJxVfK32B0dWL1ws9QGUtPc9T8GoS6u3YdqOVDJ7F3iM3Zf5+3Gsa2WWS2P; 25:HDw3eizbeNWDYuqR1+rqgFTVYmtYAKlGFig4BY4RRQ3c2SYtCO+a+up9kIFJw6gXGWF2dXPlPsCxIMxiJ2rvQ8hVXOOSjL4eh3Y1WeZXDxYcSb4aUKSY8BqjMHOXklnNDOtdEdoBJ9jNnGDNEwZFWdT9e8UQesonoDzHYvOa2G79TbImLvEW6jydswTiU8Fa6SWgMxXjgaqzOO4cep1Y9b99ONQ9loLES9Dz68c6fF44rAS22UAH5LHFLxR1Plfzlc0xuE5IalTQ+CWjPvrK/Kkd+QW6I73RzljxHiz7UrdG/X+vfsfl/EPBWU22qLog/Dx6oJh/eSNIdLJui2rMGw==; 31:U8BGoCslSgZK5IReU2+CapzC4qE7iv/GMFRg1d7sOJ1xZ+k70LUG+pz7z93ZFeA43LkWkAUCGMbmow3OIF8MzXyn6mLNtZlfuAMebMWmzjWAgzxB6Y2Mfic1Ci6MSH6C8rGDogKKRN+kz1jBfc4E1y99S7ZgYrD75V1OoY2p7rqJU58tknVYFYqu4DHCSpZpJgUnLNFDiJbqo6xauQP6kxSwx+Jtn6jNQPBM6wtx0dE= X-MS-TrafficTypeDiagnostic: AM0PR04MB4676: X-Microsoft-Exchange-Diagnostics: 1; AM0PR04MB4676; 20:laRD8ZheWjv/MjptOPrIgqyv878OU5X82Hb3aGxtiXD3MdIn/rrQtE5mTKnWuICYdjPj1r8htlxwr0pnVaYdwCCYY32YewJmwbgy/zimjvoaYLMU8El6nPWxcy12NlhsmXpXYck2SdNCouvBFeB2+rynSVfzBPCSJzZdaOHrOWeYIGgojXNgy3W/k/aNjoY2tZ/EvzrISnkl6yCMaypmo/D0vh+IRlF29wfJrpnvfdn2aXYjYf/j7fD+w+hNCc3x/FBL48L7YBudTndvNpBYX0z4nVIkYHJ/ApNm2opfy/D1KaXCoRIVvGBOIr2eH6kbOwoHXcTgY1vq3LqBobD0Vidn7RCFDBH2omtk1Jp3qvGyLNVO3ML3h2ccdIWjEqbELXIyzSgTv5utap6inJTKz+yxQRxaXAJal2SvOHc8V8kzda2Tqpd1BD1mRsbVb20NRWmofnTiXjX+efQK+vf2EEXPSFbc6PLaPkN8R4d9V0y7UUtfHBH+dEkqY75R9qf/; 4:D/Z2xAxn7JBfSgY/RvmInEVhbXUESD5Q1iKNsJ74VKy9okGxOihIkvaXNf7EbzJIy4JQ8XtnSVAV9YUju9GSPzUwLSAtkNit07EjO/RMPcBcPA3G3lR5Lt+pV5cbdv8jzqOVMw+JVGJklcEKFPEcDDmBpzXm66K3Vx1yYy9FtYFEdYzJmGjX6qo+6UubOYCGvzizsDx7PqwZsrroiWccnNFQukpskqLvjUA4raRUoWFCfcGx9KeYrsOQZFYde1HXlSaEFR011f9BIAUd+wERRqwB5MEFQVGdVCugVwZIFnoxQgy89N8ah7cxxC1w+k53 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231355)(944501410)(52105095)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051); SRVR:AM0PR04MB4676; BCL:0; PCL:0; RULEID:; SRVR:AM0PR04MB4676; X-Forefront-PRVS: 0823A5777B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(396003)(346002)(366004)(136003)(39860400002)(199004)(189003)(45074003)(2906002)(52116002)(16526019)(14444005)(53936002)(8676002)(478600001)(186003)(386003)(446003)(105586002)(7736002)(106356001)(6512007)(6116002)(86362001)(3846002)(81156014)(50226002)(68736007)(1076002)(47776003)(5660300001)(6506007)(8936002)(78486009)(36756003)(316002)(26005)(66066001)(6666004)(25786009)(55236004)(81166006)(11346002)(48376002)(76176011)(44832011)(2361001)(956004)(51416003)(2616005)(97736004)(1006002)(50466002)(486006)(476003)(305945005)(16586007)(6916009)(4326008)(6486002)(2351001)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4676; H:Tophie.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM0PR04MB4676; 23:Rw80Ki7cTctaf/9nTClUSVT5VW6RAyxrFJoCh/Fle?= =?us-ascii?Q?wAxk+yMJO70IzpsOUXS3J88Whr/IihuPyLTv7b3y8D3gjfhK04iRppecJBEW?= =?us-ascii?Q?sSidNtW4ovpbUjNJs0+JcW7oaANBubdbh/CfhcMx6X2ZeDG+8LsloG2xalzr?= =?us-ascii?Q?FCOvlY+ThAHqYuPoNU2XRE3EPfHiAbBC9UcSAthuTokwzc23IwQOEB8jtAGM?= =?us-ascii?Q?+8mi5EY3tuI/3pcc6p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db134EDeuWaorgEw3lV8alSQHHnpSVmS7VQu4Ji2FNdvaHEmtV9B9OKf+oAK5dGwfvpbga1Qih7hA0uXzg/BqAIrGEBronCprhVbXDbWCcx+BSLHc4PEohn8vDc57Y9rZzyAArwxrrw2Ye4/pCi90whCdQIQ==; 5:mMyG68RMpXIAQcSdjEVRZmmFx2+gaCGHifW+tIJcWQXrT/BFQl7S8ZluqwSg7Pg8sw6Frhh/hFvlWxabtYPfTmJ9wwJbx7z9XXRqwLNAd9vZ8ehLWTMQjwAn0D4yXWxIbKtgCmb7g7KnWel3qou2qP0Xl27opambQqMirJWKP1I=; 7:gp9y/UVJn/3ZRRQvWcguv1zp3NvWaiPmPl97lLa5+uSxDex/SKBxU6z267Vc96mVtSVuwuLBAZ+Vm+nm2oIg0liD3y2SUPIA2kT5Vq43jpXZpmwvtD1nvrRrsHtsivaBlBkomh/y876p+yCd6lHih/BffrxEcjVFFvybU0EVQVTONiAI/phERPu76kCVloknzlCXn8kmWanL2tZ4ONQnLlpWItID68VwM+FEtUsJ7elk9vWEhgSqx/XHVruPdVjJ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Oct 2018 10:05:42.3395 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 92a38e82-1739-4a2b-91f5-08d6302a45a7 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4676 Subject: [dpdk-dev] [PATCH v3 02/15] net/dpaa2: fix VLAN filter enablement 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: , X-List-Received-Date: Fri, 12 Oct 2018 10:05:44 -0000 From: Hemant Agrawal Enable the VLAN filters only when requested in rx offload. Fixes: 0ebce6129bc6 ("net/dpaa2: support new ethdev offload APIs") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 9ae326023..bfe78c051 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -405,7 +405,8 @@ dpaa2_eth_dev_configure(struct rte_eth_dev *dev) } } - dpaa2_vlan_offload_set(dev, ETH_VLAN_FILTER_MASK); + if (rx_offloads & DEV_RX_OFFLOAD_VLAN_FILTER) + dpaa2_vlan_offload_set(dev, ETH_VLAN_FILTER_MASK); /* update the current status */ dpaa2_dev_link_update(dev, 0); -- 2.17.1