Netdev List
 help / color / mirror / Atom feed
From: Vladimir Oltean <olteanv@gmail.com>
To: kernel test robot <lkp@intel.com>
Cc: "David S. Miller" <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>,
	kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
	netdev@vger.kernel.org, Florian Fainelli <f.fainelli@gmail.com>,
	Andrew Lunn <andrew@lunn.ch>,
	Vivien Didelot <vivien.didelot@gmail.com>,
	Kurt Kanzenbach <kurt@linutronix.de>,
	Hauke Mehrtens <hauke@hauke-m.de>,
	Woojung Huh <woojung.huh@microchip.com>
Subject: Re: [PATCH v2 net-next 01/10] net: switchdev: remove vid_begin -> vid_end range from VLAN objects
Date: Wed, 6 Jan 2021 19:08:21 +0200	[thread overview]
Message-ID: <20210106170821.z7m6ouapcij25y7w@skbuf> (raw)
In-Reply-To: <202101062240.KXBT8Rcf-lkp@intel.com>

On Wed, Jan 06, 2021 at 10:12:39PM +0800, kernel test robot wrote:
> static void mv88e6xxx_port_vlan_add(struct dsa_switch *ds, int port,
> 				    const struct switchdev_obj_port_vlan *vlan)
> {
> 	struct mv88e6xxx_chip *chip = ds->priv;
> 	bool untagged = vlan->flags & BRIDGE_VLAN_INFO_UNTAGGED;
> 	bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID;
> 	bool warn;
> 	u8 member;
> 	u16 vid;
> 
> 	if (!mv88e6xxx_max_vid(chip))
> 		return;
> 
> 	if (dsa_is_dsa_port(ds, port) || dsa_is_cpu_port(ds, port))
> 		member = MV88E6XXX_G1_VTU_DATA_MEMBER_TAG_UNMODIFIED;
> 	else if (untagged)
> 		member = MV88E6XXX_G1_VTU_DATA_MEMBER_TAG_UNTAGGED;
> 	else
> 		member = MV88E6XXX_G1_VTU_DATA_MEMBER_TAG_TAGGED;
> 
> 	/* net/dsa/slave.c will call dsa_port_vlan_add() for the affected port
> 	 * and then the CPU port. Do not warn for duplicates for the CPU port.
> 	 */
> 	warn = !dsa_is_cpu_port(ds, port) && !dsa_is_dsa_port(ds, port);
> 
> 	mv88e6xxx_reg_lock(chip);
> 
> 	if (mv88e6xxx_port_vlan_join(chip, port, vlan->vid, member, warn))
> 		dev_err(ds->dev, "p%d: failed to add VLAN %d%c\n", port,
> 			vid, untagged ? 'u' : 't');

s/vid/vlan->vid/

Sorry about this. I'm superseding it with a v3.

  reply	other threads:[~2021-01-06 17:09 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-06 13:09 [PATCH v2 net-next 00/10] Get rid of the switchdev transactional model Vladimir Oltean
2021-01-06 13:09 ` [PATCH v2 net-next 01/10] net: switchdev: remove vid_begin -> vid_end range from VLAN objects Vladimir Oltean
2021-01-06 14:12   ` kernel test robot
2021-01-06 17:08     ` Vladimir Oltean [this message]
2021-01-06 17:08   ` Ido Schimmel
2021-01-06 17:15     ` Vladimir Oltean
2021-01-06 17:26       ` Ido Schimmel
2021-01-06 13:09 ` [PATCH v2 net-next 02/10] net: switchdev: remove the transaction structure from port object notifiers Vladimir Oltean
2021-01-06 17:42   ` Ido Schimmel
2021-01-06 13:09 ` [PATCH v2 net-next 03/10] net: switchdev: delete switchdev_port_obj_add_now Vladimir Oltean
2021-01-06 17:43   ` Ido Schimmel
2021-01-06 13:10 ` [PATCH v2 net-next 04/10] net: switchdev: remove the transaction structure from port attributes Vladimir Oltean
2021-01-06 17:47   ` Ido Schimmel
2021-01-06 13:10 ` [PATCH v2 net-next 05/10] net: dsa: remove the transactional logic from ageing time notifiers Vladimir Oltean
2021-01-06 13:10 ` [PATCH v2 net-next 06/10] net: dsa: remove the transactional logic from MDB entries Vladimir Oltean
2021-01-06 13:10 ` [PATCH v2 net-next 07/10] net: dsa: remove the transactional logic from VLAN objects Vladimir Oltean
2021-01-06 13:10 ` [PATCH v2 net-next 08/10] net: dsa: remove obsolete comments about switchdev transactions Vladimir Oltean
2021-01-06 13:10 ` [PATCH v2 net-next 09/10] mlxsw: spectrum_switchdev: remove transactional logic for VLAN objects Vladimir Oltean
2021-01-06 18:10   ` Ido Schimmel
2021-01-06 13:10 ` [PATCH v2 net-next 10/10] net: switchdev: delete the transaction object Vladimir Oltean
2021-01-06 18:11   ` Ido Schimmel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210106170821.z7m6ouapcij25y7w@skbuf \
    --to=olteanv@gmail.com \
    --cc=andrew@lunn.ch \
    --cc=clang-built-linux@googlegroups.com \
    --cc=davem@davemloft.net \
    --cc=f.fainelli@gmail.com \
    --cc=hauke@hauke-m.de \
    --cc=kbuild-all@lists.01.org \
    --cc=kuba@kernel.org \
    --cc=kurt@linutronix.de \
    --cc=lkp@intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=vivien.didelot@gmail.com \
    --cc=woojung.huh@microchip.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox