aboutsummaryrefslogtreecommitdiff
path: root/datapath/dp_dev.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2009-07-06 11:02:57 -0700
committerBen Pfaff <blp@nicira.com>2009-07-06 11:02:57 -0700
commita165b67e53a835c623c13de4a0df5f4d7bc9db25 (patch)
tree4bc3b5b5f4bcecdd046f455e12f2284301348237 /datapath/dp_dev.c
parent632d136c7b108cd3d39a2e64fe6230e23977caf8 (diff)
dpif-linux: Don't allow arbitrary internal ports to identify a datapath.
The userspace tools were allowing the name of any internal port to be used to identify a datapath. This, however, makes it hard to enumerate all the names by which a datapath can be known, and it was never documented or intentional behavior, so this commit disables it.
Diffstat (limited to 'datapath/dp_dev.c')
-rw-r--r--datapath/dp_dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/datapath/dp_dev.c b/datapath/dp_dev.c
index 34a102a3..848a27b2 100644
--- a/datapath/dp_dev.c
+++ b/datapath/dp_dev.c
@@ -124,7 +124,7 @@ static void dp_getinfo(struct net_device *netdev, struct ethtool_drvinfo *info)
{
struct dp_dev *dp_dev = dp_dev_priv(netdev);
strcpy(info->driver, "openvswitch");
- sprintf(info->bus_info, "%d", dp_dev->dp->dp_idx);
+ sprintf(info->bus_info, "%d.%d", dp_dev->dp->dp_idx, dp_dev->port_no);
}
static struct ethtool_ops dp_ethtool_ops = {