projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ovsdb: Rename ovsdb_file to ovsdb_log.
[openvswitch]
/
vswitchd
/
bridge.c
diff --git
a/vswitchd/bridge.c
b/vswitchd/bridge.c
index b0db9ab02a9e6dd4fc7090d175412fc7fa94040f..b1e4e165f39cf91c6ccc212f05a89afae2d262af 100644
(file)
--- a/
vswitchd/bridge.c
+++ b/
vswitchd/bridge.c
@@
-964,7
+964,7
@@
bridge_create(const char *name)
int error;
assert(!bridge_lookup(name));
int error;
assert(!bridge_lookup(name));
- br = x
calloc(1,
sizeof *br);
+ br = x
zalloc(
sizeof *br);
error = dpif_create(name, &br->dpif);
if (error == EEXIST || error == EBUSY) {
error = dpif_create(name, &br->dpif);
if (error == EEXIST || error == EBUSY) {
@@
-2838,7
+2838,7
@@
port_create(struct bridge *br, const char *name)
{
struct port *port;
{
struct port *port;
- port = x
calloc(1,
sizeof *port);
+ port = x
zalloc(
sizeof *port);
port->bridge = br;
port->port_idx = br->n_ports;
port->vlan = -1;
port->bridge = br;
port->port_idx = br->n_ports;
port->vlan = -1;
@@
-3191,7
+3191,7
@@
iface_create(struct port *port, const char *name)
{
struct iface *iface;
{
struct iface *iface;
- iface = x
calloc(1,
sizeof *iface);
+ iface = x
zalloc(
sizeof *iface);
iface->port = port;
iface->port_ifidx = port->n_ifaces;
iface->name = xstrdup(name);
iface->port = port;
iface->port_ifidx = port->n_ifaces;
iface->name = xstrdup(name);
@@
-3398,7
+3398,7
@@
mirror_create(struct bridge *br, const char *name)
VLOG_INFO("created port mirror %s on bridge %s", name, br->name);
bridge_flush(br);
VLOG_INFO("created port mirror %s on bridge %s", name, br->name);
bridge_flush(br);
- br->mirrors[i] = m = x
calloc(1,
sizeof *m);
+ br->mirrors[i] = m = x
zalloc(
sizeof *m);
m->bridge = br;
m->idx = i;
m->name = xstrdup(name);
m->bridge = br;
m->idx = i;
m->name = xstrdup(name);