net/fm10k/base: reset multicast mode when deleting lport
authorQi Zhang <qi.z.zhang@intel.com>
Wed, 8 Mar 2017 06:18:50 +0000 (01:18 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 13:52:52 +0000 (15:52 +0200)
commit22025588e48394ccf557bd3cd1645a95a15a155d
tree008371e10a83e9c07ef34d018d1857954ef8add5
parent43f885807819b10a72b230b7c3d9b4ee7d203861
net/fm10k/base: reset multicast mode when deleting lport

Deleting lport when multicast mod 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: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/fm10k/base/fm10k_pf.c