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
F147720946: D7511.id19306.diff
Fri, Mar 13, 4:57 AM
Unknown Object (File)
Thu, Mar 12, 4:49 AM
Unknown Object (File)
Tue, Feb 17, 9:12 AM
Unknown Object (File)
Mon, Feb 16, 1:32 PM
Unknown Object (File)
Feb 9 2026, 9:44 PM
Unknown Object (File)
Jan 29 2026, 10:06 AM
Unknown Object (File)
Jan 27 2026, 4:25 AM
Unknown Object (File)
Jan 16 2026, 10:58 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.