net/i40e: add flow create function
authorBeilei Xing <beilei.xing@intel.com>
Fri, 6 Jan 2017 05:27:12 +0000 (13:27 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 17 Jan 2017 18:40:54 +0000 (19:40 +0100)
commitc0a27b40dc9d47bba099283a5a83f28692b2cbb8
treeccb353ad10de3c85e29507ae1f1e9f709f8fd897
parentd416530e63580439e1b6b69b7baeec0c6bd421b4
net/i40e: add flow create function

This patch adds i40e_flow_create function to create a
rule. It will check if a flow matches ethertype filter
or flow director filter or tunnel filter, if the flow
matches some kind of filter, then set the filter to HW.

Signed-off-by: Beilei Xing <beilei.xing@intel.com>
Acked-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