Received: by 10.213.65.68 with SMTP id h4csp666290imn; Tue, 27 Mar 2018 06:38:54 -0700 (PDT) X-Google-Smtp-Source: AG47ELuD/3wuiry4FprjXhDOi49owzhSap0V+bXhU6VQTA4glopxiNG6sHebv/ntLkFSF+wpbKmq X-Received: by 10.98.32.134 with SMTP id m6mr36976999pfj.27.1522157934266; Tue, 27 Mar 2018 06:38:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522157934; cv=none; d=google.com; s=arc-20160816; b=iYWk/wpDTi75n7QXj073Lwp+dtmYJjBBhRf1TO3u7DYpmna/6qUw13TJ4+6WRA2e9h OgIo4L/CtlPGhzn3gZZ3+3rVS46UHlY4WxdTAOFjcKM/TOz1nCbFB14t2+KmlvIke2nK Y6Ym+bAaZnM5ALSYC2PO1CZKDPJivrCENKM05SStQEx93438aOh3vscQXct4SOFBIUiB CgtbUzYlKnK1N/LGf422gDtdgIiIzm+sVFmaoSEAGDk8PJC+pnLYyiNRSysSDNYq+ak1 MdwdOlUCrACqGT0SaSrd8YTM5fAN6E7F4cNXMSsW8XMLWXYp0Sc/tEHRA/BZQLh5Dzv6 YyJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=yBvtzUp4QyMrKmKUtKCeJCc9iq9rXi9ZBqqmy+E78hM=; b=RN1jeCfcP+id2KI4VYSKXfagaVwcIVndASUbrPJ5kpyvS/ULmRarsHi8iKkyB3Vfe9 mspYnp969P/G7GhFNGc9P34X+jiuZwNeu5qirVS5F2YEWALWybTDdpd5u9hWjbqxioBe JpIOi/R9fohNNRgO9rfEGb4HqwpELUId3MWQN8BbmcyYAcAMwZmz8Aoxnz8eY4HdmH5m Iy/6ZZqoC00ofNUNJeTPJ2Ryk/D7p5Q0utrhJT6xC5DC008koWFVDpErQ5vNiOT27wQV AAJK89BDPh89N6qsRoCtDGzLLc22cg650zE9QGo/6u1GW4FC+dE+ueYVjoROfZGkWypu vIhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=x7lzf6wI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y38-v6si1299059plh.476.2018.03.27.06.38.39; Tue, 27 Mar 2018 06:38:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=x7lzf6wI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752613AbeC0Nhr (ORCPT + 99 others); Tue, 27 Mar 2018 09:37:47 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:43572 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752213AbeC0Nhp (ORCPT ); Tue, 27 Mar 2018 09:37:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=yBvtzUp4QyMrKmKUtKCeJCc9iq9rXi9ZBqqmy+E78hM=; b=x7lzf6wI+2IhJHh8efAhbN3jan+dlPKxzx44oCUmdaQFxBtMsQArzuoJUZUTx37qgUnUPdnuIsTAMYUQ5DYOxJK17EqyiYzjSTh9KG0LnvTEZ0yDOkC9WtwwEfHRXhZcIokd+FJnoXLfTbcu98wLvCmdCB0RonCsRi9KD2t7oNY=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1f0onE-0001DE-Sp; Tue, 27 Mar 2018 15:37:40 +0200 Date: Tue, 27 Mar 2018 15:37:40 +0200 From: Andrew Lunn To: Razvan Stefanescu Cc: gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, alexandru.marginean@nxp.com, ruxandra.radulescu@nxp.com, ioana.ciornei@nxp.com, laurentiu.tudor@nxp.com, stuyoder@gmail.com Subject: Re: [PATCH] staging: fsl-dpaa2/ethsw: Fix TCI values overwrite Message-ID: <20180327133740.GI5862@lunn.ch> References: <20180327131050.30581-1-razvan.stefanescu@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180327131050.30581-1-razvan.stefanescu@nxp.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 27, 2018 at 08:10:50AM -0500, Razvan Stefanescu wrote: > Previous implementation overwrites PCP value, assuming the default value is > 0, instead of 7. > > Avoid this by modifying helper function ethsw_port_set_tci() to > ethsw_port_set_pvid() and make it update only the vlan_id of the tci_cfg > struct. Hi Razvan It is a good idea to explain acronyms, especially for staging, since there are patches for all sorts of devices, can you cannot expect everybody to know network specific acronyms. By PCP you mean Priority Code Point. TCI i have no idea about. Looking at the code, i think you are changing the flow to become read/modify/write, instead of just write, which is overwriting the previously configured Priority Code Point? Please try to add more details to your change logs, to help us understand the change. Andrew