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: <20150715180400.GF588@gospo.home.greyhouse.net>
Date:	Wed, 15 Jul 2015 14:04:01 -0400
From:	Andy Gospodarek <gospo@...ulusnetworks.com>
To:	Scott Feldman <sfeldma@...il.com>
Cc:	Anuradha Karuppiah <anuradhak@...ulusnetworks.com>,
	"David S. Miller" <davem@...emloft.net>,
	Netdev <netdev@...r.kernel.org>,
	Roopa Prabhu <roopa@...ulusnetworks.com>,
	Wilson Kok <wkok@...ulusnetworks.com>
Subject: Re: [PATCH net-next v7 0/4] net: Introduce protodown flag.

On Wed, Jul 15, 2015 at 10:34:04AM -0700, Scott Feldman wrote:
> On Wed, Jul 15, 2015 at 9:24 AM, Andy Gospodarek
> <gospo@...ulusnetworks.com> wrote:
> > On Tue, Jul 14, 2015 at 10:08:35PM -0700, Scott Feldman wrote:
> >> On Tue, Jul 14, 2015 at 1:43 PM,  <anuradhak@...ulusnetworks.com> wrote:
> >> > From: Anuradha Karuppiah <anuradhak@...ulusnetworks.com>
> >> >
> >> > User space daemons can detect errors in the network that need to be
> >> > notified to the switch device drivers.
> >> >
> >> > Drivers can react to this error state by doing a phy-down on the
> >> > switch-port which would result in a carrier-off locally and on the directly
> >> > connected switch. Doing that would prevent loops and black-holes in the
> >> > network.
> >>
> >> Hi Anuradha,
> >>
> >> Since this is a switch-thingy, can you move this to switchdev port
> >> attribute rather than adding another ndo op?  I know you started this
> >> patch set before switchdev port attrs, but I think it's worthwhile
> >> moving it to switchdev since clearly the use-case is switch device
> >> drivers.   Let me know if you need help converting over to switchdev
> >> port attr.
> >
> > If it is switchdev-only that would prevent people from using commodity
> > hardware (classic servers + NICs) from being able to build something
> > similar to what can be done with rocker.
> 
> That's not true.  There is nothing preventing a classic NIC driver
> from implementing some/all switchdev ops if the device can do
> forwarding offload or other switchy-things.

I thought the point of the switchdev ops were to provide
offload-specific capabilities not just switch-specific functions.
Having it in switchdev seems misplaced architecturally and seems
less likely to have it accepted by NIC drivers that desire this
functionality.

> This patchset is about a switch feature (MLAG was the example
> use-case), so let's move this under switchdev.

As you have stated the need for it was evidenced when using a non-LACP
multi-chassis bond as there was no viable way to tell a device connectad
via a static bond that the traffic it received would be dropped.

Generally, the use-case for the proto-down feature is to have a way to
tell a connected device to stop sending traffic towards our device in a
particular scenario.  I'm certain there are times when an endpoint might
also want to take down an interface to get an upstream device to stop
sending traffic without dealing with all the baggage that comes with
taking an inteface admin down.

--
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