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)
Mar 3 2024, 7:32 AM
Unknown Object (File)
Mar 3 2024, 7:07 AM
Unknown Object (File)
Mar 3 2024, 4:35 AM
Unknown Object (File)
Dec 26 2023, 7:03 AM
Unknown Object (File)
Dec 20 2023, 2:02 AM
Unknown Object (File)
Oct 31 2023, 1:57 PM
Unknown Object (File)
Aug 31 2023, 3:15 PM
Unknown Object (File)
Jul 31 2023, 4:51 AM
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 Passed
Unit
No Test Coverage
Build Status
Buildable 4805
Build 4861: arc lint + arc unit

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

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

sys/dev/cxgbe/common/t4_hw.c
7945

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.