projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ofpbuf: New function ofpbuf_steal_data().
[openvswitch]
/
datapath
/
vport-patch.c
diff --git
a/datapath/vport-patch.c
b/datapath/vport-patch.c
index 1c4d2c5e2d3b90942d27ebdc2cf457f2e651390c..7cb221e4d6982e3b46f3dba0885a202847c041f1 100644
(file)
--- a/
datapath/vport-patch.c
+++ b/
datapath/vport-patch.c
@@
-11,6
+11,7
@@
#include <linux/list.h>
#include <linux/rtnetlink.h>
#include <linux/list.h>
#include <linux/rtnetlink.h>
+#include "compat.h"
#include "datapath.h"
#include "vport.h"
#include "vport-generic.h"
#include "datapath.h"
#include "vport.h"
#include "vport-generic.h"
@@
-105,7
+106,8
@@
static int patch_set_config(struct vport *vport, const struct nlattr *options,
if (err)
return err;
if (err)
return err;
- if (!a[ODP_PATCH_ATTR_PEER] || VERIFY_NUL_STRING(a[ODP_PATCH_ATTR_PEER], IFNAMSIZ - 1))
+ if (!a[ODP_PATCH_ATTR_PEER] ||
+ CHECK_NUL_STRING(a[ODP_PATCH_ATTR_PEER], IFNAMSIZ - 1))
return -EINVAL;
peer_name = nla_data(a[ODP_PATCH_ATTR_PEER]);
return -EINVAL;
peer_name = nla_data(a[ODP_PATCH_ATTR_PEER]);