git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git://openvswitch.org/openvswitch
[sliver-openvswitch.git]
/
lib
/
stp.c
diff --git
a/lib/stp.c
b/lib/stp.c
index
3d293b6
..
7bff624
100644
(file)
--- a/
lib/stp.c
+++ b/
lib/stp.c
@@
-23,7
+23,6
@@
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#include <assert.h>
#include <inttypes.h>
#include <stdlib.h>
#include "byte-order.h"
#include <inttypes.h>
#include <stdlib.h>
#include "byte-order.h"
@@
-481,7
+480,7
@@
stp_check_and_reset_fdb_flush(struct stp *stp)
struct stp_port *
stp_get_port(struct stp *stp, int port_no)
{
struct stp_port *
stp_get_port(struct stp *stp, int port_no)
{
- assert(port_no >= 0 && port_no < ARRAY_SIZE(stp->ports));
+
ovs_
assert(port_no >= 0 && port_no < ARRAY_SIZE(stp->ports));
return &stp->ports[port_no];
}
return &stp->ports[port_no];
}
@@
-669,7
+668,7
@@
int
stp_port_no(const struct stp_port *p)
{
struct stp *stp = p->stp;
stp_port_no(const struct stp_port *p)
{
struct stp *stp = p->stp;
- assert(p >= stp->ports && p < &stp->ports[ARRAY_SIZE(stp->ports)]);
+
ovs_
assert(p >= stp->ports && p < &stp->ports[ARRAY_SIZE(stp->ports)]);
return p - stp->ports;
}
return p - stp->ports;
}
@@
-1228,7
+1227,7
@@
stp_hold_timer_expiry(struct stp_port *p)
static void
stp_initialize_port(struct stp_port *p, enum stp_state state)
{
static void
stp_initialize_port(struct stp_port *p, enum stp_state state)
{
- assert(state & (STP_DISABLED | STP_BLOCKING));
+
ovs_
assert(state & (STP_DISABLED | STP_BLOCKING));
stp_become_designated_port(p);
stp_set_port_state(p, state);
p->topology_change_ack = false;
stp_become_designated_port(p);
stp_set_port_state(p, state);
p->topology_change_ack = false;