diff options
author | Ben Pfaff <blp@nicira.com> | 2010-12-03 13:09:26 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-12-03 14:43:38 -0800 |
commit | e779d8d90d65297473febcf82ec44c9225cc4fe3 (patch) | |
tree | e9707a52c2ffc4840dc4701c85e964895ff8b2e6 /datapath/vport-netdev.c | |
parent | 98563392dba5c82a9b952c421dec8b16c8a24023 (diff) |
datapath: Merge "struct dp_port" into "struct vport".
After the previous commit, which changed the datapath to always create and
attach a vport at the same time, and to always detach and delete a vport
at the same time, there is no longer any real distinction between a dp_port
and a vport. This commit, therefore, merges the two together to simplify
code. It might even improve performance, although I have not checked.
I wasn't sure at first whether the merged structure should be "struct
dp_port" or "struct vport". I went with the latter since the "v" prefix
sounds cool.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'datapath/vport-netdev.c')
-rw-r--r-- | datapath/vport-netdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/datapath/vport-netdev.c b/datapath/vport-netdev.c index 33fe9a51..c97e0a0c 100644 --- a/datapath/vport-netdev.c +++ b/datapath/vport-netdev.c @@ -94,7 +94,7 @@ static struct vport *netdev_create(const struct vport_parms *parms) struct netdev_vport *netdev_vport; int err; - vport = vport_alloc(sizeof(struct netdev_vport), &netdev_vport_ops); + vport = vport_alloc(sizeof(struct netdev_vport), &netdev_vport_ops, parms); if (IS_ERR(vport)) { err = PTR_ERR(vport); goto error; |