aboutsummaryrefslogtreecommitdiff
path: root/sys/ofed/drivers
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2013-07-18 14:06:01 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2013-07-18 14:06:01 +0000
commitc232b2aebb8dbd3aaa0c284938021df0bfedcb4d (patch)
tree53517fe73ddfbbe7695904e0147a7dc98f5c2a7e /sys/ofed/drivers
parente32234295d6b0236abbfc8e1c3868a69166be3e5 (diff)
Notes
Diffstat (limited to 'sys/ofed/drivers')
-rw-r--r--sys/ofed/drivers/net/mlx4/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/ofed/drivers/net/mlx4/main.c b/sys/ofed/drivers/net/mlx4/main.c
index 11c451aade43..b0897bfad183 100644
--- a/sys/ofed/drivers/net/mlx4/main.c
+++ b/sys/ofed/drivers/net/mlx4/main.c
@@ -476,11 +476,11 @@ static ssize_t set_port_type(struct device *dev,
int i;
int err = 0;
- if (!strcmp(buf, "ib"))
+ if (!strcmp(buf, "ib\n"))
info->tmp_type = MLX4_PORT_TYPE_IB;
- else if (!strcmp(buf, "eth"))
+ else if (!strcmp(buf, "eth\n"))
info->tmp_type = MLX4_PORT_TYPE_ETH;
- else if (!strcmp(buf, "auto"))
+ else if (!strcmp(buf, "auto\n"))
info->tmp_type = MLX4_PORT_TYPE_AUTO;
else {
mlx4_err(mdev, "%s is not supported port type\n", buf);