ipsec: support header construction
authorFan Zhang <roy.fan.zhang@intel.com>
Thu, 4 Jul 2019 10:42:35 +0000 (11:42 +0100)
committerAkhil Goyal <akhil.goyal@nxp.com>
Fri, 5 Jul 2019 13:28:14 +0000 (15:28 +0200)
commitcd5b860c18519655f52788fff16e903eac65443a
tree1b6e93e276ce8f318e823e98def79d719fda4e77
parentd762705308c4b20c5c6eec8d92f9cb52e0665315
ipsec: support header construction

Add support for RFC 4301(5.1.2) to update of
Type of service field and Traffic class field
bits inside ipv4/ipv6 packets for outbound cases
and inbound cases which deals with the update of
the DSCP/ENC bits inside each of the fields.

Signed-off-by: Marko Kovacevic <marko.kovacevic@intel.com>
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Tested-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_ipsec/esp_inb.c
lib/librte_ipsec/esp_outb.c
lib/librte_ipsec/iph.h
lib/librte_ipsec/rte_ipsec_sa.h
lib/librte_ipsec/sa.c
lib/librte_ipsec/sa.h
lib/librte_net/rte_ip.h
lib/librte_security/rte_security.h