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 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 | 164 +++ example/ipsec/odp_ipsec.c | 1546 ++++++++++++++++++++ example/ipsec/odp_ipsec_cache.c | 177 +++ example/ipsec/odp_ipsec_cache.h | 127 ++ example/ipsec/odp_ipsec_fwd_db.c | 133 ++ example/ipsec/odp_ipsec_fwd_db.h | 89 ++ example/ipsec/odp_ipsec_loop_db.c | 51 + example/ipsec/odp_ipsec_loop_db.h | 128 ++ example/ipsec/odp_ipsec_misc.h | 325 ++++ example/ipsec/odp_ipsec_sa_db.c | 161 ++ example/ipsec/odp_ipsec_sa_db.h | 76 + example/ipsec/odp_ipsec_sp_db.c | 123 ++ example/ipsec/odp_ipsec_sp_db.h | 70 + example/ipsec/odp_ipsec_stream.c | 533 +++++++ example/ipsec/odp_ipsec_stream.h | 133 ++ 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 + include/helper/odp_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, 4292 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 include/helper/odp_ipsec.h -- 1.7.7.6 _______________________________________________ lng-odp mailing list [email protected] http://lists.linaro.org/mailman/listinfo/lng-odp
