fm10k: Reset multicast mode when deleting lport
authorNgai-Mint Kwan <ngai-mint.kwan@intel.com>
Fri, 1 Apr 2016 23:17:39 +0000 (16:17 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 21 Apr 2016 06:07:33 +0000 (23:07 -0700)
commit11ec36a974f59c99e8a4ff7040026569a43ab567
tree7422ab60a6426ffdc36a73f7f608aa9f81455fd8
parentfb6515c8f03bbfdc99cff156becd5e14df1dd601
fm10k: Reset multicast mode when deleting lport

Deleting lport when multicast mode is configured to
FM10K_XCAST_MODE_ALLMULTI or FM10K_XCAST_MODE_PROMISC will result in
generating orphaned multicast-group entries in the switch manager.
Before deleting the lport, reset multicast mode to FM10K_XCAST_MODE_NONE
to flush out these multicast-group entries.

Signed-off-by: Ngai-Mint Kwan <ngai-mint.kwan@intel.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_pf.c