From b43e2d7de63349370396e8a38059fe9249394d14 Mon Sep 17 00:00:00 2001 From: Navdeep Parhar Date: Sat, 2 Mar 2019 04:39:59 +0000 Subject: cxgbev(4): Enable 32b port capabilities in the VF driver. MFC after: 1 week Sponsored by: Chelsio Communications --- sys/dev/cxgbe/t4_vf.c | 6 ++++++ 1 file changed, 6 insertions(+) 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, ¶m, &val); + /* Enable 32b port caps if the firmware supports it. */ + param = FW_PARAM_PFVF(PORT_CAPS32); + val = 1; + if (t4vf_set_params(sc, 1, ¶m, &val) == 0) + sc->params.port_caps32 = 1; + return (0); } -- cgit v1.2.3