diff options
author | Ethan Jackson <ethan@nicira.com> | 2012-12-16 17:08:50 -0800 |
---|---|---|
committer | Ethan Jackson <ethan@nicira.com> | 2013-01-28 19:09:58 -0800 |
commit | de281153654c7fa9e41f579076941ebb9dfeec4d (patch) | |
tree | 900f40a948081d95e07c9d4f2808419af9549195 /lib/netdev-vport.c | |
parent | 48cecbdc39ccf29e7ea98a348cd2f4664272500b (diff) |
netdev: New function netdev_get_dpif_port().
In future patches, a netdev's datapath port name may not
necessarily be the same as its device name. This patch prepares for
this by making the distinction in the netdev and dpif layers.
Signed-off-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'lib/netdev-vport.c')
-rw-r--r-- | lib/netdev-vport.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/netdev-vport.c b/lib/netdev-vport.c index 94f1110c..95cffd2a 100644 --- a/lib/netdev-vport.c +++ b/lib/netdev-vport.c @@ -151,6 +151,12 @@ netdev_vport_is_patch(const struct netdev *netdev) return class->get_config == get_patch_config; } +const char * +netdev_vport_get_dpif_port(const struct netdev *netdev) +{ + return netdev_get_name(netdev); +} + static uint32_t get_u32_or_zero(const struct nlattr *a) { |