Apart from the indentation in commit message:

Acked-by: Jarno Rajahalme <jrajaha...@nicira.com>

On Nov 6, 2014, at 7:31 AM, Daniele Venturino <daniele.ventur...@m3s.it> wrote:

>        Set rcdv_tcn and return OTHER_INFO when a
>        TOPOLOGY_CHANGE_NOTIFICATION_BPDU is received.
> 
> Signed-off-by: Daniele Venturino <daniele.ventur...@m3s.it>
> ---
> 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..13abec0 100644
> --- a/lib/rstp-state-machines.c
> +++ b/lib/rstp-state-machines.c
> @@ -1029,6 +1029,14 @@ rcv_info(struct rstp_port *p)
>     role =
>         (p->received_bpdu_buffer.flags & ROLE_FLAG_MASK) >> ROLE_FLAG_SHIFT;
> 
> +    /* 802.1D-2004 does not report this behaviour.
> +     * 802.1Q-2008 says set rcvdTcn. */
> +    if (p->received_bpdu_buffer.bpdu_type ==
> +            TOPOLOGY_CHANGE_NOTIFICATION_BPDU) {
> +        p->rcvd_tcn = true;
> +        return OTHER_INFO;
> +    }
> +
>     /* Returns SuperiorDesignatedInfo if:
>      * a) The received message conveys a Designated Port Role, and
>      *  1) The message priority is superior (17.6) to the Port.s port priority
> -- 
> 1.8.1.2
> 

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to