]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 304482: Adjust t4_port_init() to work with VF devices.
authorjhb <jhb@FreeBSD.org>
Tue, 4 Oct 2016 22:32:43 +0000 (22:32 +0000)
committerjhb <jhb@FreeBSD.org>
Tue, 4 Oct 2016 22:32:43 +0000 (22:32 +0000)
commite4468cf021fe9d8ee65964af8e27b34e96be916a
treeb61c3f3e9cd453d5e2fa71728eb84440843b3d2c
parent4a4d1712207afa156fec1ff8f44ed543519190b6
MFC 304482: Adjust t4_port_init() to work with VF devices.

Specifically, the FW_PORT_CMD may or may not work for a VF (the PF
driver can choose whether or not to permit access to this command),
so don't attempt to fetch port information on a VF if permission is
denied by the PF.
sys/dev/cxgbe/common/t4_hw.c