Page MenuHomeFreeBSD

Refactor network stack state separate from VSI state
ClosedPublic

Authored by rstone on Jan 24 2015, 10:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Feb 1, 5:46 PM
Unknown Object (File)
Jan 15 2017, 1:55 AM
Unknown Object (File)
Jan 15 2017, 1:49 AM
Unknown Object (File)
Oct 24 2016, 2:28 AM
Unknown Object (File)
Sep 8 2016, 8:41 AM
Unknown Object (File)
Sep 7 2016, 2:28 PM
Unknown Object (File)
Jul 1 2016, 11:54 AM
Unknown Object (File)
Jun 14 2016, 1:48 PM
Subscribers

Details

Reviewers
jfv
Summary

Currently the ixl driver has a struct ixl_vsi that it uses to
track both network stack interface state (e.g. the ifnet) and
Virtual Station Interface (VSI) state in the hardware. However,
when the ixl driver is acting as a PF device for SR-IOV, we will
allocate VSIs for the VFs, but won't have any network stack state
for those VSIs in the ixl driver itself (instead the ixlv driver
will attach to the VF device, which has its own state independent
of the PF driver).

Fix this by introducing a new structure, ixl_ifx, which will be
used to track network stack state. Refactor both the ixl and
ixlv drivers to move their network stack state into this new
structure, and retain the ixl_vsi structure to track only
information related to details of the VSI allocated from the hw.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

rstone retitled this revision from to Refactor network stack state separate from VSI state.
rstone edited the test plan for this revision. (Show Details)
rstone added a reviewer: jfv.
rstone updated this object.
rstone added a subscriber: Unknown Object (MLST).

Remove the ifx/vsi separation and just refactor out the necessary functions

jfv edited edge metadata.

Thanks Ryan, am happier with this.

This revision is now accepted and ready to land.Jan 28 2015, 1:15 AM