net/i40e: remove redundant reset of queue number
authorZhirun Yan <zhirun.yan@intel.com>
Thu, 13 Dec 2018 12:49:28 +0000 (12:49 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 13 Dec 2018 22:06:37 +0000 (23:06 +0100)
commitef8b7c505f10897621c0801d8ef3e961385246f8
tree3aa17e77e04832990c3bf840d0e3da1677091481
parente51da4bbaf3584e16cbd0ea0b1b85343b777134f
net/i40e: remove redundant reset of queue number

Before this patch, there are two functions will call
i40e_dev_free_queues to free queues. For rte_eth_dev_close(), its
redundant because of duplication. For rte_eth_dev_reset() its
redundant because of not necessary, since following dev_configure
is required after dev_reset and it will be updated correctly.

This patch removes redundant code in i40e_dev_free_queues().

Fixes: 6b4537128394 ("i40e: free queue memory when closing")
Cc: stable@dpdk.org
Signed-off-by: Zhirun Yan <zhirun.yan@intel.com>
Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/i40e/i40e_rxtx.c