i40e: setup flow director only if enabled
authorJingjing Wu <jingjing.wu@intel.com>
Thu, 4 Dec 2014 15:40:23 +0000 (23:40 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 5 Dec 2014 15:55:00 +0000 (16:55 +0100)
commite689a63caa4ebd43367b67601384066234525fb5
tree17ddc1cf747649f1277b36c28a2712057c7afbec
parentc14236f210d80815cdf3f317b3396493ab3156f9
i40e: setup flow director only if enabled

In order not to affect the FVL's performance by default setting, this
patch moves the flow director initialization from i40e_pf_setup to
i40e_dev_configure according to the mode in fdir configure info.
Then the resources used for flow director will be only setup if it is enabled.

Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>
app/test-pmd/cmdline.c
lib/librte_pmd_i40e/i40e_ethdev.c
lib/librte_pmd_i40e/i40e_fdir.c