Commit f1db020b authored by Grzegorz Szczurek's avatar Grzegorz Szczurek Committed by Tony Nguyen

iavf: Log info when VF is entering and leaving Allmulti mode

Add log when VF is entering and leaving Allmulti mode.
The change of VF state is visible in dmesg now.
Without this commit, entering and leaving Allmulti mode
is not logged in dmesg.
Signed-off-by: default avatarGrzegorz Szczurek <grzegorzx.szczurek@intel.com>
Tested-by: default avatarGeorge Kuruvinakunnel <george.kuruvinakunnel@intel.com>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
parent aeb5d11f
...@@ -762,17 +762,25 @@ void iavf_set_promiscuous(struct iavf_adapter *adapter, int flags) ...@@ -762,17 +762,25 @@ void iavf_set_promiscuous(struct iavf_adapter *adapter, int flags)
if (flags & FLAG_VF_MULTICAST_PROMISC) { if (flags & FLAG_VF_MULTICAST_PROMISC) {
adapter->flags |= IAVF_FLAG_ALLMULTI_ON; adapter->flags |= IAVF_FLAG_ALLMULTI_ON;
adapter->aq_required &= ~IAVF_FLAG_AQ_REQUEST_ALLMULTI; adapter->aq_required &= ~IAVF_FLAG_AQ_REQUEST_ALLMULTI;
dev_info(&adapter->pdev->dev, "Entering multicast promiscuous mode\n"); dev_info(&adapter->pdev->dev, "%s is entering multicast promiscuous mode\n",
adapter->netdev->name);
} }
if (!flags) { if (!flags) {
adapter->flags &= ~(IAVF_FLAG_PROMISC_ON | if (adapter->flags & IAVF_FLAG_PROMISC_ON) {
IAVF_FLAG_ALLMULTI_ON); adapter->flags &= ~IAVF_FLAG_PROMISC_ON;
adapter->aq_required &= ~(IAVF_FLAG_AQ_RELEASE_PROMISC | adapter->aq_required &= ~IAVF_FLAG_AQ_RELEASE_PROMISC;
IAVF_FLAG_AQ_RELEASE_ALLMULTI);
dev_info(&adapter->pdev->dev, "Leaving promiscuous mode\n"); dev_info(&adapter->pdev->dev, "Leaving promiscuous mode\n");
} }
if (adapter->flags & IAVF_FLAG_ALLMULTI_ON) {
adapter->flags &= ~IAVF_FLAG_ALLMULTI_ON;
adapter->aq_required &= ~IAVF_FLAG_AQ_RELEASE_ALLMULTI;
dev_info(&adapter->pdev->dev, "%s is leaving multicast promiscuous mode\n",
adapter->netdev->name);
}
}
adapter->current_op = VIRTCHNL_OP_CONFIG_PROMISCUOUS_MODE; adapter->current_op = VIRTCHNL_OP_CONFIG_PROMISCUOUS_MODE;
vpi.vsi_id = adapter->vsi_res->vsi_id; vpi.vsi_id = adapter->vsi_res->vsi_id;
vpi.flags = flags; vpi.flags = flags;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment