Skip to content

Commit

Permalink
ethdev: fix ESP packet type description
Browse files Browse the repository at this point in the history
[ upstream commit f647d53bdebc1a9273c01caad280aadc64d0487e ]

The correct protocol number for ESP (IP Encapsulating Security Payload)
packet type is 50. 51 is IPSec AH (Authentication Header).

Fixes: 1e84afd ("mbuf: add security crypto flags and fields")

Signed-off-by: Alexander Kozyrev <akozyrev@nvidia.com>
Reviewed-by: Morten Brørup <mb@smartsharesystems.com>
  • Loading branch information
aleks-kozyrev authored and kevintraynor committed Dec 5, 2023
1 parent 6faf898 commit f2151f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mbuf/rte_mbuf_ptype.h
Original file line number Diff line number Diff line change
Expand Up @@ -419,10 +419,10 @@ extern "C" {
*
* Packet format:
* <'ether type'=0x0800
* | 'version'=4, 'protocol'=51>
* | 'version'=4, 'protocol'=50>
* or,
* <'ether type'=0x86DD
* | 'version'=6, 'next header'=51>
* | 'version'=6, 'next header'=50>
*/
#define RTE_PTYPE_TUNNEL_ESP 0x00009000
/**
Expand Down

0 comments on commit f2151f9

Please sign in to comment.