svn commit: r344719 - head/sys/dev/cxgbe
Navdeep Parhar
np at FreeBSD.org
Sat Mar 2 04:40:00 UTC 2019
Author: np
Date: Sat Mar 2 04:39:59 2019
New Revision: 344719
URL: https://svnweb.freebsd.org/changeset/base/344719
Log:
cxgbev(4): Enable 32b port capabilities in the VF driver.
MFC after: 1 week
Sponsored by: Chelsio Communications
Modified:
head/sys/dev/cxgbe/t4_vf.c
Modified: head/sys/dev/cxgbe/t4_vf.c
==============================================================================
--- head/sys/dev/cxgbe/t4_vf.c Sat Mar 2 04:02:11 2019 (r344718)
+++ head/sys/dev/cxgbe/t4_vf.c Sat Mar 2 04:39:59 2019 (r344719)
@@ -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);
}
More information about the svn-src-head
mailing list