Lines Matching refs:vvfl
688 struct virtchnl_vlan_filter_list *vvfl; in iavf_add_vlans() local
692 len = sizeof(*vvfl) + (count * sizeof(u16)); in iavf_add_vlans()
695 count = (IAVF_MAX_AQ_BUF_SIZE - sizeof(*vvfl)) / in iavf_add_vlans()
697 len = sizeof(*vvfl) + (count * sizeof(u16)); in iavf_add_vlans()
700 vvfl = kzalloc(len, GFP_ATOMIC); in iavf_add_vlans()
701 if (!vvfl) { in iavf_add_vlans()
706 vvfl->vsi_id = adapter->vsi_res->vsi_id; in iavf_add_vlans()
707 vvfl->num_elements = count; in iavf_add_vlans()
710 vvfl->vlan_id[i] = f->vlan.vid; in iavf_add_vlans()
723 iavf_send_pf_msg(adapter, VIRTCHNL_OP_ADD_VLAN, (u8 *)vvfl, len); in iavf_add_vlans()
724 kfree(vvfl); in iavf_add_vlans()
835 struct virtchnl_vlan_filter_list *vvfl; in iavf_del_vlans() local
839 len = sizeof(*vvfl) + (count * sizeof(u16)); in iavf_del_vlans()
842 count = (IAVF_MAX_AQ_BUF_SIZE - sizeof(*vvfl)) / in iavf_del_vlans()
844 len = sizeof(*vvfl) + (count * sizeof(u16)); in iavf_del_vlans()
847 vvfl = kzalloc(len, GFP_ATOMIC); in iavf_del_vlans()
848 if (!vvfl) { in iavf_del_vlans()
853 vvfl->vsi_id = adapter->vsi_res->vsi_id; in iavf_del_vlans()
854 vvfl->num_elements = count; in iavf_del_vlans()
857 vvfl->vlan_id[i] = f->vlan.vid; in iavf_del_vlans()
871 iavf_send_pf_msg(adapter, VIRTCHNL_OP_DEL_VLAN, (u8 *)vvfl, len); in iavf_del_vlans()
872 kfree(vvfl); in iavf_del_vlans()