Page MenuHomeFreeBSD

cxgbe: handle vlan PF restrictions
ClosedPublic

Authored by kp on Fri, May 31, 7:53 PM.
Tags
None
Referenced Files
F86267618: D45428.diff
Mon, Jun 17, 9:45 PM
F86265440: D45428.diff
Mon, Jun 17, 9:00 PM
Restricted File
Mon, Jun 17, 4:47 PM
Unknown Object (File)
Wed, Jun 12, 5:05 PM
Unknown Object (File)
Sun, Jun 2, 9:59 PM
Subscribers

Details

Summary

MFC after: 2 weeks
Sponsored by: Orange Business Services

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kp requested review of this revision.Fri, May 31, 7:53 PM

This PF change looks correct but there needs to be matching change in the VF driver that reads the VLAN settings and acts on it.

This revision is now accepted and ready to land.Wed, Jun 12, 8:07 PM
sys/dev/cxgbe/t4_iov.c
380

A valid PF needs to be provided here. I had to make changes to this revision when I tried it together with D45402 to get the PF side of things to work. Then I had to make some changes to the cxgbe VF driver to read the VLAN configuration during attach. I have a patch for that as well.

sys/dev/cxgbe/t4_iov.c
380

I'm not quite following on what needs to be changed here.
Should we be passing adap->pf instead of vfnum + 1 or something else?

{F86253090} I uploaded an attachment with all the changes I had to make to get this working. Please incorporate it into this revision.

sys/dev/cxgbe/t4_iov.c
380

See attached patch. The pf number of the iov VF, not the adapter vf needs to be passed onto the hw.c routine, which also needs to set the proper pmask using the pf passed in.

This revision was automatically updated to reflect the committed changes.