The VLAN rule is lost when VM starts or the AVF driver (iavf.ko) is
reloaded. So it is necessary to add this rule again.
Signed-off-by: Michal Swiatkowski <michal.swiatkowski@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
        vsi->hw_base_vector += 1;
 
        /* Check if port VLAN exist before, and restore it accordingly */
-       if (vf->port_vlan_id)
+       if (vf->port_vlan_id) {
                ice_vsi_manage_pvid(vsi, vf->port_vlan_id, true);
+               ice_vsi_add_vlan(vsi, vf->port_vlan_id & ICE_VLAN_M);
+       }
 
        eth_broadcast_addr(broadcast);