Re: [ovs-dev] [RFC] [PATCH 0/6] Add port_group to prevent loopback between interfaces
On Fri, Jul 14, 2017 at 03:40:29PM +0200, Matthias May wrote: > On 02/05/17 11:20, Matthias May wrote: > > On 22/04/17 03:45, Ben Pfaff wrote: > >> On Mon, Apr 03, 2017 at 11:40:54AM +0200, Matthias May wrote: > >>> When using openvswitch in combination with a hardware switch attached via > >>> dsa > >>> it may be desirable to prevent frames from being looped back to interfaces > >>> which reside on the same switch and are already processed by the > >>> switching fabric in hardware. > >>> This patch series achieves this by introducing a new parameter port_group > >>> to > >>> be used by the normal action. > >>> When the port_group is not set explicitly, it defaults to the ofp number. > >>> Ports which are in the same group will not forward a frame between each > >>> other. > >> > >> Thank you for proposing (and implementing) a new feature! It's always > >> great to see new people and companies coming into the Open vSwitch > >> development community. I'll take a more detailed look at each patch, > >> but I have a few general questions here too. > >> > >> What's dsa? > >> > >> How is this feature related to LACP? > >> > >> I guess that the answers to these questions should go in the > >> documentation as well as in the thread here. > >> > >> It looks like these patches depend on each other, so that if only some > >> of them are applied, in some cases the system does not build. The OVS > >> philosophy is that each patch should be self-contained, so that after > >> each one is applied (in order) the system builds, works, is > >> self-consistent, and is completely documented. I am not sure yet > >> because I have not finished review, but it seems likely that this new > >> feature should be a single patch. > >> > >> Thanks again! > >> > >> Ben. > >> > > > > Hi Ben > > > > Sorry for the delay... > > Thank you for your feedback. > > > > dsa is the "distributed switch architecture" implemented mostly by marvell > > switch chips (see [1]). > > > > It is not related to LACP at all. > > When I started with this, I first thought I could use/reuse the LACP code > > but I didn't see how. > > We have sprint panning tomorrow and I will see that I get some time to work > > on this. > > I will send a v2 rebased on HEAD with your feedback integrated and > > more/better explanation. > > > > BR > > Matthias > > > > > > [1] https://www.kernel.org/doc/Documentation/networking/dsa/dsa.txt > > ___ > > dev mailing list > > d...@openvswitch.org > > https://mail.openvswitch.org/mailman/listinfo/ovs-dev > > > > Having found some time to work on this, I stumbled by chance over the > optional parameter "protected" described in > http://openvswitch.org/support/dist-docs/ovs-vswitchd.conf.db.5.html > > This does exactly what I need and thus makes the whole patch unnecessary. > > This feature isn't really announced anywhere else. > Would it make sense to patch .../utilities/ovs-vsctl.8 and describe how to > use this there? Probably not. We don't want ovs-vsctl(8) to describe every configuration option. That's what ovs-vswitchd.conf.db(5) is for. ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev
Re: [ovs-dev] [RFC] [PATCH 0/6] Add port_group to prevent loopback between interfaces
On 02/05/17 11:20, Matthias May wrote: > On 22/04/17 03:45, Ben Pfaff wrote: >> On Mon, Apr 03, 2017 at 11:40:54AM +0200, Matthias May wrote: >>> When using openvswitch in combination with a hardware switch attached via >>> dsa >>> it may be desirable to prevent frames from being looped back to interfaces >>> which reside on the same switch and are already processed by the >>> switching fabric in hardware. >>> This patch series achieves this by introducing a new parameter port_group to >>> be used by the normal action. >>> When the port_group is not set explicitly, it defaults to the ofp number. >>> Ports which are in the same group will not forward a frame between each >>> other. >> >> Thank you for proposing (and implementing) a new feature! It's always >> great to see new people and companies coming into the Open vSwitch >> development community. I'll take a more detailed look at each patch, >> but I have a few general questions here too. >> >> What's dsa? >> >> How is this feature related to LACP? >> >> I guess that the answers to these questions should go in the >> documentation as well as in the thread here. >> >> It looks like these patches depend on each other, so that if only some >> of them are applied, in some cases the system does not build. The OVS >> philosophy is that each patch should be self-contained, so that after >> each one is applied (in order) the system builds, works, is >> self-consistent, and is completely documented. I am not sure yet >> because I have not finished review, but it seems likely that this new >> feature should be a single patch. >> >> Thanks again! >> >> Ben. >> > > Hi Ben > > Sorry for the delay... > Thank you for your feedback. > > dsa is the "distributed switch architecture" implemented mostly by marvell > switch chips (see [1]). > > It is not related to LACP at all. > When I started with this, I first thought I could use/reuse the LACP code but > I didn't see how. > We have sprint panning tomorrow and I will see that I get some time to work > on this. > I will send a v2 rebased on HEAD with your feedback integrated and > more/better explanation. > > BR > Matthias > > > [1] https://www.kernel.org/doc/Documentation/networking/dsa/dsa.txt > ___ > dev mailing list > d...@openvswitch.org > https://mail.openvswitch.org/mailman/listinfo/ovs-dev > Having found some time to work on this, I stumbled by chance over the optional parameter "protected" described in http://openvswitch.org/support/dist-docs/ovs-vswitchd.conf.db.5.html This does exactly what I need and thus makes the whole patch unnecessary. This feature isn't really announced anywhere else. Would it make sense to patch .../utilities/ovs-vsctl.8 and describe how to use this there? BR Matthias ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev
Re: [ovs-dev] [RFC] [PATCH 0/6] Add port_group to prevent loopback between interfaces
On 4/3/17, 2:40 AM, "ovs-dev-boun...@openvswitch.org on behalf of Matthias May"wrote: When using openvswitch in combination with a hardware switch attached via dsa it may be desirable to prevent frames from being looped back to interfaces which reside on the same switch and are already processed by the switching fabric in hardware. This patch series achieves this by introducing a new parameter port_group to be used by the normal action. When the port_group is not set explicitly, it defaults to the ofp number. Ports which are in the same group will not forward a frame between each other. This looks like port isolation to me – how about something wild and crazy like “isolation ID”. The “group” part may even be considered misleading and unfortunately is used in other different networking contexts. Matthias May (6): port_group: add db definitions port_group: add documentation entry port_group: bridge: set port_group in port config port_group: ofproto: add port_group definition port_group: ofproto-dpif: add port_group definition and init port_group: ofproto-dpif-xlate: implement port_group ofproto/ofproto-dpif-xlate.c | 53 +--- ofproto/ofproto-dpif-xlate.h | 4 ++-- ofproto/ofproto-dpif.c | 13 +-- ofproto/ofproto.h| 1 + vswitchd/bridge.c| 11 + vswitchd/vswitch.ovsschema | 9 ++-- vswitchd/vswitch.xml | 7 ++ 7 files changed, 79 insertions(+), 19 deletions(-) -- 2.11.0 ___ dev mailing list d...@openvswitch.org https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.openvswitch.org_mailman_listinfo_ovs-2Ddev=DwICAg=uilaK90D4TOVoH58JNXRgQ=BVhFA09CGX7JQ5Ih-uZnsw=ElDHweksMtkAyJMxLsPjY2CvtmkRMpGeiCOq1tmSc6E=O7RObYM603xAIAfqioZQQyjLACrZ-3tM0KOeot5Xjik= ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev
Re: [ovs-dev] [RFC] [PATCH 0/6] Add port_group to prevent loopback between interfaces
On 21 April 2017 at 18:45, Ben Pfaffwrote: > On Mon, Apr 03, 2017 at 11:40:54AM +0200, Matthias May wrote: >> When using openvswitch in combination with a hardware switch attached via dsa >> it may be desirable to prevent frames from being looped back to interfaces >> which reside on the same switch and are already processed by the >> switching fabric in hardware. >> This patch series achieves this by introducing a new parameter port_group to >> be used by the normal action. >> When the port_group is not set explicitly, it defaults to the ofp number. >> Ports which are in the same group will not forward a frame between each >> other. > > Thank you for proposing (and implementing) a new feature! It's always > great to see new people and companies coming into the Open vSwitch > development community. I'll take a more detailed look at each patch, > but I have a few general questions here too. > > What's dsa? For what it's worth, DSA support in the Linux code has recently been resurrected, there was a netdev 2.1 talk here: https://www.youtube.com/watch?v=EK5ZmQOYSpM ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev
Re: [ovs-dev] [RFC] [PATCH 0/6] Add port_group to prevent loopback between interfaces
On 22/04/17 03:45, Ben Pfaff wrote: > On Mon, Apr 03, 2017 at 11:40:54AM +0200, Matthias May wrote: >> When using openvswitch in combination with a hardware switch attached via dsa >> it may be desirable to prevent frames from being looped back to interfaces >> which reside on the same switch and are already processed by the >> switching fabric in hardware. >> This patch series achieves this by introducing a new parameter port_group to >> be used by the normal action. >> When the port_group is not set explicitly, it defaults to the ofp number. >> Ports which are in the same group will not forward a frame between each >> other. > > Thank you for proposing (and implementing) a new feature! It's always > great to see new people and companies coming into the Open vSwitch > development community. I'll take a more detailed look at each patch, > but I have a few general questions here too. > > What's dsa? > > How is this feature related to LACP? > > I guess that the answers to these questions should go in the > documentation as well as in the thread here. > > It looks like these patches depend on each other, so that if only some > of them are applied, in some cases the system does not build. The OVS > philosophy is that each patch should be self-contained, so that after > each one is applied (in order) the system builds, works, is > self-consistent, and is completely documented. I am not sure yet > because I have not finished review, but it seems likely that this new > feature should be a single patch. > > Thanks again! > > Ben. > Hi Ben Sorry for the delay... Thank you for your feedback. dsa is the "distributed switch architecture" implemented mostly by marvell switch chips (see [1]). It is not related to LACP at all. When I started with this, I first thought I could use/reuse the LACP code but I didn't see how. We have sprint panning tomorrow and I will see that I get some time to work on this. I will send a v2 rebased on HEAD with your feedback integrated and more/better explanation. BR Matthias [1] https://www.kernel.org/doc/Documentation/networking/dsa/dsa.txt ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev
Re: [ovs-dev] [RFC] [PATCH 0/6] Add port_group to prevent loopback between interfaces
On Mon, Apr 03, 2017 at 11:40:54AM +0200, Matthias May wrote: > When using openvswitch in combination with a hardware switch attached via dsa > it may be desirable to prevent frames from being looped back to interfaces > which reside on the same switch and are already processed by the > switching fabric in hardware. > This patch series achieves this by introducing a new parameter port_group to > be used by the normal action. > When the port_group is not set explicitly, it defaults to the ofp number. > Ports which are in the same group will not forward a frame between each other. Thank you for proposing (and implementing) a new feature! It's always great to see new people and companies coming into the Open vSwitch development community. I'll take a more detailed look at each patch, but I have a few general questions here too. What's dsa? How is this feature related to LACP? I guess that the answers to these questions should go in the documentation as well as in the thread here. It looks like these patches depend on each other, so that if only some of them are applied, in some cases the system does not build. The OVS philosophy is that each patch should be self-contained, so that after each one is applied (in order) the system builds, works, is self-consistent, and is completely documented. I am not sure yet because I have not finished review, but it seems likely that this new feature should be a single patch. Thanks again! Ben. ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev
Re: [ovs-dev] [RFC] [PATCH 0/6] Add port_group to prevent loopback between interfaces
On 03/04/17 11:40, Matthias May wrote: > When using openvswitch in combination with a hardware switch attached via dsa > it may be desirable to prevent frames from being looped back to interfaces > which reside on the same switch and are already processed by the > switching fabric in hardware. > This patch series achieves this by introducing a new parameter port_group to > be used by the normal action. > When the port_group is not set explicitly, it defaults to the ofp number. > Ports which are in the same group will not forward a frame between each other. > Any comments? Is this something someone else can use? Reasons why it is a bad idea? BR Matthias ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev
[ovs-dev] [RFC] [PATCH 0/6] Add port_group to prevent loopback between interfaces
When using openvswitch in combination with a hardware switch attached via dsa it may be desirable to prevent frames from being looped back to interfaces which reside on the same switch and are already processed by the switching fabric in hardware. This patch series achieves this by introducing a new parameter port_group to be used by the normal action. When the port_group is not set explicitly, it defaults to the ofp number. Ports which are in the same group will not forward a frame between each other. Matthias May (6): port_group: add db definitions port_group: add documentation entry port_group: bridge: set port_group in port config port_group: ofproto: add port_group definition port_group: ofproto-dpif: add port_group definition and init port_group: ofproto-dpif-xlate: implement port_group ofproto/ofproto-dpif-xlate.c | 53 +--- ofproto/ofproto-dpif-xlate.h | 4 ++-- ofproto/ofproto-dpif.c | 13 +-- ofproto/ofproto.h| 1 + vswitchd/bridge.c| 11 + vswitchd/vswitch.ovsschema | 9 ++-- vswitchd/vswitch.xml | 7 ++ 7 files changed, 79 insertions(+), 19 deletions(-) -- 2.11.0 ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev