Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 369261
b: refs/heads/master
c: 5d96335
h: refs/heads/master
i:
  369259: 2825584
v: v3
  • Loading branch information
Thomas Graf authored and Jesse Gross committed Apr 2, 2013
1 parent 968fd55 commit 1b8c232
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 22e3880a76bb9a0c4fa5c8fefdc8697a36a4dae1
refs/heads/master: 5d9633523f27dfcaac2d6052c7b3278311f77949
14 changes: 8 additions & 6 deletions trunk/net/openvswitch/vport.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,17 +301,19 @@ void ovs_vport_get_stats(struct vport *vport, struct ovs_vport_stats *stats)
int ovs_vport_get_options(const struct vport *vport, struct sk_buff *skb)
{
struct nlattr *nla;
int err;

if (!vport->ops->get_options)
return 0;

nla = nla_nest_start(skb, OVS_VPORT_ATTR_OPTIONS);
if (!nla)
return -EMSGSIZE;

if (vport->ops->get_options) {
int err = vport->ops->get_options(vport, skb);
if (err) {
nla_nest_cancel(skb, nla);
return err;
}
err = vport->ops->get_options(vport, skb);
if (err) {
nla_nest_cancel(skb, nla);
return err;
}

nla_nest_end(skb, nla);
Expand Down

0 comments on commit 1b8c232

Please sign in to comment.