[dpdk-dev] [PATCH v2 0/2] add inline protocol support

Anoob Joseph anoob.joseph at caviumnetworks.com
Wed Nov 22 07:55:14 CET 2017


The series adds inline protocol support in ipsec-secgw application.

First patch introduces changes in lib to enable applications to save a
64 bit metadata in security session. For inline processed packets,
application could call "rte_security_get_pkt_metadata" API to retrieve
this application registered metadata from the packet. API will return
the metadata associated with the security session which processed the
packet.

This is primarily required for inline protocol processed ingress
packets. For such packets, the packet may not have enough information to
identify the security parameters with which the packet was processed.
Application can register what it needs to identify the required
parameter. The metadata will be set while creating the security
session.

Second patch adds support for inline protocol in ipsec-secgw
application.

Anoob Joseph (2):
  lib/security: add support for get metadata
  examples/ipsec-secgw: add support for inline protocol

 examples/ipsec-secgw/esp.c                |   6 +-
 examples/ipsec-secgw/ipsec-secgw.c        |  41 +++++++++-
 examples/ipsec-secgw/ipsec.c              | 121 +++++++++++++++++++++++++-----
 lib/librte_security/rte_security.c        |  13 ++++
 lib/librte_security/rte_security.h        |  19 +++++
 lib/librte_security/rte_security_driver.h |  16 ++++
 6 files changed, 194 insertions(+), 22 deletions(-)

-- 
v2: Replaced get_session and get_cookie APIs with get_pkt_metadata API

2.7.4



More information about the dev mailing list