Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Adding breaktrace & disabling timer migration"
[kvmfornfv.git]
/
qemu
/
hw
/
net
/
rocker
/
rocker_fp.c
diff --git
a/qemu/hw/net/rocker/rocker_fp.c
b/qemu/hw/net/rocker/rocker_fp.c
index
c693ae5
..
0149899
100644
(file)
--- a/
qemu/hw/net/rocker/rocker_fp.c
+++ b/
qemu/hw/net/rocker/rocker_fp.c
@@
-14,6
+14,7
@@
* GNU General Public License for more details.
*/
* GNU General Public License for more details.
*/
+#include "qemu/osdep.h"
#include "net/clients.h"
#include "rocker.h"
#include "net/clients.h"
#include "rocker.h"
@@
-185,6
+186,11
@@
void fp_port_set_world(FpPort *port, World *world)
port->world = world;
}
port->world = world;
}
+bool fp_port_check_world(FpPort *port, World *world)
+{
+ return port->world == world;
+}
+
bool fp_port_enabled(FpPort *port)
{
return port->enabled;
bool fp_port_enabled(FpPort *port)
{
return port->enabled;
@@
-218,7
+224,7
@@
FpPort *fp_port_alloc(Rocker *r, char *sw_name,
MACAddr *start_mac, unsigned int index,
NICPeers *peers)
{
MACAddr *start_mac, unsigned int index,
NICPeers *peers)
{
- FpPort *port = g_
malloc0(sizeof(FpPort)
);
+ FpPort *port = g_
new0(FpPort, 1
);
if (!port) {
return NULL;
if (!port) {
return NULL;