mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 00:47:56 -04:00
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: Grzegorz Szczurek <grzegorzx.szczurek@intel.com> Tested-by: George Kuruvinakunnel <george.kuruvinakunnel@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
This commit is contained in:
committed by
Tony Nguyen
parent
aeb5d11fd1
commit
f1db020ba4
@@ -762,15 +762,23 @@ void iavf_set_promiscuous(struct iavf_adapter *adapter, int flags)
|
||||
if (flags & FLAG_VF_MULTICAST_PROMISC) {
|
||||
adapter->flags |= IAVF_FLAG_ALLMULTI_ON;
|
||||
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) {
|
||||
adapter->flags &= ~(IAVF_FLAG_PROMISC_ON |
|
||||
IAVF_FLAG_ALLMULTI_ON);
|
||||
adapter->aq_required &= ~(IAVF_FLAG_AQ_RELEASE_PROMISC |
|
||||
IAVF_FLAG_AQ_RELEASE_ALLMULTI);
|
||||
dev_info(&adapter->pdev->dev, "Leaving promiscuous mode\n");
|
||||
if (adapter->flags & IAVF_FLAG_PROMISC_ON) {
|
||||
adapter->flags &= ~IAVF_FLAG_PROMISC_ON;
|
||||
adapter->aq_required &= ~IAVF_FLAG_AQ_RELEASE_PROMISC;
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user