Lines Matching refs:macvlan_cnt
7627 vsi->macvlan_cnt = 0; in i40e_free_macvlan_channels()
7711 static int i40e_setup_macvlans(struct i40e_vsi *vsi, u16 macvlan_cnt, u16 qcnt, in i40e_setup_macvlans() argument
7722 if (vsi->type != I40E_VSI_MAIN || !macvlan_cnt) in i40e_setup_macvlans()
7725 num_qps = vsi->num_queue_pairs - (macvlan_cnt * qcnt); in i40e_setup_macvlans()
7779 for (i = 0; i < macvlan_cnt; i++) { in i40e_setup_macvlans()
7794 vsi->macvlan_cnt++; in i40e_setup_macvlans()
7815 u16 q_per_macvlan = 0, macvlan_cnt = 0, vectors; in i40e_fwd_add() local
7840 if (!vsi->macvlan_cnt) { in i40e_fwd_add()
7852 macvlan_cnt = (vectors - 32) / 4; in i40e_fwd_add()
7856 macvlan_cnt = (vectors - 16) / 2; in i40e_fwd_add()
7860 macvlan_cnt = vectors - 16; in i40e_fwd_add()
7864 macvlan_cnt = vectors - 8; in i40e_fwd_add()
7868 macvlan_cnt = vectors - 1; in i40e_fwd_add()
7871 if (macvlan_cnt == 0) in i40e_fwd_add()
7878 ret = i40e_setup_macvlans(vsi, macvlan_cnt, q_per_macvlan, in i40e_fwd_add()
7887 vsi->macvlan_cnt); in i40e_fwd_add()
12826 if (!(features & NETIF_F_HW_L2FW_DOFFLOAD) && vsi->macvlan_cnt) in i40e_set_features()