diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2013-07-18 14:06:01 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2013-07-18 14:06:01 +0000 |
| commit | c232b2aebb8dbd3aaa0c284938021df0bfedcb4d (patch) | |
| tree | 53517fe73ddfbbe7695904e0147a7dc98f5c2a7e /sys/ofed/drivers | |
| parent | e32234295d6b0236abbfc8e1c3868a69166be3e5 (diff) | |
Notes
Diffstat (limited to 'sys/ofed/drivers')
| -rw-r--r-- | sys/ofed/drivers/net/mlx4/main.c | 6 |
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); |
