net/i40e: fix flow director on X710
authorJeff Guo <jia.guo@intel.com>
Tue, 25 Oct 2016 02:25:41 +0000 (22:25 -0400)
committerBruce Richardson <bruce.richardson@intel.com>
Wed, 26 Oct 2016 17:42:23 +0000 (19:42 +0200)
commit4675752f1ddf6a3c6c8f9e7e2143657adf120eaf
treef784d80e95e4595e420d2273dc7cb4a813d7af96
parentaaffc740ec2cfdb304523c67020f09ad343cfacf
net/i40e: fix flow director on X710

Because some registers are only supported by X722, for example,
I40E_GLQF_FD_PCTYPES, the driver needs to use the mac type to distinguish
the behavior of X722 from X710 and other NICs, or it would result in
errors on X710.

Fixes: 8c5cb3c11513 ("net/i40e: add packet type translation for X722")

Signed-off-by: Jeff Guo <jia.guo@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_ethdev_vf.c
drivers/net/i40e/i40e_fdir.c