net/i40e: fix mirror rule reset when port is closed
authorWei Dai <wei.dai@intel.com>
Mon, 25 Sep 2017 06:36:53 +0000 (14:36 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 00:49:49 +0000 (02:49 +0200)
commit77a45aeb6b2b4f8dbf8ca53e8bfae8aa18382157
tree7789b0c1403b63084e4debe870fae3050b3d44d1
parent43e9d9794cde875e697f29e4586b3dcab797fa4f
net/i40e: fix mirror rule reset when port is closed

When an i40e PF port is stopped, all mirror rules should be reserved.
But when an i40e PF port is closed, all mirror rules should be removed.
When a mirror rule is removed, its associated hardware and software
resource should also be removed.

Fixes: a4def5edf0fc ("i40e: enable port mirroring")
Cc: stable@dpdk.org
Signed-off-by: Wei Dai <wei.dai@intel.com>
Tested-by: Lijuan Tu <lijuanx.a.tu@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
drivers/net/i40e/i40e_ethdev.c