1b9d93948a
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 |
||
---|---|---|
.. | ||
i40e_adminq_cmd.h | ||
i40e_adminq.c | ||
i40e_adminq.h | ||
i40e_alloc.h | ||
i40e_common.c | ||
i40e_dcb.c | ||
i40e_dcb.h | ||
i40e_devids.h | ||
i40e_hmc.c | ||
i40e_hmc.h | ||
i40e_lan_hmc.c | ||
i40e_lan_hmc.h | ||
i40e_nvm.c | ||
i40e_osdep.c | ||
i40e_osdep.h | ||
i40e_prototype.h | ||
i40e_register.h | ||
i40e_status.h | ||
i40e_type.h | ||
iavf_vc.c | ||
iavf.h | ||
if_iavf.c | ||
if_ixl.c | ||
ixl_debug.h | ||
ixl_iw_int.h | ||
ixl_iw.c | ||
ixl_iw.h | ||
ixl_pf_i2c.c | ||
ixl_pf_iov.c | ||
ixl_pf_iov.h | ||
ixl_pf_main.c | ||
ixl_pf_qmgr.c | ||
ixl_pf_qmgr.h | ||
ixl_pf.h | ||
ixl_txrx.c | ||
ixl.h | ||
virtchnl.h |