pfvf = rvu_get_pfvf(rvu, pcifunc); /* If the pcifunc is not initialized then nothing to do. * This same function will be called again via rvu_switch_update_rules * after pcifunc is initialized.
*/ if (!test_bit(NIXLF_INITIALIZED, &pfvf->flags)) return0;
pfvf = rvu_get_pfvf(rvu, pcifunc); /* If the pcifunc is not initialized then nothing to do. * This same function will be called again via rvu_switch_update_rules * after pcifunc is initialized.
*/ if (!test_bit(NIXLF_INITIALIZED, &pfvf->flags)) return0;
for (pf = 1; pf < hw->total_pfs; pf++) { if (!is_pf_cgxmapped(rvu, pf)) continue;
pcifunc = rvu_make_pcifunc(rvu->pdev, pf, 0); /* rvu_get_nix_blkaddr sets up the corresponding NIX block * address and NIX RX and TX interfaces for a pcifunc. * Generally it is called during attach call of a pcifunc but it * is called here since we are pre-installing rules before * nixlfs are attached
*/
rvu_get_nix_blkaddr(rvu, pcifunc);
/* MCAM RX rule for a PF/VF already exists as default unicast * rules installed by AF. Hence change the channel in those * rules to ignore channel so that packets with the required * DMAC received from LBK(by other PF/VFs in system) or from * external world (from wire) are accepted.
*/
err = rvu_switch_install_rx_rule(rvu, pcifunc, 0x0); if (err) {
dev_err(rvu->dev, "RX rule for PF%d failed(%d)\n",
pf, err); return err;
}
if (rvu->rep_mode) {
rvu_rep_pf_init(rvu);
ret = rvu_rep_install_mcam_rules(rvu);
} else {
ret = rvu_switch_install_rules(rvu);
} if (ret) goto uninstall_rules;
¤ 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.0.11Bemerkung:
(vorverarbeitet am 2026-06-07)
¤
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.