/* On the SFC9000 family each port is associated with 1 PCI physical *function(PF)handledbysfcandaconfigurablenumberofvirtual *functions(VFs)thatmaybehandledbysomeotherdriver,oftenin *aVMguest.ThequeuepointerregistersaremappedinbothPFand *VFBARssuchthatan8KregionprovidesaccesstoasingleRX,TX *andeventqueue(collectivelyaVirtualInterface,VIorVNIC). * *ThePFhasaccesstoall1024VIswhileVFsaremappedtoVIs *accordingtoVI_BASEandVI_SCALE:VFihasaccesstoVIsnumbered *inrange[VI_BASE+i<<VI_SCALE,VI_BASE+i+1<<VI_SCALE). *ThenumberofVIsandtheVI_SCALEvalueareconfigurablebutmust *beestablishedatboottimebyfirmware.
*/
/* Maximum VI_SCALE parameter supported by Siena */ #define EFX_VI_SCALE_MAX 6 /* Base VI to use for SR-IOV. Must be aligned to (1 << EFX_VI_SCALE_MAX), *sothisisthesmallestallowedvalue.
*/ #define EFX_VI_BASE 128U /* Maximum number of VFs allowed */ #define EFX_VF_COUNT_MAX 127 /* Limit EVQs on VFs to be only 8k to reduce buffer table reservation */ #define EFX_MAX_VF_EVQ_SIZE 8192UL /* The number of buffer table entries reserved for each VI on a VF */ #define EFX_VF_BUFTBL_PER_VI \
((EFX_MAX_VF_EVQ_SIZE + 2 * EFX_MAX_DMAQ_SIZE) * \ sizeof(efx_qword_t) / EFX_BUF_SIZE)
int efx_siena_sriov_configure(struct efx_nic *efx, int num_vfs); int efx_siena_sriov_init(struct efx_nic *efx); void efx_siena_sriov_fini(struct efx_nic *efx); int efx_siena_sriov_mac_address_changed(struct efx_nic *efx); bool efx_siena_sriov_wanted(struct efx_nic *efx); void efx_siena_sriov_reset(struct efx_nic *efx); void efx_siena_sriov_flr(struct efx_nic *efx, unsigned flr);
int efx_siena_sriov_set_vf_mac(struct efx_nic *efx, int vf, const u8 *mac); int efx_siena_sriov_set_vf_vlan(struct efx_nic *efx, int vf,
u16 vlan, u8 qos); int efx_siena_sriov_set_vf_spoofchk(struct efx_nic *efx, int vf, bool spoofchk); int efx_siena_sriov_get_vf_config(struct efx_nic *efx, int vf, struct ifla_vf_info *ivf);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.