net/fm10k: fix MAC address removal from switch
authorXiao Wang <xiao.w.wang@intel.com>
Fri, 5 Aug 2016 03:17:43 +0000 (11:17 +0800)
committerBruce Richardson <bruce.richardson@intel.com>
Fri, 30 Sep 2016 10:27:18 +0000 (12:27 +0200)
commitb961fe9344ddfb7909b80376e29add4728381f85
tree24b685c05a305dbd5bbef07a239d6a089a68e3ac
parentc98779abbc108f44f95e0b8d1cd86fe9e9952a83
net/fm10k: fix MAC address removal from switch

When testpmd quits with two ports, the second port's MAC address
remains in the MAC table of switch manager.

There needs to be some time for HW to quiesce when closing a port,
otherwise a subsequent port close won't be handled correctly.

This patch adds a delay after turning off a logic port, just as
the kernel driver does.

Fixes: 8b5c9ec20b7b ("fm10k: support VMDQ in MAC/VLAN filter")

Reported-by: Xueqin Lin <xueqin.lin@intel.com>
Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Acked-by: Jing Chen <jing.d.chen@intel.com>
drivers/net/fm10k/fm10k_ethdev.c