Hello all,

Here is the refactored IPsec example application.  

V1: Changes from the existing github version are:
 - Split into multiple source/header files
 - Support for querying MAC address via pktio handle
 - Removed unused test code for scheduling
 - Adding ability to set packet flags (for steam packets)
   to allow packet processing code to verify ETH packets
   regardless of source (interface versus loop)
 - Requires a per packet user context (part of patch)
 - Update .gitignore to exclude ID file

V2: Incorporate Anders' and Taras' initial feedback
 - Add back ability to poll queues versus using odp_schedule
 - Compress all of application source and make into one patch
 - Fix whitespace errors exposed when applying patches

V3: Incorporate Anders' and Taras' followup feedback
 - Add "const" per packet context pointer
 - Move packet references until after completion status check
 - Fix type of odp_queue_t to be correct in polling workaround

V4: Incorporate Anders' lastest feedback
 - Fixed memory leak in command line parsing routines
 - Added copyright to README in example/ipsec

V5: Incorporate Anders' lastest feedback
 - String termination bug

V6: Incorporate Anders' lastest feedback
 - Cleanup variable declaration
 - Cleanup up magic numbers (bug 620 against remaining)
 - Rework command line string/token parsing
 - Added bug IDs as Doxygen todo's
 - Add return code checking to main CLI arg parsing loop
 - Cleaned up HMAC invocation in stream code to remove "hash_len"

Robbie King (4):
  Add user context to packet
  Add helper include file with IPSec headers
  Add ability to set packet flags
  Add IPsec example app to build environment

 .gitignore                                         |    2 +
 configure.ac                                       |    1 +
 example/Makefile.am                                |    2 +-
 example/ipsec/Makefile.am                          |   12 +
 example/ipsec/README                               |  169 +++
 example/ipsec/odp_ipsec.c                          | 1559 ++++++++++++++++++++
 example/ipsec/odp_ipsec_cache.c                    |  177 +++
 example/ipsec/odp_ipsec_cache.h                    |  127 ++
 example/ipsec/odp_ipsec_fwd_db.c                   |  148 ++
 example/ipsec/odp_ipsec_fwd_db.h                   |   92 ++
 example/ipsec/odp_ipsec_loop_db.c                  |   51 +
 example/ipsec/odp_ipsec_loop_db.h                  |  129 ++
 example/ipsec/odp_ipsec_misc.h                     |  341 +++++
 example/ipsec/odp_ipsec_sa_db.c                    |  175 +++
 example/ipsec/odp_ipsec_sa_db.h                    |   76 +
 example/ipsec/odp_ipsec_sp_db.c                    |  137 ++
 example/ipsec/odp_ipsec_sp_db.h                    |   70 +
 example/ipsec/odp_ipsec_stream.c                   |  555 +++++++
 example/ipsec/odp_ipsec_stream.h                   |  134 ++
 example/ipsec/run_ah_in.sh                         |   12 +
 example/ipsec/run_ah_out.sh                        |   12 +
 example/ipsec/run_both_in.sh                       |   14 +
 example/ipsec/run_both_out.sh                      |   14 +
 example/ipsec/run_esp_in.sh                        |   13 +
 example/ipsec/run_esp_out.sh                       |   13 +
 example/ipsec/run_live.sh                          |   17 +
 example/ipsec/run_router.sh                        |    9 +
 example/ipsec/run_simple.sh                        |   10 +
 helper/include/odph_ipsec.h                        |   73 +
 platform/linux-generic/include/api/odp_packet.h    |   18 +
 .../linux-generic/include/api/odp_packet_flags.h   |  136 ++
 .../linux-generic/include/odp_packet_internal.h    |    2 +
 platform/linux-generic/odp_packet.c                |   10 +
 platform/linux-generic/odp_packet_flags.c          |   87 ++
 34 files changed, 4396 insertions(+), 1 deletions(-)
 create mode 100644 example/ipsec/Makefile.am
 create mode 100644 example/ipsec/README
 create mode 100644 example/ipsec/odp_ipsec.c
 create mode 100644 example/ipsec/odp_ipsec_cache.c
 create mode 100644 example/ipsec/odp_ipsec_cache.h
 create mode 100644 example/ipsec/odp_ipsec_fwd_db.c
 create mode 100644 example/ipsec/odp_ipsec_fwd_db.h
 create mode 100644 example/ipsec/odp_ipsec_loop_db.c
 create mode 100644 example/ipsec/odp_ipsec_loop_db.h
 create mode 100644 example/ipsec/odp_ipsec_misc.h
 create mode 100644 example/ipsec/odp_ipsec_sa_db.c
 create mode 100644 example/ipsec/odp_ipsec_sa_db.h
 create mode 100644 example/ipsec/odp_ipsec_sp_db.c
 create mode 100644 example/ipsec/odp_ipsec_sp_db.h
 create mode 100644 example/ipsec/odp_ipsec_stream.c
 create mode 100644 example/ipsec/odp_ipsec_stream.h
 create mode 100644 example/ipsec/run_ah_in.sh
 create mode 100644 example/ipsec/run_ah_out.sh
 create mode 100644 example/ipsec/run_both_in.sh
 create mode 100644 example/ipsec/run_both_out.sh
 create mode 100644 example/ipsec/run_esp_in.sh
 create mode 100644 example/ipsec/run_esp_out.sh
 create mode 100644 example/ipsec/run_live.sh
 create mode 100644 example/ipsec/run_router.sh
 create mode 100644 example/ipsec/run_simple.sh
 create mode 100644 helper/include/odph_ipsec.h

-- 
1.7.7.6


_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to