summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNavdeep Parhar <np@FreeBSD.org>2019-03-02 04:39:59 +0000
committerNavdeep Parhar <np@FreeBSD.org>2019-03-02 04:39:59 +0000
commitb43e2d7de63349370396e8a38059fe9249394d14 (patch)
treea8e0c681cb31e682779b3cc46a1ece61e811a096
parentea7796a9ae6bb4f4fc035007d04b2da60655d86c (diff)
Notes
-rw-r--r--sys/dev/cxgbe/t4_vf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/cxgbe/t4_vf.c b/sys/dev/cxgbe/t4_vf.c
index 4d4f3736b88ec..48328029623f8 100644
--- a/sys/dev/cxgbe/t4_vf.c
+++ b/sys/dev/cxgbe/t4_vf.c
@@ -295,6 +295,12 @@ set_params__post_init(struct adapter *sc)
val = 1;
(void)t4vf_set_params(sc, 1, &param, &val);
+ /* Enable 32b port caps if the firmware supports it. */
+ param = FW_PARAM_PFVF(PORT_CAPS32);
+ val = 1;
+ if (t4vf_set_params(sc, 1, &param, &val) == 0)
+ sc->params.port_caps32 = 1;
+
return (0);
}