net/ice: fix protocol header for PPPoE
authorSimei Su <simei.su@intel.com>
Thu, 9 Jul 2020 06:21:28 +0000 (14:21 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Sat, 11 Jul 2020 04:18:53 +0000 (06:18 +0200)
commit8020b8123ab62622f048fbc6cd90e2311bb9a0e6
treeb2ea39f21df413c95deef120e6562b15df386590
parentce1231cae7fb4e0d3bcdb732ebdbe87dc86961ee
net/ice: fix protocol header for PPPoE

When adding a RSS rule with pattern MAC_PPPOE_IPV4_UDP and input
set SRC/DST IPV4, because of incomplete protocol header fields,
the rule can't do hash with inner src/dst ipv4. PPPOE_IPV4_TCP/SCTP
and PPPOE_IPV6_UDP/TCP/SCTP also have similar issues. This patch
complements protocol header fields for PPPOE data packets.

Fixes: 0b952714e9c1 ("net/ice: refactor PF hash flow")

Signed-off-by: Simei Su <simei.su@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_hash.c