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
ofproto: Change string sets in interface from svec to sset.
[sliver-openvswitch.git]
/
ofproto
/
ofproto.c
diff --git
a/ofproto/ofproto.c
b/ofproto/ofproto.c
index
8b8b28d
..
ebdbc68
100644
(file)
--- a/
ofproto/ofproto.c
+++ b/
ofproto/ofproto.c
@@
-57,7
+57,6
@@
#include "shash.h"
#include "sset.h"
#include "stream-ssl.h"
#include "shash.h"
#include "sset.h"
#include "stream-ssl.h"
-#include "svec.h"
#include "tag.h"
#include "timer.h"
#include "timeval.h"
#include "tag.h"
#include "timer.h"
#include "timeval.h"
@@
-544,7
+543,7
@@
ofproto_set_desc(struct ofproto *p,
}
int
}
int
-ofproto_set_snoops(struct ofproto *ofproto, const struct s
vec
*snoops)
+ofproto_set_snoops(struct ofproto *ofproto, const struct s
set
*snoops)
{
return connmgr_set_snoops(ofproto->connmgr, snoops);
}
{
return connmgr_set_snoops(ofproto->connmgr, snoops);
}
@@
-553,7
+552,7
@@
int
ofproto_set_netflow(struct ofproto *ofproto,
const struct netflow_options *nf_options)
{
ofproto_set_netflow(struct ofproto *ofproto,
const struct netflow_options *nf_options)
{
- if (nf_options &&
nf_options->collectors.n
) {
+ if (nf_options &&
!sset_is_empty(&nf_options->collectors)
) {
if (!ofproto->netflow) {
ofproto->netflow = netflow_create();
}
if (!ofproto->netflow) {
ofproto->netflow = netflow_create();
}
@@
-668,8
+667,14
@@
ofproto_get_fail_mode(const struct ofproto *p)
return connmgr_get_fail_mode(p->connmgr);
}
return connmgr_get_fail_mode(p->connmgr);
}
+bool
+ofproto_has_snoops(const struct ofproto *ofproto)
+{
+ return connmgr_has_snoops(ofproto->connmgr);
+}
+
void
void
-ofproto_get_snoops(const struct ofproto *ofproto, struct s
vec
*snoops)
+ofproto_get_snoops(const struct ofproto *ofproto, struct s
set
*snoops)
{
connmgr_get_snoops(ofproto->connmgr, snoops);
}
{
connmgr_get_snoops(ofproto->connmgr, snoops);
}