lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <E4CD12F19ABA0C4D8729E087A761DC35067FA7D3@ORSMSX101.amr.corp.intel.com>
Date:	Mon, 30 Mar 2015 20:46:02 +0000
From:	"Arad, Ronen" <ronen.arad@...el.com>
To:	Scott Feldman <sfeldma@...il.com>,
	roopa <roopa@...ulusnetworks.com>,
	Netdev <netdev@...r.kernel.org>
CC:	Jirí Pírko <jiri@...nulli.us>,
	Guenter Roeck <linux@...ck-us.net>,
	Florian Fainelli <f.fainelli@...il.com>
Subject: RE: [PATCH net-next 11/18] switchdev: remove old
 netdev_switch_port_bridge_setlink



>-----Original Message-----
>From: netdev-owner@...r.kernel.org [mailto:netdev-owner@...r.kernel.org] On
>Behalf Of Scott Feldman
>Sent: Monday, March 30, 2015 1:20 PM
>To: roopa
>Cc: Netdev; Jiří Pírko; Guenter Roeck; Florian Fainelli
>Subject: Re: [PATCH net-next 11/18] switchdev: remove old
>netdev_switch_port_bridge_setlink
>
>On Mon, Mar 30, 2015 at 6:23 AM, roopa <roopa@...ulusnetworks.com> wrote:
>> On 3/30/15, 1:40 AM, sfeldma@...il.com wrote:
>>>
>>> From: Scott Feldman <sfeldma@...il.com>
>>>
>>> New attr-based bridge_setlink can recurse lower devs and recover on err,
>>> so
>>> remove old wrapper.  Also, restore br_setlink back to original and don't
>>> call
>>> into SELF port driver.  rtnetlink.c:bridge_setlink already does a call
>>> into
>>> port driver for SELF.
>>>
>>> Signed-off-by: Scott Feldman <sfeldma@...il.com>
>>
>> removing this now requires every vlan add to be a two step process, why ?
>
>No, that's not true.  You want to use
>ndo_vlan_rx_add_vid/ndo_vlan_rx_kill_vid in your port driver, and then
>using either vlan driver standalone or the bridge driver vlan support
>will work.
>
>Try it.  Implement ndo_vlan_rx_add_vid in your port driver and verify
>you get called to add VLAN to port with either:
>
>    bridge vlan add dev swp1 vid 10
>
>    -or-
>
>    vconfig add swp1 10
>
>Same for deleting a VLAN, either of these two commands call into the
>port driver ndo_vlan_rx_kill_vid:
>
>    bridge vlan del dev swp1 vid 10
>
>    -or-
>
>    vconfig rem swp1 10
>
>
>> bridge vlan add dev swp1 vid 10
>> bridge vlan add dev swp1 vid 10 self
>
>Not necessary.  The first command is sufficient if using
>ndo_vlan_rx_add_vid. 

This is not sufficient for VLAN filtering. Ndo_vlan_rx_add_vid does not
provide the vinfo flags PVID and UNTAGGED. Therefore it is not
an adequate replacement for propagating setlink/dellink messages to the
swithport driver or an alternative via swdev_attr.
  
 If you want the self version to work, add
>ndo_bridge_setlink/dellink ops to your port driver.
>

>> and userspace will get two notifications.
>
>Single command (as shown in my examples) generates one user notification.
>--
>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

Powered by Openwall GNU/*/Linux Powered by OpenVZ