Date: Sat, 24 Jan 2015 22:43:49 +0000 From: "rstone (Ryan Stone)" <phabric-noreply@FreeBSD.org> To: freebsd-net@freebsd.org Subject: [Differential] [Request, 1, 330 lines] D1640: Refactor network stack state separate from VSI state Message-ID: <differential-rev-PHID-DREV-32lqhrvi7zevm74mesyx-req@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?differential-rev-PHID-DREV-32lqhrvi7zevm74mesyx-req>