From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0067.outbound.protection.outlook.com [104.47.2.67]) by dpdk.org (Postfix) with ESMTP id DCC041B234 for ; Fri, 6 Oct 2017 07:19:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=vAHI19aJGgQOGwOIcILQ/yXouXxBZdVmUQqotP4VrHM=; b=rUPFM0IEKjzKpvNNuR0ZLWh4pjK8LeqseIqxcyXEiVecKXiwWtxUySn0l+hwvVYzJ+nhN1naP6tSK3OZvS/Kvh4GG5k/Rk+SLC2R6vc8jm8Dj2tAj1aWCogIF5+7Uk0XRBY5XwP7fj/Erg8OjYkAhJS1G420yGCJAD77fwwwr8o= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yskoh@mellanox.com; Received: from yongseok-MBP.local (73.222.116.174) by HE1PR0501MB2042.eurprd05.prod.outlook.com (2603:10a6:3:35::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Fri, 6 Oct 2017 05:19:01 +0000 Date: Thu, 5 Oct 2017 22:18:45 -0700 From: Yongseok Koh To: Nelio Laranjeiro Cc: dev@dpdk.org, adrien.mazarguil@6wind.com, ferruh.yigit@intel.com Message-ID: <20171006051844.GJ19330@yongseok-MBP.local> References: <89d107007f96e02df39ec62da357f315226d85e2.1507207731.git.nelio.laranjeiro@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <89d107007f96e02df39ec62da357f315226d85e2.1507207731.git.nelio.laranjeiro@6wind.com> User-Agent: Mutt/1.7.2 (2016-11-26) X-Originating-IP: [73.222.116.174] X-ClientProxiedBy: MWHPR1001CA0008.namprd10.prod.outlook.com (2603:10b6:301:2a::21) To HE1PR0501MB2042.eurprd05.prod.outlook.com (2603:10a6:3:35::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 94e71173-3c61-47dd-4c72-08d50c79c212 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:HE1PR0501MB2042; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0501MB2042; 3:2P90H2doobIZ/bdpJslPnaHOdowGgx6Z8OTn1FZAyWWZEj0yfZAjuOMO7MLYP0eDdZQWT/O7KrIk0ka6Go/U1aCqremBVJwiEimarOw9KmVPimhbQNcXjBfZ0nJzlg/CPBhCWZqaPrfer4yiqELiZOdSJ8JRD2T/QGaQnFHM1/sUvq+OyjHOFZBk+SD24sdNK055d6m8tlTzguG/52ou0R5qz+fW6IprAi6lid81N4nvFU3s4M5W7VO9zsGHJYYf; 25:AyYvC7oJM834uKW2IlebzH/lyjVJCejlfk/QnVROC00ljFpSa0OXe40OmjwsCMbjAb0wKIE7700ForiVRfkRW6oIrbxwE6sNkwwEIyVPs0yjN2najT4DgEDLTmP6vO83QcPP4zwgeD7/xvSY3CbUBp4cZaMNkR/5qerfs9jbxF2E48K3kOEieaJ0H376U4Hot/V4A9YxdMWyzI/CkAeBprlF6OBiuU5W2EoPhdSU0sxv5gmEekRk4IkfA+gMJoN7qMIpZ6vDALWDMOFvPXiLan4GIt/HGXFvynScVWGRcgu1QuBl6ZbDQzNT6bWqfMUsMb71yMkTEyjCCHbgDevtaw==; 31:IbFj2PKOcULH0lU2oFhzi52v2jl4P0ua6k/xAB7lXD1K7QWfqBlTKtbCOu4ONZaZwO28OTGGLYdGI+aj0FZA3MsHq1djWbPrRfCOxdUetpdCrt3FthS3V7ljErGACUgwxkXWyENTbyYKENduu02xloWQ+mWZIW/48ccK1dGAX9tR1GW45FDrYVj3+qdeSyhRFs0miaHeSUJI+XBmJwQfMnHz3Wav5cLVrZ6IsQ82ubs= X-MS-TrafficTypeDiagnostic: HE1PR0501MB2042: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; HE1PR0501MB2042; 20:O9nBIU3UKlom84w3s+WqiA5HJRc+3+O6XsppaHkGNw6U/uosWB661CMBfg6EadkzsrkDLTBwOcP03nsRKL9L0FFo4TW50o93jbBpNv3Ch31oq97teM6+apNoY+lS+R45vZX7ZwzNr4DMgu5zWKOqyRXNSj/9ZLZHl9iUNQVqMmimtGXeRQc80EzQJbQ/ixCizmzuWiSGii/CO29epnEX8vhL4SNMxv7IujwlslbF8X3YKBw0S8MvN0/jgLrBZ8vT1RwtN/3N5gUoGMch/lRbraCRNUWYVQnjGJqTvrDbkHAXsbmAxNubqB4IkY4aF7FqMCHwKw7Wk4SXqCZMPfd/KgNpCtTFEn99HBIKvqa4lFjmHxF0fIdBSxX+GrNb4piFRW56hIbIRFUtzpcm+k/VWaV2SgGPW76pv86XUg3qXW3mFjTo6jL5qeXSE9unV4MPfRqPq1sGWxyBLtUuVCVy/rQKc/MDRPhMdoS5rhxnYZYkqLmgp2UCtvB7/d2cHrD9; 4:c9FccBm6joLm01ux6pWeOAry3UtClIZgi95nVzUqXCiZaChkYa15f+wVmIrcrpwJi6N8u1ntubcX2IKkfzk0vROhk/luw0Zn4PLzZOqMK6Zsj+O6jBiYPsctsRJPHBMYcEWEzUOEOtt3F54Xdw8joF0S2d70gqZHSp3XR3RBWL+Fj+/RnMCaj8XAOnH9bWrlL+/LlqWkBIiFfSoX1KrbPvDQ40lFcw8a9V2RMgkzqHv7BeRYoBLq5xVIq88VisNC X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(3002001)(6055026)(6041248)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(20161123555025)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR0501MB2042; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR0501MB2042; X-Forefront-PRVS: 0452022BE1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(39860400002)(346002)(24454002)(199003)(189002)(8676002)(55016002)(229853002)(6666003)(68736007)(3846002)(33656002)(81166006)(81156014)(6246003)(76176999)(8936002)(1076002)(101416001)(6116002)(54356999)(6916009)(106356001)(97736004)(5660300001)(105586002)(189998001)(478600001)(23756003)(2950100002)(98436002)(47776003)(7736002)(50466002)(25786009)(4326008)(58126008)(2870700001)(2906002)(305945005)(9686003)(53936002)(66066001)(316002)(6506006)(86362001)(83506001)(16526018)(50986999)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0501MB2042; H:yongseok-MBP.local; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?iso-8859-1?Q?1; HE1PR0501MB2042; 23:DC6Abaa7TLblWSaSnNTyEh3damvYhXVifux31?= =?iso-8859-1?Q?OfiOXMnwGKMuXw9RauyHuLGnr4r6zZj9rIC+9z5mzLwJWTUr0FzF32R8rZ?= =?iso-8859-1?Q?gd9EepAMzhlQT9lhMp+RJodyeSjsdZbCnaw4mUB9ZlBriV2UHaU1+udl27?= =?iso-8859-1?Q?6RyzSB1QiYDf3CWs93T6rqRwK7l3ShVmcacFZC9okAfuzFtrp7pkriTWmL?= =?iso-8859-1?Q?1f+rT2C4F9rZX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SXD7ZnExdVpM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Oct 2017 05:19:01.0753 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0501MB2042 Subject: Re: [dpdk-dev] [PATCH v2 19/30] net/mlx5: use flow to enable unicast traffic 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, 06 Oct 2017 05:19:06 -0000 On Thu, Oct 05, 2017 at 02:49:51PM +0200, Nelio Laranjeiro wrote: [...] > -int > -mlx5_vlan_filter_set(struct rte_eth_dev *dev, uint16_t vlan_id, int on) > -{ > - struct priv *priv = dev->data->dev_private; > - int ret; > - > - priv_lock(priv); > - ret = vlan_filter_set(dev, vlan_id, on); > + if (dev->data->dev_started) { > + priv_dev_traffic_disable(priv, dev); > + priv_dev_traffic_enable(priv, dev); > + } Same as priv_dev_traffic_restart() Acked-by: Yongseok Koh   Thanks