net/i40e: fix ethernet flow rule
authorXiaolong Ye <xiaolong.ye@intel.com>
Mon, 22 Jul 2019 12:06:37 +0000 (20:06 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Jul 2019 12:31:36 +0000 (14:31 +0200)
commit3106ca84dc2de241382461d93d49d5a643145c70
tree24038d74a23d50b44072d469c41776a64ca1108e
parentd34db5ccbf302709b99bafe6d477dfcf0537e7de
net/i40e: fix ethernet flow rule

i40e FDIR doesn't allow to create flow with empty spec and mask for
ethertype pattern. Without this patch, below flow would be created
successfully which is unexpected.

> flow create 0 ingress pattern eth / end actions drop / end

Fixes: 7d83c152a207 ("net/i40e: parse flow director filter")
Cc: stable@dpdk.org
Signed-off-by: Xiaolong Ye <xiaolong.ye@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/i40e/i40e_flow.c