Page MenuHomeFreeBSD

Adjust t4_port_init() to work with VF devices.
ClosedPublic

Authored by jhb on Aug 15 2016, 8:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 24, 7:49 AM
Unknown Object (File)
Sep 20 2024, 2:44 AM
Unknown Object (File)
Sep 18 2024, 9:14 AM
Unknown Object (File)
Sep 18 2024, 7:10 AM
Unknown Object (File)
Sep 17 2024, 11:59 PM
Unknown Object (File)
Sep 10 2024, 7:25 PM
Unknown Object (File)
Sep 6 2024, 3:50 AM
Unknown Object (File)
Sep 5 2024, 3:18 PM
Subscribers

Details

Summary

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.

Test Plan
  • tested with both VF and PF devices in the VF branch

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb retitled this revision from to Adjust t4_port_init() to work with VF devices..
jhb updated this object.
jhb edited the test plan for this revision. (Show Details)
jhb added a reviewer: np.
sys/dev/cxgbe/common/t4_hw.c
7945 ↗(On Diff #19306)

p->tx_chan is being used before it has been initialized.

sys/dev/cxgbe/common/t4_hw.c
7945 ↗(On Diff #19306)

Oops, I'll revert that back to 'j'. I had originally moved this below t4_alloc_vi() but had to move it back and this is leftover from that.

np edited edge metadata.

pi->tx_chan/j was the only comment I had, rest looks good.

This revision is now accepted and ready to land.Aug 17 2016, 12:06 AM
This revision was automatically updated to reflect the committed changes.