net/igb: fix add/delete of flex filters
authorMarkus Theil <markus.theil@tu-ilmenau.de>
Mon, 22 May 2017 10:17:50 +0000 (12:17 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 12 Jun 2017 09:41:26 +0000 (10:41 +0100)
commit167e7b9ae531491f10f495587cb59ae271430abb
tree9913a45dd372e13df41988f545a359c2b7e17fe6
parent2764556a84007c41e43d634780240c61bd7b2d4f
net/igb: fix add/delete of flex filters

Before this patch, flex_filter->index was always zero when it was read
and used after rte_zmalloc. The corresponding code was therefore moved
into the add and delete parts of the if/else statement.

Fixes: 231d43909a31 ("igb: migrate flex filter to new API")
Cc: stable@dpdk.org
Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
drivers/net/e1000/igb_ethdev.c