aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bnxt
diff options
context:
space:
mode:
authorSlava Shwartsman <slavash@nvidia.com>2026-05-13 14:54:51 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2026-06-17 18:23:14 +0000
commite5d8b775bbf6f378a591211e373859ec44f74149 (patch)
treefeb9cc6d39b4830d0b7e3fb7a8327800faa4505f /sys/dev/bnxt
parent51f313dbc7a28a7bd2013c205261f29f115eb0a7 (diff)
Diffstat (limited to 'sys/dev/bnxt')
-rw-r--r--sys/dev/bnxt/bnxt_re/ib_verbs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/bnxt/bnxt_re/ib_verbs.c b/sys/dev/bnxt/bnxt_re/ib_verbs.c
index 32899abab9ff..9e6887a7c6e1 100644
--- a/sys/dev/bnxt/bnxt_re/ib_verbs.c
+++ b/sys/dev/bnxt/bnxt_re/ib_verbs.c
@@ -241,7 +241,7 @@ int bnxt_re_modify_device(struct ib_device *ibdev,
return 0;
}
-static void __to_ib_speed_width(u32 espeed, u8 lanes, u8 *speed, u8 *width)
+static void __to_ib_speed_width(u32 espeed, u8 lanes, u16 *speed, u8 *width)
{
if (!lanes) {
switch (espeed) {
@@ -342,7 +342,8 @@ int bnxt_re_query_port(struct ib_device *ibdev, u8 port_num,
{
struct bnxt_re_dev *rdev = to_bnxt_re_dev(ibdev, ibdev);
struct bnxt_qplib_dev_attr *dev_attr = rdev->dev_attr;
- u8 active_speed = 0, active_width = 0;
+ u16 active_speed = 0;
+ u8 active_width = 0;
dev_dbg(rdev_to_dev(rdev), "QUERY PORT with port_num 0x%x\n", port_num);
memset(port_attr, 0, sizeof(*port_attr));