diff options
| author | Ben Pfaff <blp@nicira.com> | 2010-12-29 15:04:36 -0800 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2011-01-27 21:08:36 -0800 |
| commit | 51d4d59822785c1044cd96e6c73427347e0154c2 (patch) | |
| tree | 74fb676253032d2fd008a15e818e37a0057b4aae /include | |
| parent | b0ec0f279ea4537cb421eba807254aba8f1971f2 (diff) | |
| download | openvswitch-51d4d59822785c1044cd96e6c73427347e0154c2.tar.gz | |
datapath: Make it possible to query vports by name regardless of datapath.
Until now it has only been possible to query a vport if you know what
datapath it is on. This doesn't really make sense, so this commit removes
that restriction. It is a little bigger than one might naturally expect
because locking changes are required.
This also allows us to get rid of the ETHTOOL_GDRVINFO kluge that has
bothered me for a long time. The next commit does that.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/openvswitch/datapath-protocol.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/openvswitch/datapath-protocol.h b/include/openvswitch/datapath-protocol.h index dd717c09d..25f8e1324 100644 --- a/include/openvswitch/datapath-protocol.h +++ b/include/openvswitch/datapath-protocol.h @@ -182,7 +182,7 @@ struct odp_port { char devname[16]; /* IFNAMSIZ */ char type[VPORT_TYPE_SIZE]; uint16_t port; - uint16_t reserved1; + uint16_t dp_idx; uint32_t reserved2; __aligned_u64 config[VPORT_CONFIG_SIZE / 8]; /* type-specific */ }; |
