Lines Matching refs:pfvf
1047 static void npc_update_rx_entry(struct rvu *rvu, struct rvu_pfvf *pfvf, in npc_update_rx_entry() argument
1069 if (pfvf->def_ucast_rule) { in npc_update_rx_entry()
1070 action = pfvf->def_ucast_rule->rx_action; in npc_update_rx_entry()
1098 static void npc_update_tx_entry(struct rvu *rvu, struct rvu_pfvf *pfvf, in npc_update_tx_entry() argument
1135 int nixlf, struct rvu_pfvf *pfvf, in npc_install_flow() argument
1140 struct rvu_npc_mcam_rule *def_ucast_rule = pfvf->def_ucast_rule; in npc_install_flow()
1162 npc_update_rx_entry(rvu, pfvf, entry, req, target, pf_set_vfs_mac); in npc_install_flow()
1164 npc_update_tx_entry(rvu, pfvf, entry, req, target); in npc_install_flow()
1244 rule->intf = pfvf->nix_tx_intf; in npc_install_flow()
1246 rule->intf = pfvf->nix_rx_intf; in npc_install_flow()
1251 pfvf->def_ucast_rule = rule; in npc_install_flow()
1267 ether_addr_copy(pfvf->default_mac, req->packet.dmac); in npc_install_flow()
1268 ether_addr_copy(pfvf->mac_addr, req->packet.dmac); in npc_install_flow()
1269 set_bit(PF_SET_VF_MAC, &pfvf->flags); in npc_install_flow()
1272 if (test_bit(PF_SET_VF_CFG, &pfvf->flags) && in npc_install_flow()
1291 struct rvu_pfvf *pfvf; in rvu_mbox_handler_npc_install_flow() local
1363 pfvf = rvu_get_pfvf(rvu, target); in rvu_mbox_handler_npc_install_flow()
1367 set_bit(PF_SET_VF_CFG, &pfvf->flags); in rvu_mbox_handler_npc_install_flow()
1372 ether_addr_copy(req->packet.dmac, pfvf->mac_addr); in rvu_mbox_handler_npc_install_flow()
1383 test_bit(NIXLF_INITIALIZED, &pfvf->flags))) in rvu_mbox_handler_npc_install_flow()
1399 ether_addr_copy(pfvf->default_mac, req->packet.dmac); in rvu_mbox_handler_npc_install_flow()
1400 ether_addr_copy(pfvf->mac_addr, req->packet.dmac); in rvu_mbox_handler_npc_install_flow()
1401 set_bit(PF_SET_VF_MAC, &pfvf->flags); in rvu_mbox_handler_npc_install_flow()
1406 err = npc_install_flow(rvu, blkaddr, target, nixlf, pfvf, in rvu_mbox_handler_npc_install_flow()
1484 struct rvu_pfvf *pfvf) in npc_update_dmac_value() argument
1493 ether_addr_copy(rule->packet.dmac, pfvf->mac_addr); in npc_update_dmac_value()
1499 ether_addr_to_u64(pfvf->mac_addr), 0, in npc_update_dmac_value()
1504 write_req.intf = pfvf->nix_rx_intf; in npc_update_dmac_value()
1515 struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, target); in npc_mcam_enable_flows() local
1526 def_ucast_rule = pfvf->def_ucast_rule; in npc_mcam_enable_flows()
1540 npc_update_dmac_value(rvu, blkaddr, rule, pfvf); in npc_mcam_enable_flows()