Bill,

I think what we need to do first is restructure defines.

#if defined __x86_64__ || defined __i386__
#ifdef USE_AES
#else
<here is generic code>
#endif

That code should be here:
#else
#error "Need to define PLATFORM_DEPENDENT_HASH32 macro"
#endif

And also arm64 code for now can use generic version instead of optimized.

Maxim.


On 11/12/2015 08:55, Maxim Uvarov wrote:
odp_name_table.c: In function 'hash_name_and_kind':
odp_name_table.c:277:2: error: implicit declaration of function '__crc32w' [-Werror=implicit-function-declaration]
  PLATFORM_HASH32_INIT(hash_state, name_len);
  ^
odp_name_table.c:277:2: error: nested extern declaration of '__crc32w' [-Werror=nested-externs]


On 11/11/2015 18:25, Bill Fischofer wrote:
Changes in v9
- Rebase on top of latest queue fixes

Changes in v8
- add ARM definition for __crc32w() function (from Alex)

Changes in v7 (review comments by Maxim)
- Correct architecture ifdefs (use of arch dir in later patch)
- Correct doxygen for queue types
- Change internal APIs that use odp_ prefix to use _odp prefix
- Rebase to latest api-next

Changes in v6
- Move documentation of packet colors to main API file
- Add ODP prefix to odp_tm_egress_kind_t enums

Changes in v5
- Add include file odp_traffic_mngr_internal.h
- Add support for odp_tm_enq() from packets originating from ordered queues

Changes in v4
- Incorporate API changes suggested by Petri

Changes in v3
- Fix checkpatch errors (Bill)

Changes in v2
- Full patch submission (Barry)


Barry Spinney (4):
   api: tm: add tm API definitions
   linux-generic: tm: implement traffic manager
   linux-generic: tm: add tm to build
   example: tm: traffic manager example

  configure.ac                                       |    1 +
  example/Makefile.am                                |    2 +-
  example/traffic_mgmt/.gitignore                    |    1 +
  example/traffic_mgmt/Makefile.am                   |    9 +
  example/traffic_mgmt/odp_traffic_mgmt.c            |  781 ++++++
  include/odp.h                                      |    1 +
  include/odp/api/packet.h                           |   69 +
  include/odp/api/traffic_mngr.h                     | 1611 +++++++++++
  platform/linux-generic/Makefile.am                 |   13 +
  .../linux-generic/include/odp/plat/packet_types.h  |   11 +
  .../linux-generic/include/odp/plat/queue_types.h   |    7 +
  .../include/odp/plat/traffic_mngr_types.h          |  185 ++
  platform/linux-generic/include/odp/traffic_mngr.h  |   35 +
  platform/linux-generic/include/odp_internal.h      |    2 +
  .../include/odp_name_table_internal.h              |   61 +
  .../linux-generic/include/odp_packet_internal.h    |    5 +
  .../linux-generic/include/odp_pkt_queue_internal.h |   62 +
  .../linux-generic/include/odp_queue_internal.h     |    6 +
  .../include/odp_sorted_list_internal.h             |   78 +
  .../include/odp_timer_wheel_internal.h             |   68 +
  .../include/odp_traffic_mngr_internal.h            |  324 +++
  platform/linux-generic/odp_init.c                  |    5 +
  platform/linux-generic/odp_name_table.c            | 1365 ++++++++++
  platform/linux-generic/odp_packet_flags.c          |   46 +-
  platform/linux-generic/odp_pkt_queue.c             |  379 +++
  platform/linux-generic/odp_queue.c                 |   60 +
  platform/linux-generic/odp_sorted_list.c           |  271 ++
  platform/linux-generic/odp_timer_wheel.c           |  907 +++++++
platform/linux-generic/odp_traffic_mngr.c | 2799 ++++++++++++++++++++
  29 files changed, 9162 insertions(+), 2 deletions(-)
  create mode 100644 example/traffic_mgmt/.gitignore
  create mode 100644 example/traffic_mgmt/Makefile.am
  create mode 100644 example/traffic_mgmt/odp_traffic_mgmt.c
  create mode 100644 include/odp/api/traffic_mngr.h
create mode 100644 platform/linux-generic/include/odp/plat/traffic_mngr_types.h
  create mode 100644 platform/linux-generic/include/odp/traffic_mngr.h
create mode 100644 platform/linux-generic/include/odp_name_table_internal.h create mode 100644 platform/linux-generic/include/odp_pkt_queue_internal.h create mode 100644 platform/linux-generic/include/odp_sorted_list_internal.h create mode 100644 platform/linux-generic/include/odp_timer_wheel_internal.h create mode 100644 platform/linux-generic/include/odp_traffic_mngr_internal.h
  create mode 100644 platform/linux-generic/odp_name_table.c
  create mode 100644 platform/linux-generic/odp_pkt_queue.c
  create mode 100644 platform/linux-generic/odp_sorted_list.c
  create mode 100644 platform/linux-generic/odp_timer_wheel.c
  create mode 100644 platform/linux-generic/odp_traffic_mngr.c



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

Reply via email to