struct iavf_info *vf = IAVF_DEV_PRIVATE_TO_VF(adapter);
int ret;
- if (vf->promisc_unicast_enabled)
- return 0;
-
ret = iavf_config_promisc(adapter, true, vf->promisc_multicast_enabled);
if (!ret)
vf->promisc_unicast_enabled = true;
struct iavf_info *vf = IAVF_DEV_PRIVATE_TO_VF(adapter);
int ret;
- if (!vf->promisc_unicast_enabled)
- return 0;
-
ret = iavf_config_promisc(adapter, false,
vf->promisc_multicast_enabled);
if (!ret)
struct iavf_info *vf = IAVF_DEV_PRIVATE_TO_VF(adapter);
int ret;
- if (vf->promisc_multicast_enabled)
- return 0;
-
ret = iavf_config_promisc(adapter, vf->promisc_unicast_enabled, true);
if (!ret)
vf->promisc_multicast_enabled = true;
struct iavf_info *vf = IAVF_DEV_PRIVATE_TO_VF(adapter);
int ret;
- if (!vf->promisc_multicast_enabled)
- return 0;
-
ret = iavf_config_promisc(adapter, vf->promisc_unicast_enabled, false);
if (!ret)
vf->promisc_multicast_enabled = false;