net/i40e: optimize flow director memory management
authorChenmin Sun <chenmin.sun@intel.com>
Fri, 17 Jul 2020 17:36:56 +0000 (01:36 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Jul 2020 11:54:54 +0000 (13:54 +0200)
commit3e44dbd0284ca611009ce02d251ed8ecea48a730
treea0bd541ef96a450f03f228cace680a72ab824ab7
parentf97d6192d511efccdcb45b0a2cc8e2fa07c97258
net/i40e: optimize flow director memory management

This patch allocated some memory pool for flow management to avoid
calling rte_zmalloc/rte_free every time.
This patch also improves the hash table operation. When adding/removing
a flow, the software will directly add/delete it from the hash table.
If any error occurs, it then roll back the operation it just done.

Signed-off-by: Chenmin Sun <chenmin.sun@intel.com>
Reviewed-by: Jingjing Wu <jingjing.wu@intel.com>
drivers/net/i40e/i40e_ethdev.c
drivers/net/i40e/i40e_ethdev.h
drivers/net/i40e/i40e_fdir.c
drivers/net/i40e/i40e_flow.c