freebsd-nq/sys/dev/ixl
Eric Joyner 1b9d93948a iflib: expose the Rx mbuf buffer size to drivers
From Jake:
iflib_fl_setup calculates a suitable buffer size for the Rx mbufs based
on the isc_max_frame_size value that drivers setup. This calculation is
repeated by drivers when programming their hardware with the size of
each Rx buffer.

This can lead to a mismatch where the iflib mbuf size is different from
the expected size of the buffer as programmed by the hardware. This can
lead to unexpected results.

If iflib ever wants to support mbuf sizes larger than one page, every
driver must be updated to account for the new possible buffer sizes.

Fix this by calculating the mbuf size prior to calling IFDI_INIT, and
adding the iflib_get_rx_mbuf_sz function which will expose this value to
drivers, so that they do not repeat the same calculation.

Submitted by:	Jacob Keller <jacob.e.keller@intel.com>
Reviewed by:	shurd@, erj@
MFC after:	1 week
Sponsored by:	Intel Corporation
Differential Revision:	https://reviews.freebsd.org/D19489
2019-03-19 17:59:56 +00:00
..
i40e_adminq_cmd.h ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
i40e_adminq.c ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
i40e_adminq.h ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
i40e_alloc.h ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
i40e_common.c ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
i40e_dcb.c ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
i40e_dcb.h ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
i40e_devids.h ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
i40e_hmc.c ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
i40e_hmc.h ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
i40e_lan_hmc.c ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
i40e_lan_hmc.h ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
i40e_nvm.c ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
i40e_osdep.c ixl/iavf(4): Change ixlv to iavf and update it to use iflib(9) 2018-10-12 22:40:54 +00:00
i40e_osdep.h ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
i40e_prototype.h ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
i40e_register.h ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
i40e_status.h ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
i40e_type.h ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
iavf_vc.c ixl/iavf(4): Update remaining references of "num_queues" to "num_rx_queues" 2018-11-01 17:29:14 +00:00
iavf.h iavf(4): Finish rename/rebrand internally 2018-10-15 17:23:41 +00:00
if_iavf.c iflib: expose the Rx mbuf buffer size to drivers 2019-03-19 17:59:56 +00:00
if_ixl.c ixl: Fix panic caused by bug exposed by r344062 2019-02-14 18:02:37 +00:00
ixl_debug.h iavf(4): Finish rename/rebrand internally 2018-10-15 17:23:41 +00:00
ixl_iw_int.h ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
ixl_iw.c - Stop iflib(4) from leaking MSI messages on detachment by calling 2019-01-30 13:21:26 +00:00
ixl_iw.h ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
ixl_pf_i2c.c ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00
ixl_pf_iov.c iavf(4): Finish rename/rebrand internally 2018-10-15 17:23:41 +00:00
ixl_pf_iov.h ixl/iavf(4): Change ixlv to iavf and update it to use iflib(9) 2018-10-12 22:40:54 +00:00
ixl_pf_main.c iflib: expose the Rx mbuf buffer size to drivers 2019-03-19 17:59:56 +00:00
ixl_pf_qmgr.c ixl/iavf(4): Change ixlv to iavf and update it to use iflib(9) 2018-10-12 22:40:54 +00:00
ixl_pf_qmgr.h ixl/iavf(4): Change ixlv to iavf and update it to use iflib(9) 2018-10-12 22:40:54 +00:00
ixl_pf.h ixl: Fix panic caused by bug exposed by r344062 2019-02-14 18:02:37 +00:00
ixl_txrx.c intel iflib drivers: correct initialization of tx_cidx_processed 2019-01-24 01:03:00 +00:00
ixl.h ixl/iavf(4): Fix TSO offloads when TXCSUM is disabled 2018-11-08 19:10:43 +00:00
virtchnl.h ixl(4): Update version number to 2.0.0-k 2018-06-18 20:32:53 +00:00