From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50049.outbound.protection.outlook.com [40.107.5.49]) by dpdk.org (Postfix) with ESMTP id 131FC1B46C; Wed, 26 Sep 2018 20:05:52 +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=JLzT1DvExB9Jxm3jRfgyu6BSrX98u8aF6nBU6jvFD2M=; b=oYiyo6/bwcVPKVYgLbf//qCU1Xeb7agJW2JvLbsesTKBNLRDWLV3Cj9r6KrOLbJ4zGzFLdDjbs0KiBE8kmiw6Vi4xc4W2tHWdQ6xpByJZFVBzFkH5TREB8puCWVds4oKSkb3fsKcvGXvPtT7BH8fn8ZCgBOAZVSheu4F+nYfcP8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from Tophie.ap.freescale.net (14.142.187.166) by AM6PR04MB4679.eurprd04.prod.outlook.com (2603:10a6:20b:1c::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1164.22; Wed, 26 Sep 2018 18:05:48 +0000 From: Shreyansh Jain To: dev@dpdk.org, ferruh.yigit@intel.com Cc: thomas@monjalon.net, Hemant Agrawal , stable@dpdk.org Date: Wed, 26 Sep 2018 23:34:27 +0530 Message-Id: <20180926180440.31726-3-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180926180440.31726-1-shreyansh.jain@nxp.com> References: <20180917103631.32304-1-shreyansh.jain@nxp.com> <20180926180440.31726-1-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR0101CA0014.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::24) To AM6PR04MB4679.eurprd04.prod.outlook.com (2603:10a6:20b:1c::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cb10bbed-c79c-4139-1efc-08d623dab171 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM6PR04MB4679; X-Microsoft-Exchange-Diagnostics: 1; AM6PR04MB4679; 3:17u0GxKQgaaqKcSg8+lceeymUb72fLdaI/7c3b1Ugy8VEygxjOKQ73hWDUyxtB/c4iLE7tf1uNk1xr96x1oDjzypE8raAaihwwrnHEr7wXCNxGpk/Y9gKXh6tJirP+pOnEqHbLNNUtQbUhujkCSdhH2poDs6+Z1Gh40Vkz+mHfNWX1msl2gwFOPwBGVm4W/l+J9gPMdD7E/bGhUVxElEVayuPXh8NoMFxHhzHIsrvjwMYMkNLqy1zn9Z1jO3E1gy; 25:QoghLlaaYVzDru5wEzcNzWZKn8zLV66GTjFJ1AhoICCj8b4gtB2ltVV3L1EIEBpb1v+Vt4nHLJZo1ILNhJt1TT09f8fRV/qOz7xqiALPMiTiu3b/I3E7ZEfh4vPUJ8R+LUcxsbpEbSpMsLxK6JnE+oIziYerqqtMqzRLg58AmoLM2g7aAPqjUNA1JuuuFv2uIV0yInpHhDYt+fnpedsmyiJ7tCrLBsGadpMQCbYz7KLMaYVDLtqvESVFj6zDod6RgI48MjRelpm9dU5ys/aQMkqDUaSCmOUtlwuS0OIWM/Suc/vy23fm5bLzuqPM/TC30by/Vk7g04ogvtIsJdo3vw==; 31:gHMgxkmTMB40XPP4tCm3kLGnzr9IRefd7ueTinqJV9iHWbaBh+irIxRZpNz9yKCW1Bj1RgQD+yJaqryD5iGxzBeHsR81467rk14ZHGRCQDE/JVAJcJlIHJEASaVdpEvFBGMmwpCUF0QqE5VTKytcS8F0tdM2nPiFO7Pv26MUe2dQJV1gs8pf2hmOvnMQ2i+1OigJQ4CZWt4JcnSjr0+eIKjlAb3lTZxEbMyc33D2kWw= X-MS-TrafficTypeDiagnostic: AM6PR04MB4679: X-Microsoft-Exchange-Diagnostics: 1; AM6PR04MB4679; 20:Zx9lRqyROQneOJ4aKlFFvkwOOYXXgPnf5JCVl1gRImPjuA+7Lk2OdESgNKpjqDBy32AKEmBrWY8pldopl+jU3dvpt6+S3Q6yR8+bIxSZNY4pnDXJAmwYY3RhDkcJgiB5UHROYmEp5D89F0Fq10w3jhpR5lXPvHDNkPXYsClKMtLYpRY/7UPkhrDFVsJCOK19iL43LDsW/u7f6H0zRrx2pX6podo0LKuSaFyyoTZ+aZCVNF7MD+z7rFVLlvK8ResX69xo8kKE7wJZk4toNIdTNOJF2j9cWW4R7H1VgxgChTcfv9Lze/QH2yp5PLFLL/vZJGfghLhI1ZwGFnzYqGU4BjKcmDEfkRGNvgOBvrV/FBLqnwZwMD/Y5P9pGm+Xz9v7y54W29xeIl9/lhxRweEvxqjvf1OtXeIB226uSr8wyLnnGDUOcvf1gW99ULpotte4YdxFeKrBDEZceDF/d7Er5x0n//pS4Cx/Y9lUl1sUEwUeklB6jCCwYbqmTYocCaAu; 4:M51OVI9BEkBO4qa8TURz3NDVGba1LI/adVD5l6JXWIbvG/x5h8CHmtnQC4sKytzASJvJY3NYG7A8Ud5K2q2OFL04CZM04uy2e46xoGgw6EVrTYCJUOL0GGMCqNPI83GnNTYf2rRSqdSUM1laJv+XrLgbPX8JpPejpWIQuNzDaWi0r3tAFUQs+vvj8HERgk3shgAKqD5M6qaJL6CHyvkvxY0DXH+u6wi3va8Qx92EotpZEzLbj32aKkEskl8QgA1Lp54ZGlxvHUFRC0mpO8MEQCI0bIO2gt4W2WvFh04bnQE/9w6gprbY5UZfagnWRIED 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)(3231355)(944501410)(52105095)(3002001)(6055026)(149066)(150057)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(20161123560045)(201708071742011)(7699051); SRVR:AM6PR04MB4679; BCL:0; PCL:0; RULEID:; SRVR:AM6PR04MB4679; X-Forefront-PRVS: 08076ABC99 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(136003)(396003)(346002)(366004)(39860400002)(45074003)(189003)(199004)(11346002)(50226002)(446003)(47776003)(44832011)(956004)(476003)(106356001)(486006)(2616005)(6512007)(66066001)(305945005)(7736002)(6486002)(105586002)(36756003)(86362001)(478600001)(8936002)(16526019)(81166006)(50466002)(186003)(26005)(25786009)(8676002)(55236004)(48376002)(81156014)(4326008)(3846002)(6116002)(1076002)(6666003)(52116002)(34290500001)(5009440100003)(2906002)(16586007)(51416003)(316002)(97736004)(6506007)(76176011)(5660300001)(386003)(68736007)(14444005)(53936002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR04MB4679; H:Tophie.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM6PR04MB4679; 23:zthfUz6NNwCdznGUA5zJSRXMLQZmVT5Vy2qw0BxRT?= =?us-ascii?Q?1U4071rRiekJyLK+4KDNNi6P+TTafTq0SZSOOMypgp4faDVpdSfB9jBjhPUQ?= =?us-ascii?Q?GJ+XRR42QKYkBnamSuN2/kxhQ//lw/dsZVcBr6CfuU/ME807plUG2Qealgem?= =?us-ascii?Q?45epU4CtqYJcRmfiuob+tvYKHwFS7BQM2UfROEItLf7wxnFAk9FuzXeu2F8N?= =?us-ascii?Q?reRdARX8bHTynmOCRrLX2aA+nWr4geFmIjanJ1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?8v6MQMA8YdZh0z9F5U3WYhWYI92eoCcaonPWRcTPnD/2sFUXeGDryRz3r8OY?= =?us-ascii?Q?ZgiUkMKhiI4C0agzofMQ8CLY98n2jcUB+vcBOdjpYulAmfHq2Dc0d2q/2hUQ?= =?us-ascii?Q?/5aG73X5GDvE2gKLWq1j1hjP3ohpYA0Ds7BwQBjmXXzkAkhPFLcXa4jhO7fz?= =?us-ascii?Q?kUt9qFBpTMn8VKV47hYXpw3Ei4NPHXesMw0OVxjJURe?= X-Microsoft-Antispam-Message-Info: Z3updAtT55I9wCosVdd//Kih+pW96Yug9h1HD7FQ3VlPvFP1MXyBCwfPGTRGZFVIQpeitSvWvj5BRdQaY70cscP4YthrKQO1jhqDMqdVkDZTdx1ckuRJTheAgxwrczkU4mzOUshDDjqlH13vltVYoOoR+H8AWCG2P9meNyysG30omBZpXtQGB1hwczVCwPP63uUpGKtTKt7dmlKLAjgmhMKYew7jZ/u1cr686d6IilS4Tsg3WpETE+nB3LI18H/SyP37BEA9j5f2b+gjHIIq5zL1ZYkmHVCIR6eQjY1tdMRHM5+jZcCjrdoP4CPTaUVjUdB2x26twIMkP75qtEmTvWGvbPpgg7wU4YK8sMVGdFU= X-Microsoft-Exchange-Diagnostics: 1; AM6PR04MB4679; 6:0p++nQFsbXiTtqHEettS631PTypiM46sN0+9z/xitufyfprJ0+T5SbRho3ZkdKgPWtkUOK/1vzouEAttlBLWX3j5OIDr2E/y5XO+HSGV4smDcB72TBa0tWOOPKzNchwRIllw0I0l2wVFNI7BZzwviNwBUjfokZLMRBkG0XTjgJAwNDwhgZ5SILCBx7kLPhWhcZk901vtsBqBL6VwHiU8Wf5snuMchtCcoafXqznarZgbKLiNzgosmZKzzAuSIbqIuQ8ICBFZdsfgFvBsiePo5g08s8L8gabXH9QkimmkcD6cz9iiEwnmLEM/KcOXzzndb17cFVAFBsKpzbueGA45euLb+7ggpmUg6HG2i+a4LZapameQdLu7v2pbp16CiQX+ARuCbl5fk+dJkzsJm8oUegCQ9548ZWeTqkScAgzdiGwd5+BmbaobCgd9vtas+aI4XQyi02zYlCkMVnVyilY3hA==; 5:X8r86WfKgU8f6FQIyCgAp1GjADTr1y8eWqAVxiA0FE6Qmu/T54TwQLoFZfIHSBRJvp07Xo4EPmdztMFHrdCajUlyt7lxwPHzxFEDa0Ji0SU344sGFdnOJjNyqIGeWgh3c/3Z4vTl3MMb6BsKmgnJmcbNnS+Mo3c4XiD4510wtOQ=; 7:fNQxfMba1Ch4UWhch/JdKiYnyzsq+pBrGU3/lPbyuqNnSLGPWsycVkxvW1f8liNY5NIJX3kZ2ndCa8PRj5KSu43AVQbzzWDvWtMKuhFsmVavedjK8OZppibdbm2dgv9Fb3+Q3+oeCB6z4TCu9ur7CY5nbHsDsvTzxxdqX1b40yUgdgJg2bbDvDewos6zeL+2dbvgyKjpzGXTd+1BShBHXqL0lRWLfVwl5ybw9mDwO7BdvItexHj3SvKGFQZyAWOi SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2018 18:05:48.7264 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cb10bbed-c79c-4139-1efc-08d623dab171 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4679 Subject: [dpdk-dev] [PATCH v2 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: Wed, 26 Sep 2018 18:05:52 -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 5bbbdf74e..91b1d5916 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