net/ice/base: allow flexbytes matching on header
authorQi Zhang <qi.z.zhang@intel.com>
Mon, 6 Jan 2020 03:38:44 +0000 (11:38 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:46:01 +0000 (19:46 +0100)
commit0837e5662b1051d12f5e17d9f8dec8dbad725d25
treec01d417843a43c1e73d84279e63373ce77252282
parent1fbb24a3a8df6544e16b7f0ac7e2a91a86fbf5ec
net/ice/base: allow flexbytes matching on header

Change the extraction sequence generated by flow director flexbytes to
use package mac protocol. Without this change data in packet headers
cannot be used for flexbyte matching. The old extraction for flex bytes
started at the beginning of the payload which is after the header.

Signed-off-by: Henry Tieman <henry.w.tieman@intel.com>
Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/base/ice_flow.c
drivers/net/ice/base/ice_flow.h