[Differential] [Request, 1, 330 lines] D1640: Refactor network stack state separate from VSI state

rstone (Ryan Stone) phabric-noreply at FreeBSD.org
Sat Jan 24 22:43:50 UTC 2015


rstone created this revision.
rstone added a reviewer: jfvogel.
rstone added a subscriber: freebsd-net.

REVISION 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.

REVISION DETAIL
  https://reviews.freebsd.org/D1640

AFFECTED FILES
  sys/dev/ixl/if_ixl.c
  sys/dev/ixl/if_ixlv.c
  sys/dev/ixl/ixl.h
  sys/dev/ixl/ixl_pf.h
  sys/dev/ixl/ixl_txrx.c
  sys/dev/ixl/ixlv.h
  sys/dev/ixl/ixlvc.c

To: rstone, jfvogel
Cc: freebsd-net


More information about the freebsd-net mailing list