net/ice/base: support switch for IPv6 TC field
authorQi Zhang <qi.z.zhang@intel.com>
Mon, 23 Sep 2019 07:44:47 +0000 (15:44 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 7 Oct 2019 13:00:56 +0000 (15:00 +0200)
commit53c4d83e41a322c5c44cff9184772723062c65fc
treeaa42494fbc194da54834b99c7721378278fee65c
parentf19c0a84c50e122f15abe13264e3dadd3e0bdcdd
net/ice/base: support switch for IPv6 TC field

Add support for IPv6 traffic class (tc) field for switch rule.
Correct ice_ipv6_hdr based on the IPv6 Protocol using bitfields.
Add big/little endian convert for tc field before it is inserted,
since tc is only one byte and also does not have a byte-aligned
offset.

Signed-off-by: Junfeng Guo <junfeng.guo@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_protocol_type.h
drivers/net/ice/base/ice_switch.c