net/ice/base: fix mask for checking protocol header
authorQi Zhang <qi.z.zhang@intel.com>
Mon, 23 Sep 2019 07:44:23 +0000 (15:44 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 7 Oct 2019 13:00:55 +0000 (15:00 +0200)
commite7858c8b4a97808f52949d16a76dc1b9eb80a9a4
treec6cb52e1ef74e5099f579d6d9c60b0e7d9306a06
parentb726c1a865c061cdc35a3a1c71a279a21d290349
net/ice/base: fix mask for checking protocol header

Before this patch, the logic of protocol header checking only support
non-tunneled packet. This patch remove the inner protocol in L3/L4 RSS
seg hdr mask and change the protocol header validation to reflect this.
So, for ice_add_rss_cfg(), the last parameter addl_hdrs could specify
the protocol header for tunnel.

Signed-off-by: Zhirun Yan <zhirun.yan@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