]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make SGE parameter handling more VF-friendly.
authorjhb <jhb@FreeBSD.org>
Mon, 15 Aug 2016 17:40:05 +0000 (17:40 +0000)
committerjhb <jhb@FreeBSD.org>
Mon, 15 Aug 2016 17:40:05 +0000 (17:40 +0000)
commitd1c7b4cb81fe903f4c98b6e87b55b10f27989fab
treed4129d697e62951710dc3cb26b991970b234fad7
parentb939919c597f1a18e522e0b081c633c606a7e141
Make SGE parameter handling more VF-friendly.

Add fields to hold the SGE control register and free list buffer sizes to
the sge_params structure.  Populate these new fields in
t4_init_sge_params() for PF devices and change t4_read_chip_settings() to
pull these values out of the params structure instead of reading
registers directly.  This will permit t4_read_chip_settings() to be reused
for VF devices which cannot read SGE registers directly.

While here, move the call to t4_init_sge_params() to
get_params__post_init().  The VF driver will populate the SGE parameters
structure via a different method before calling t4_read_chip_settings().

Reviewed by: np
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D7476
sys/dev/cxgbe/common/common.h
sys/dev/cxgbe/common/t4_hw.c
sys/dev/cxgbe/t4_main.c
sys/dev/cxgbe/t4_sge.c