Re: [ovs-dev] [PATCH v6 00/18] Rapid Spanning Tree Protocol

2014-09-03 Thread Daniele Venturino
ke to mantain compare_rstp_priority_vector() as it is, since it is IMHO simpler to compare it with the standard for correctness. Also in lib/rstp-state-machines.c, it's probably too drastic to call OVS_NOT_REACHED() when a BPDU is going to be transmitted on a port with role disabled. diff -

Re: [ovs-dev] [PATCH v6 02/18] lib/stp, rstp: Add unit more unit tests.

2014-09-09 Thread Daniele Venturino
Acked-by: Daniele Venturino 2014-08-21 1:57 GMT+02:00 Jarno Rajahalme : > Existing STP and RSTP test cases only test the protocols with test > utilities. These tests test them as part of OVS using the > netdev-dummy device. > > Signed-off-by: Jarno Rajahalme > --- > o

Re: [ovs-dev] [PATCH v6 04/18] lib/rstp: Better debug messages, style fixes.

2014-09-09 Thread Daniele Venturino
Acked-by: Daniele Venturino 2014-08-21 1:57 GMT+02:00 Jarno Rajahalme : > Signed-off-by: Jarno Rajahalme > --- > lib/rstp-state-machines.c | 22 -- > ofproto/ofproto-dpif.c| 11 ++- > vswitchd/bridge.c | 10 +- > 3

Re: [ovs-dev] [PATCH v6 03/18] lib/stp: Some debugging support.

2014-09-09 Thread Daniele Venturino
Acked-by: Daniele Venturino 2014-08-21 1:57 GMT+02:00 Jarno Rajahalme : > Set the stp port name before enabling it, so that debugging messages > have the name to print out. > > Do not treat the first state initialization as a state change. Zero > is not a valid state, so changi

Re: [ovs-dev] [PATCH v6 05/18] vswitch.xml: Fix RSTP configuration documentation.

2014-09-09 Thread Daniele Venturino
Acked-by: Daniele Venturino 2014-08-21 1:57 GMT+02:00 Jarno Rajahalme : > Move port's configuration options where they belong, add typing, and > correct errors. > > Signed-off-by: Jarno Rajahalme > --- > vswitchd/vswitch.xml | 130 > +

Re: [ovs-dev] [PATCH v6 06/18] lib/rstp: Remove unused struct rstp_priority_vector4

2014-09-09 Thread Daniele Venturino
Acked-by: Daniele Venturino 2014-08-21 1:57 GMT+02:00 Jarno Rajahalme : > Signed-off-by: Jarno Rajahalme > --- > lib/rstp-common.h |7 --- > 1 file changed, 7 deletions(-) > > diff --git a/lib/rstp-common.h b/lib/rstp-common.h > index 6bc04eb..a67115b 100644 >

Re: [ovs-dev] [PATCH v6 07/18] lib/rstp: Coding style fixes.

2014-09-09 Thread Daniele Venturino
Acked-by: Daniele Venturino 2014-08-21 1:57 GMT+02:00 Jarno Rajahalme : > Signed-off-by: Jarno Rajahalme > --- > lib/rstp.c | 132 > ++-- > lib/rstp.h | 12 +++--- > 2 files changed, 81 insertions(+), 63 deletions(-

Re: [ovs-dev] [PATCH v6 10/18] lib/rstp: Refactor port initialization.

2014-09-09 Thread Daniele Venturino
Acked-by: Daniele Venturino 2014-08-21 1:57 GMT+02:00 Jarno Rajahalme : > Prior to this patch the default values for ports were set in three > different places. This refactors them all to one helper function. > > Signed-off-by: Jarno Rajahalme > --- > lib/rstp.c

Re: [ovs-dev] [PATCH v6 09/18] lib/rstp: Refactor port number allocation.

2014-09-09 Thread Daniele Venturino
Acked-by: Daniele Venturino 2014-08-21 1:57 GMT+02:00 Jarno Rajahalme : > Port number allocation was O(N^3), this refactoring will make it O(N^2). > > Signed-off-by: Jarno Rajahalme > --- > lib/rstp.c | 48 +--- > 1 file chan

Re: [ovs-dev] [PATCH v6 08/18] lib/rstp: Refactor priority vector recalculation.

2014-09-09 Thread Daniele Venturino
Acked-by: Daniele Venturino 2014-08-21 1:57 GMT+02:00 Jarno Rajahalme : > Signed-off-by: Jarno Rajahalme > --- > lib/rstp.c | 54 ++ > 1 file changed, 22 insertions(+), 32 deletions(-) > > diff --git a/lib/rstp.c b/

Re: [ovs-dev] [PATCH v6 11/18] lib/rstp: CodingStyle changes.

2014-09-09 Thread Daniele Venturino
Acked-by: Daniele Venturino 2014-08-21 1:57 GMT+02:00 Jarno Rajahalme : > Signed-off-by: Jarno Rajahalme > --- > lib/rstp.c | 39 ++- > ofproto/ofproto-dpif.c |2 +- > 2 files changed, 27 insertions(+), 14 deletions(-) >

Re: [ovs-dev] [PATCH v6 12/18] lib/rstp: Inline trivial predicate functions.

2014-09-09 Thread Daniele Venturino
Acked-by: Daniele Venturino 2014-08-21 1:57 GMT+02:00 Jarno Rajahalme : > Signed-off-by: Jarno Rajahalme > --- > lib/rstp.c | 34 -- > lib/rstp.h | 42 +++--- > 2 files changed, 39 insertions(+), 37 deleti

Re: [ovs-dev] [PATCH v6 13/18] lib/rstp: More robust thread safety.

2014-09-09 Thread Daniele Venturino
Acked-by: Daniele Venturino 2014-08-21 1:57 GMT+02:00 Jarno Rajahalme : > Current code expects there to be a single thread that is responsible > for creating rstp and creating and deleting rstp_port objects. rstp > objects are also deleted from other threads, as managed by reference &

Re: [ovs-dev] [PATCH v6 14/18] lib/rstp: Remove lock recursion.

2014-09-09 Thread Daniele Venturino
Acked-by: Daniele Venturino 2014-08-21 1:57 GMT+02:00 Jarno Rajahalme : > Change the RSTP send_bpdu interface so that a recursive mutex is not > needed. > > Signed-off-by: Jarno Rajahalme > --- > lib/rstp-common.h |2 +- > lib/rstp-state-machines.c |

Re: [ovs-dev] [PATCH v6 15/18] lib/rstp: CodingStyle fixes.

2014-09-09 Thread Daniele Venturino
Acked-by: Daniele Venturino 2014-08-21 1:57 GMT+02:00 Jarno Rajahalme : > Signed-off-by: Jarno Rajahalme > --- > lib/rstp-state-machines.c | 398 > + > 1 file changed, 182 insertions(+), 216 deletions(-) > > diff --git a/lib/rs

Re: [ovs-dev] [PATCH v6 16/18] lib/rstp: Simplify priority vector comparison.

2014-09-09 Thread Daniele Venturino
Acked-by: Daniele Venturino 2014-08-21 1:57 GMT+02:00 Jarno Rajahalme : > Testing for sameness first makes the logic simpler to follow. > > Signed-off-by: Jarno Rajahalme > --- > lib/rstp-state-machines.c | 57 > +++-- > 1 file c

Re: [ovs-dev] [PATCH v6 17/18] lib/rstp: Eliminate ports_count.

2014-09-09 Thread Daniele Venturino
Acked-by: Daniele Venturino 2014-08-21 1:57 GMT+02:00 Jarno Rajahalme : > It was only used to guard against unintialized list. > > Signed-off-by: Jarno Rajahalme > --- > lib/rstp-common.h |1 - > lib/rstp-state

Re: [ovs-dev] [PATCH v6 18/18] lib/rstp: Use hmap instead of a list for ports.

2014-09-09 Thread Daniele Venturino
Acked-by: Daniele Venturino 2014-08-21 1:57 GMT+02:00 Jarno Rajahalme : > Finding a given port is faster. > > Signed-off-by: Jarno Rajahalme > --- > lib/rstp-common.h |5 +++-- > lib/rstp-state-machines.c | 30 +++--- > lib/rstp.c

Re: [ovs-dev] [PATCH v6 00/18] Rapid Spanning Tree Protocol

2014-09-09 Thread Daniele Venturino
the protocol before merging it to the master. Anyway, if you still want to merge it and mark it as experimental is still fine by me, since I'll be able to rebase my patches on your version. On Sep 3, 2014, at 7:44 AM, Daniele Venturino > wrote: > I looked and applied the patches. They’

Re: [ovs-dev] [PATCH v6 00/18] Rapid Spanning Tree Protocol

2014-09-09 Thread Daniele Venturino
Il giorno 09/set/2014, alle ore 20:07, Jarno Rajahalme ha scritto: > > On Sep 9, 2014, at 3:53 AM, Daniele Venturino > wrote: > >> >> Thanks for the review! >> It would be nice to have an Acked-by from you to the series. However, I plan >> to squash

[ovs-dev] [PATCH] lib/rstp: Use RSTP_OPER_P2P_MAC_STATE_ENABLED instead of 1.

2014-09-10 Thread Daniele Venturino
Signed-off by: Daniele Venturino --- lib/rstp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rstp.c b/lib/rstp.c index 5914a1d..b213b44 100644 --- a/lib/rstp.c +++ b/lib/rstp.c @@ -951,7 +951,8 @@ rstp_initialize_port_defaults__(struct rstp_port *p

[ovs-dev] [PATCH] lib/rstp-common: Remove double spaces.

2014-09-10 Thread Daniele Venturino
Signed-off by: Daniele Venturino --- lib/rstp-common.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/rstp-common.h b/lib/rstp-common.h index 4e0d398..587f88c 100644 --- a/lib/rstp-common.h +++ b/lib/rstp-common.h @@ -225,19 +225,19 @@ enum

[ovs-dev] [PATCH] lib/rstp: Use ovs_refcount_unref_relaxed.

2014-09-10 Thread Daniele Venturino
See commit 24f8381214966e90819bf4a9ecabf076cbfc1b08. Signed-off by: Daniele Venturino --- lib/rstp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rstp.c b/lib/rstp.c index b213b44..f2f1dce 100644 --- a/lib/rstp.c +++ b/lib/rstp.c @@ -168,7 +168,7 @@ void rstp_unref

[ovs-dev] [PATCH] lib/rstp: Make rstp-disabled port forward stp bpdu packets.

2014-09-10 Thread Daniele Venturino
See commit bacdb85ad82f981697245eefb40a3b360cfe379b. Signed-off by: Daniele Venturino --- lib/rstp.h | 42 +++--- ofproto/ofproto-dpif-xlate.c | 6 +++--- 2 files changed, 42 insertions(+), 6 deletions(-) diff --git a/lib/rstp.h b/lib

Re: [ovs-dev] [PATCH] lib/rstp: Make rstp-disabled port forward stp bpdu packets.

2014-09-11 Thread Daniele Venturino
es. “git format-patch” does that automatically. > > Jarno > I’ll send the next group of patches as a series. > On Sep 10, 2014, at 1:28 AM, Daniele Venturino > wrote: > >> See commit bacdb85ad82f981697245eefb40a3b360cfe379b. >> >> Signed-off by: Daniele V

Re: [ovs-dev] [PATCH v6 00/18] Rapid Spanning Tree Protocol

2014-09-11 Thread Daniele Venturino
Il giorno 09/set/2014, alle ore 22:04, Daniele Venturino ha scritto: > > Il giorno 09/set/2014, alle ore 20:07, Jarno Rajahalme > ha scritto: > >> >> On Sep 9, 2014, at 3:53 AM, Daniele Venturino >> wrote: >> >>> >>> Thanks for the

[ovs-dev] Data plane traffic detection

2016-05-11 Thread Daniele Venturino
Hi, which is the best entry point to identify traffic among hosts connected to a OVS switch and not pertaining the control plane when the OVS switch is managed by a SDN controller? ​ Best regards, Daniele Venturino ___ dev mailing list dev

Re: [ovs-dev] Data plane traffic detection

2016-05-13 Thread Daniele Venturino
interested in it. Regards, Daniele Venturino > Il giorno 11 mag 2016, alle ore 16:18, Daniele Venturino > ha scritto: > > Hi, > which is the best entry point to identify traffic among hosts connected to a > OVS switch and not pertaining the control plane when the OVS switch is

Re: [ovs-dev] [PATCH v3] Rapid Spanning Protocol Implementation (IEEE 802.1D) + functional tests

2014-04-30 Thread Daniele Venturino
> > +/* Bridge State Machine. */ > > +/* [17.28] Port Role Selection state machine. */ > > + > > +void > > +updt_role_disabled_tree(struct rstp * r) > Is ther a specfc resn to contrct the first word in the nam of this functn? We try to strictly follow the naming used in the IEEE 802.1D-2004 standa

Re: [ovs-dev] [PATCH v3] Rapid Spanning Protocol Implementation (IEEE 802.1D) + functional tests

2014-06-05 Thread Daniele Venturino
itations under the License. > + */ > + > +/* > + * Rapid Spanning Tree Protocol (IEEE 802.1D-2004) public interface (header > + * file). > + * > + * Authors: > + * Martino Fornasa > + * Daniele Venturino > + * > + * References to IEEE 802.1D-2004 standard

Re: [ovs-dev] [PATCH v4] Rapid Spanning Tree Protocol Implementation (IEEE 802.1D) + functional tests.

2014-06-12 Thread Daniele Venturino
We noticed there was a problem on frame forwarding on blocked ports. We're sending an updated version (v5) of the patch. Il giorno 05/giu/2014, alle ore 16:50, Daniele Venturino ha scritto: > This is an updated version of the patch after Jarno review. > Modifications since v3

Re: [ovs-dev] [PATCH v6 00/18] Rapid Spanning Tree Protocol

2014-09-19 Thread Daniele Venturino
Il giorno 11/set/2014, alle ore 19:09, Jarno Rajahalme ha scritto: > > On Sep 11, 2014, at 5:49 AM, Daniele Venturino > wrote: > >> >> Il giorno 09/set/2014, alle ore 22:04, Daniele Venturino >> ha scritto: >> >>> >>> Il giorno

Re: [ovs-dev] [PATCH v6 00/18] Rapid Spanning Tree Protocol

2014-09-25 Thread Daniele Venturino
After some testing, here’s my ack. Acked-by: Daniele Venturino ha scritto: > > On Sep 19, 2014, at 8:26 AM, Daniele Venturino > wrote: > >> >> Il giorno 11/set/2014, alle ore 19:09, Jarno Rajahalme >> ha scritto: >> >>> >>> On S

[ovs-dev] [PATCH 08/17] rstp-state-machines: fix TCN reception.

2014-11-06 Thread Daniele Venturino
Set rcdv_tcn and return OTHER_INFO when a TOPOLOGY_CHANGE_NOTIFICATION_BPDU is received. Signed-off-by: Daniele Venturino --- lib/rstp-state-machines.c | 8 1 file changed, 8 insertions(+) diff --git a/lib/rstp-state-machines.c b/lib/rstp-state-machines.c index 5398f12

[ovs-dev] [PATCH 12/17] rstp: Refactor rstp_port_set_administrative_bridge_port__().

2014-11-06 Thread Daniele Venturino
Invoke move_rstp__() in rstp_port_set_administrative_bridge_port__() if port is not initializing. Signed-off-by: Daniele Venturino --- lib/rstp.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/lib/rstp.c b/lib/rstp.c index 1ab4938..fd42a7d

[ovs-dev] [PATCH 00/17] RSTP validation tests.

2014-11-06 Thread Daniele Venturino
Hi. We tested the RSTP implementation against the IXIA IxANVL validation software. This allowed us to fix some small bugs, and the implementation now passes such tests with success! Please find attached the patch series. It appears that patches 12 and 17 break the "RSTP dummy" test, while all oth

[ovs-dev] [PATCH 07/17] rstp-state-machines: Rename ALTERNATE_AGREED state in ALTERNATE_AGREED_EXEC.

2014-11-06 Thread Daniele Venturino
All other similar port_role_transition_sm states are named like this. Signed-off-by: Daniele Venturino --- lib/rstp-common.h | 2 +- lib/rstp-state-machines.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/rstp-common.h b/lib/rstp-common.h index

[ovs-dev] [PATCH 06/17] rstp-state-machines: Fix updt_roles_tree().

2014-11-06 Thread Daniele Venturino
If the DesignatedBridgeID Bridge Address component is equal to that component of the Bridge's own bridge priority vector skip to the next port. Signed-off-by: Daniele Venturino --- lib/rstp-state-machines.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[ovs-dev] [PATCH 05/17] rstp-state-machines: Fix topology_change_sm transition transition.

2014-11-06 Thread Daniele Venturino
Signed-off-by: Daniele Venturino --- lib/rstp-state-machines.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rstp-state-machines.c b/lib/rstp-state-machines.c index 1912d7e..5c03385 100644 --- a/lib/rstp-state-machines.c +++ b/lib/rstp-state-machines.c @@ -1948,7

[ovs-dev] [PATCH 03/17] rstp-state-machines: Fix reception of BPDUs conveying an unknown port role.

2014-11-06 Thread Daniele Venturino
Signed-off-by: Daniele Venturino --- lib/rstp-state-machines.c | 12 1 file changed, 12 insertions(+) diff --git a/lib/rstp-state-machines.c b/lib/rstp-state-machines.c index e03f720..ade2d61 100644 --- a/lib/rstp-state-machines.c +++ b/lib/rstp-state-machines.c @@ -117,6 +117,18

[ovs-dev] [PATCH 01/17] rstp: Show some useful rstp port fields.

2014-11-06 Thread Daniele Venturino
designated_bridge_id, designated_port_id and designated_path_cost are now displayed in rstp_status when using 'ovs-vsctl list port'. Signed-off-by: Daniele Venturino --- lib/rstp.c | 10 -- lib/rstp.h | 6 -- ofproto/ofproto-d

[ovs-dev] [PATCH 04/17] rstp-state-machines: Fix compare_rstp_priority_vector().

2014-11-06 Thread Daniele Venturino
The bridge_port_id is never conveyed in Configuration Messages, but is used as a tie-breaker within a Bridge. This patch extends the comparison to this fifth field in a rstp_priority_vector. Signed-off-by: Daniele Venturino --- lib/rstp-state-machines.c | 18

[ovs-dev] [PATCH 10/17] rstp: disable learning and forwarding in STP/RSTP disabled state.

2014-11-06 Thread Daniele Venturino
) treats a Port as no longer active when it becomes an Alternate, Backup, or Disabled Port and stops learning from received frames. Signed-off-by: Daniele Venturino --- lib/rstp.h | 12 +++- lib/stp.c| 12 ofproto/ofproto-dpif

[ovs-dev] [PATCH 09/17] rstp: Invoke updt_roles_tree__() in max_age and forward_delay setters.

2014-11-06 Thread Daniele Venturino
Signed-off-by: Daniele Venturino --- lib/rstp.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/rstp.c b/lib/rstp.c index e3007e2..55c43c0 100644 --- a/lib/rstp.c +++ b/lib/rstp.c @@ -523,8 +523,9 @@ static void rstp_set_bridge_max_age__(struct rstp *rstp

[ovs-dev] [PATCH 15/17] rstp: Fix global transitions.

2014-11-06 Thread Daniele Venturino
When the condition associated with a global transition is met, it supersedes all other exit conditions including UCT. Signed-off-by: Daniele Venturino --- lib/rstp-state-machines.c | 139 +++--- 1 file changed, 130 insertions(+), 9 deletions

[ovs-dev] [PATCH 02/17] rstp: add admin-point-to-point and admin-port-state setters.

2014-11-06 Thread Daniele Venturino
Signed-off-by: Daniele Venturino --- lib/rstp-common.h| 6 -- lib/rstp.c | 31 ++- lib/rstp.h | 9 - ofproto/ofproto-dpif.c | 4 +++- ofproto/ofproto.h| 2 ++ utilities/ovs-vsctl.8.in | 9

[ovs-dev] [PATCH 17/17] rstp: refactor RSTP setters.

2014-11-06 Thread Daniele Venturino
With this patch setters invoke procedures only if values have changed. Also rstp_set_bridge_address__() keeps the existing priority in the bridge_identifier. Signed-off-by: Daniele Venturino --- lib/rstp.c | 80 -- 1

[ovs-dev] [PATCH 11/17] rstp: Refactor rstp_check_and_reset_fdb_flush().

2014-11-06 Thread Daniele Venturino
With this commit, RSTP is able to flush from the MAC learning table entries pertaining to a single port. Before this commit the whole table was flushed every time a port requested flushing actions. Signed-off-by: Daniele Venturino --- lib/rstp.c | 52

[ovs-dev] [PATCH 16/17] rstp-state-machines: fix proposal reception behaviour.

2014-11-06 Thread Daniele Venturino
802.1q-2008 standard. Signed-off-by: Daniele Venturino --- lib/rstp-state-machines.c | 27 +-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/lib/rstp-state-machines.c b/lib/rstp-state-machines.c index dc25b00..31909a5 100644 --- a/lib/rstp-state-machines.c

[ovs-dev] [PATCH 13/17] rstp-state-machines: fix rcv_info().

2014-11-06 Thread Daniele Venturino
A Config BPDU always conveys a Designated Port Role. Signed-off-by: Daniele Venturino --- lib/rstp-state-machines.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/rstp-state-machines.c b/lib/rstp-state-machines.c index 13abec0..516093f 100644 --- a

[ovs-dev] [PATCH 14/17] rstp: shift learned MAC addresses to new Root port.

2014-11-06 Thread Daniele Venturino
recovering from some component failures. Signed-off-by: Daniele Venturino --- lib/rstp-common.h | 4 lib/rstp-state-machines.c | 21 +++ lib/rstp.c| 51 ++- lib/rstp.h| 10 ++ ofproto

Re: [ovs-dev] [PATCH 03/17] rstp-state-machines: Fix reception of BPDUs conveying an unknown port role.

2014-11-14 Thread Daniele Venturino
;bpdu_type == RAPID_SPANNING_TREE_BPDU) { > +uint8_t role = (bpdu->flags & ROLE_FLAG_MASK) >> ROLE_FLAG_SHIFT; > + > +if (role == PORT_UNKN) { > +bpdu->bpdu_type = CONFIGURATION_BPDU; > + } > } > + > if (validate_received_b

Re: [ovs-dev] [PATCH 14/17] rstp: shift learned MAC addresses to new Root port.

2014-11-14 Thread Daniele Venturino
between two ports of the same bridge. Feel free to suggest any improvement on this. Daniele 2014-11-14 1:11 GMT+01:00 Jarno Rajahalme : > Daniele, > > See comments inline. > > Thanks! > > Jarno > > On Nov 6, 2014, at 7:31 AM, Daniele Venturino > wrote: > > &

Re: [ovs-dev] [PATCH 09/17] rstp: Invoke updt_roles_tree__() in max_age and forward_delay setters.

2014-11-14 Thread Daniele Venturino
> This patch needs a proper commit message, e.g., why the change is needed? > > Thanks, > > Jarno > > On Nov 6, 2014, at 7:31 AM, Daniele Venturino > wrote: > > > Signed-off-by: Daniele Venturino > > --- > > lib/rstp.c | 14 ++ > >

Re: [ovs-dev] [PATCH 15/17] rstp: Fix global transitions.

2014-11-14 Thread Daniele Venturino
I'm sending a v2 of this patch with all the requested modifications. Regards, Daniele 2014-11-14 1:17 GMT+01:00 Jarno Rajahalme : > Daniele, > > See my comments below, > > Thanks! > > Jarno > > On Nov 6, 2014, at 7:31 AM, Daniele Venturino > wrote: >

Re: [ovs-dev] [PATCH 12/17] rstp: Refactor rstp_port_set_administrative_bridge_port__().

2014-11-14 Thread Daniele Venturino
> > +# give time for RSTP to move initially > + > +ovs-appctl time/warp 1000 > +ovs-appctl time/warp 1000 > + > OVS_WAIT_UNTIL([test `cat ovs-vswitchd.log | FILTER_STP_TOPOLOGY | wc -l` > -ge 4]) > AT_CHECK([cat ovs-vswitchd.log | FILTER_STP_TOPOLOGY], [0], [dnl >

Re: [ovs-dev] [PATCH 05/17] rstp-state-machines: Fix topology_change_sm transition transition.

2014-11-14 Thread Daniele Venturino
-2004 standard." Daniele 2014-11-14 0:23 GMT+01:00 Jarno Rajahalme : > This patch needs a proper commit message. Explain what was wrong, and why > the fix is correct. > > Regards, > > Jarno > > On Nov 6, 2014, at 7:31 AM, Daniele Venturino > wrote: &

Re: [ovs-dev] [PATCH 02/17] rstp: add admin-point-to-point and admin-port-state setters.

2014-11-14 Thread Daniele Venturino
More comments inline below. > > I have a working copy with the white-space changes, so if you provide the > commit message and the answer to the AUTO question below, I can accept and > push this patch. > > Thanks! > > Jarno > > On Nov 6, 2014, at 7:31

[ovs-dev] [PATCH v2 15/17] rstp: Fix global transitions.

2014-11-14 Thread Daniele Venturino
global condition BEGIN supersedes all other global conditions, and once asserted remains asserted until all state blocks have executed to the point that variable assignments and other consequences of their execution remain unchanged. Signed-off-by: Daniele Venturino --- lib/rstp-state-machines.c

Re: [ovs-dev] [PATCH 11/17] rstp: Refactor rstp_check_and_reset_fdb_flush().

2014-11-14 Thread Daniele Venturino
ajahalme : > Small nits below, otherwise: > > Acked-by: Jarno Rajahalme > > On Nov 6, 2014, at 7:31 AM, Daniele Venturino > wrote: > > > With this commit, RSTP is able to flush from the MAC learning table > > entries pertaining to a single port. B

Re: [ovs-dev] [PATCH 02/17] rstp: add admin-point-to-point and admin-port-state setters.

2014-11-14 Thread Daniele Venturino
2014-11-14 19:46 GMT+01:00 Jarno Rajahalme : > > On Nov 14, 2014, at 9:36 AM, Daniele Venturino > wrote: > > A possible commit message: > "Admin-port-state is the Administrative Bridge Port state variable defined > in the 802.1D-2004 standard. > It can be set to i

Re: [ovs-dev] [PATCH 02/17] rstp: add admin-point-to-point and admin-port-state setters.

2014-11-14 Thread Daniele Venturino
is RSTP_ADMIN_P2P_MAC_FORCE_FALSE and it sets oper_point_to_point_mac to RSTP_OPER_P2P_MAC_STATE_DISABLED if admin_point_to_point_mac is RSTP_ADMIN_P2P_MAC_AUTO (for now, later on it will be the correct auto procedure). Regards, Daniele 2014-11-14 23:30 GMT+01:00 Jarno Rajahalme : > > On

Re: [ovs-dev] [PATCH 02/17] rstp: add admin-point-to-point and admin-port-state setters.

2014-11-15 Thread Daniele Venturino
2014-11-15 0:40 GMT+01:00 Jarno Rajahalme : > > On Nov 14, 2014, at 2:50 PM, Daniele Venturino > wrote: > > You're right, it's used only in rstp_port_set_admin_point_to_point_mac__() > where it's set, if the old value change. The action on oper_point_to_poin

Re: [ovs-dev] [PATCH 14/17] rstp: shift learned MAC addresses to new Root port.

2014-11-17 Thread Daniele Venturino
ofproto->rstp); > } since bundle_move() expects two “struct ofbundle" as arguments. Regards, Daniele > Il giorno 14/nov/2014, alle ore 22:56, Jarno Rajahalme > ha scritto: > > > On Nov 14, 2014, at 9:19 AM, Daniele Venturino <mailto:daniele.ventur...@m

Re: [ovs-dev] [PATCH 14/17] rstp: shift learned MAC addresses to new Root port.

2014-11-19 Thread Daniele Venturino
> Thanks for testing, pushed to master. > > Jarno > > On Nov 17, 2014, at 9:13 AM, Daniele Venturino <mailto:daniele.ventur...@m3s.it>> wrote: > >>> The problem must be that the port number and the hash value get out of >>> sync, i.e., when the port numb

[ovs-dev] [PATCH 1/1] ofproto-dpif: fix bundle_move() call in rstp_run().

2014-11-19 Thread Daniele Venturino
bundle_move() expects two “struct ofbundle” as arguments. Signed-off-by: Daniele Venturino --- ofproto/ofproto-dpif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 8778ed2..3f8768d 100644 --- a/ofproto/ofproto

Re: [ovs-dev] [PATCH 17/17] rstp: refactor RSTP setters.

2014-11-20 Thread Daniele Venturino
be good to have a short statement in NEWS about the conformance > testing, what do you think? > > Jarno > > > On Nov 13, 2014, at 4:21 PM, Jarno Rajahalme wrote: > >> Acked-by: Jarno Rajahalme - >> >> Thanks! >> >> Jarno >

[ovs-dev] [PATCH 2/2] utilities: Update man page regarding the behaviour of admin point to point MAC parameter.

2014-11-20 Thread Daniele Venturino
Update man page explaining that the auto detection of point to point LANs is not implemented. Signed-off by: Martino Fornasa --- utilities/ovs-vsctl.8.in | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/utilities/ovs-vsctl.8.in b/utilities/ovs-vsctl.8.in index ddb8410..

[ovs-dev] [PATCH 1/2] NEWS: Information about Ixia ANVL testing.

2014-11-20 Thread Daniele Venturino
Update the NEWS section with some information about testing. Signed-off by: Martino Fornasa --- NEWS | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 40a0db0..ea8c6c0 100644 --- a/NEWS +++ b/NEWS @@ -41,9 +41,9 @@ Post-v2.3.0 - Support for travis-ci

Re: [ovs-dev] [PATCH] lib/rstp: Make rstp-disabled port forward stp bpdu packets.

2014-11-20 Thread Daniele Venturino
Sep 11, 2014, at 2:08 AM, Daniele Venturino <mailto:daniele.ventur...@m3s.it>> wrote: > >> >> Il giorno 10/set/2014, alle ore 18:54, Jarno Rajahalme >> mailto:jrajaha...@nicira.com>> ha scritto: >> >>> Daniele, >>> >>> S

Re: [ovs-dev] [PATCH 2/3] rstp: fix memory leak reported by valgrind

2016-01-07 Thread Daniele Venturino
Maybe we could destroy the hmap with the mutex still locked. Anyway, looks good to me. Acked-by: Daniele Venturino mailto:daniele.ventur...@m3s.it>> > Il giorno 05 gen 2016, alle ore 22:38, William Tu ha > scritto: > > test case: 1650 RSTP Single bridge, call stacks &

[ovs-dev] Flows deletion when a port becomes inactive

2016-01-28 Thread Daniele Venturino
Hi, I was running some tests on Mininet and Open vSwitch and I noticed something weird. I'm using few bridges configured with RSTP enabled and no controller. I then generate some traffic and I'm able to see the flows installed on each bridge through the command *ovs-ofctl dump-flows br0* If I dis

Re: [ovs-dev] Flows deletion when a port becomes inactive

2016-01-28 Thread Daniele Venturino
It looks like our test setup is having some problems. I'll look into it. For now, ignore this... Best Regards, Daniele Il 28 gen 2016 5:11 PM, "Daniele Venturino" ha scritto: > Hi, > I was running some tests on Mininet and Open vSwitch and I noticed > something weir

Re: [ovs-dev] RSTP dead store

2015-04-16 Thread Daniele Venturino
I agree with Jarno, that assignment is not necessary. Daniele 2015-04-16 22:52 GMT+02:00 Ben Pfaff : > On Thu, Apr 16, 2015 at 12:54:44PM -0700, Jarno Rajahalme wrote: > > > > > On Apr 16, 2015, at 11:13 AM, Ben Pfaff wrote: > > > > > > Kevin Lo ran the LLVM scan-build tool and turned up a dead

Re: [ovs-dev] [PATCH] lib/rstp: Remove a dead store.

2015-04-16 Thread Daniele Venturino
Acked-by: Daniele Venturino 2015-04-16 21:58 GMT+02:00 Jarno Rajahalme : > Signed-off-by: Jarno Rajahalme > --- > lib/rstp-state-machines.c |1 - > 1 file changed, 1 deletion(-) > > diff --git a/lib/rstp-state-machines.c b/lib/rstp-state-machines.c > index d254ca3..7

[ovs-dev] [PATCH] utilities: Wrong command syntax in ovs-vsctl manpage.

2014-01-08 Thread Daniele Venturino
which is not allowed to be empty It seems correct to use the command: ovs-vsctl set Bridge br0 stp_enable=false Signed-off by: Daniele Venturino --- utilities/ovs-vsctl.8.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/ovs-vsctl.8.in b/utilities/ovs-vsctl.

Re: [ovs-dev] [PATCH v3] Rapid Spanning Protocol Implementation (IEEE 802.1D) + functional tests

2014-03-31 Thread Daniele Venturino
This is the diff between RSTP patch v3 and v2 (the one sent on February 24th). --- diff --git a/v1/lib/rstp.c b/v2/lib/rstp.c index 2725707..d226967 100644 --- a/v1/lib/rstp.c +++ b/v2/lib/rstp.c @@ -1076,6 +1076,20 @@ rstp_port_get_aux(struct rstp_port *p) return aux; } +/* Returns true i

Re: [ovs-dev] [PATCH] lib/rstp: Make rstp-disabled port forward stp bpdu packets.

2014-11-24 Thread Daniele Venturino
lling sites use these functions, as some of > them changed in the last series that was merged recently. > > Jarno > > On Nov 20, 2014, at 11:35 AM, Daniele Venturino <mailto:daniele.ventur...@m3s.it>> wrote: > >> We didn’t merge this patch ba

Re: [ovs-dev] [PATCH 02/17] rstp: add admin-point-to-point and admin-port-state setters.

2014-11-24 Thread Daniele Venturino
I’m sending a patch to make more clear the effect of the admin_point_to_point_mac value on the oper_point_to_point_mac value. Does Open vSwitch detect if a port is connected to a point-to-point LAN? Daniele > Il giorno 15/nov/2014, alle ore 14:34, Daniele Venturino > ha s

[ovs-dev] [PATCH] rstp: add update_port_oper_point_to_point__().

2014-11-24 Thread Daniele Venturino
With this patch, the effect of the admin_point_to_point_mac value on the oper_point_to_point_mac value is more clear. Signed-off-by: Daniele Venturino --- lib/rstp.c | 55 --- 1 file changed, 32 insertions(+), 23 deletions(-) diff --git a/lib

Re: [ovs-dev] [PATCH 2/8] vswitch: Document columns that had been previously overlooked.

2015-02-25 Thread Daniele Venturino
Hi, > +STP and RSTP are mutually exclusive. If both are enabled, RSTP > +will be used. I think this might not be true. If it has not been changed, when STP or RSTP is enabled it should not be possible to enable the other one on the same bridge. This is done in bridge_c

Re: [ovs-dev] [PATCH 2/8] vswitch: Document columns that had been previously overlooked.

2015-03-05 Thread Daniele Venturino
some modifications are needed I think. Daniele 2015-03-05 18:02 GMT+01:00 Ben Pfaff : > On Wed, Feb 25, 2015 at 04:00:36PM +0100, Daniele Venturino wrote: > > > +STP and RSTP are mutually exclusive. If both are > enabled, RSTP > > > +will be used

Re: [ovs-dev] [PATCH] rstp: add update_port_oper_point_to_point__().

2015-03-05 Thread Daniele Venturino
Is this patch still pending? It doesn't change much, but it clarifies the correlation between admin_point_to_point_mac and oper_point_to_point_mac. Daniele 2014-12-11 20:59 GMT+01:00 Ben Pfaff : > On Mon, Nov 24, 2014 at 03:42:48PM +0100, Daniele Venturino wrote: > > With this pat

Re: [ovs-dev] [PATCH] lib/rstp: Make rstp-disabled port forward stp bpdu packets.

2015-03-05 Thread Daniele Venturino
I don't recall if we arrived at a decision about this. Daniele 2014-11-24 15:02 GMT+01:00 Daniele Venturino : > > commit bacdb85ad82f981697245eefb40a3b360cfe379b >> Author: Alex Wang >> Date: Tue Jul 15 18:52:19 2014 -0700 >> stp: Make stp-disabled

Re: [ovs-dev] [PATCH] bridge: Enable RSTP if both STP and RSTP are enabled.

2015-03-06 Thread Daniele Venturino
Looks good to me. I also did some fast tests and the behaviour is now correct. I saw that this has already been merged, but here's my ack Acked-by: Daniele Venturino > Il giorno 06/mar/2015, alle ore 05:21, Ben Pfaff ha scritto: > > On Thu, Mar 05, 2015 at 05:33:57PM -0800

[ovs-dev] [PATCH] AUTHORS: Add Carlo Andreotti

2015-12-11 Thread Daniele Venturino
Carlo was involved in the testing and validation processes of the Rapid Spanning Tree Implementation. I also updated the Copyright string in some files. Signed-off by: Daniele Venturino --- AUTHORS | 1 + lib/rstp-common.h | 3 ++- lib/rstp-state-machines.c | 3