[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20121220153913.11a10fd0@pixies.home.jungo.com>
Date: Thu, 20 Dec 2012 15:39:13 +0200
From: Shmulik Ladkani <shmulik.ladkani@...il.com>
To: Vlad Yasevich <vyasevic@...hat.com>
Cc: netdev@...r.kernel.org, shemminger@...tta.com, davem@...emloft.net,
or.gerlitz@...il.com, jhs@...atatu.com, mst@...hat.com,
erdnetdev@...il.com, jiri@...nulli.us
Subject: Re: [PATCH net-next V4 02/13] bridge: Add vlan filtering
infrastructure
Hi Vlad,
On Wed, 19 Dec 2012 12:48:13 -0500 Vlad Yasevich <vyasevic@...hat.com> wrote:
> +static void nbp_vlan_flush(struct net_bridge_port *p)
> +{
> + struct net_port_vlan *pve;
> + struct net_port_vlan *tmp;
> +
> + ASSERT_RTNL();
> +
> + list_for_each_entry_safe(pve, tmp, &p->vlan_list, list)
> + nbp_vlan_delete(p, pve->vid, BRIDGE_FLAGS_SELF);
Why would you want to clear "bridge master port" association from this
vlan, in the event of NBP destruction?
The "bridge port" may still be a member of this vlan, doesn't it?
Seems flags argument should be 0.
> +#define BR_VID_HASH_SIZE (1<<6)
> +#define br_vlan_hash(vid) ((vid) % (BR_VID_HASH_SIZE - 1))
Did you mean: & (BR_VID_HASH_SIZE - 1)
Regards,
Shmulik
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists