numam-dpdk/examples/ipsec-secgw
David Marchand 13db2494e8 examples/ipsec-gw: fix build with pkg-config
flow.c: In function ‘parse_flow_tokens’:
flow.c:153:23: error: taking address of packed member of ‘struct
rte_ipv4_hdr’ may result in an unaligned pointer value
[-Werror=address-of-packed-member]
  153 |     if (ipv4_addr_cpy(&rule->ipv4.spec.hdr.src_addr,
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flow.c:154:9: error: taking address of packed member of ‘struct
rte_ipv4_hdr’ may result in an unaligned pointer value
[-Werror=address-of-packed-member]
  154 |         &rule->ipv4.mask.hdr.src_addr,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flow.c:170:23: error: taking address of packed member of ‘struct
rte_ipv4_hdr’ may result in an unaligned pointer value
[-Werror=address-of-packed-member]
  170 |     if (ipv4_addr_cpy(&rule->ipv4.spec.hdr.dst_addr,
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flow.c:171:9: error: taking address of packed member of ‘struct
rte_ipv4_hdr’ may result in an unaligned pointer value
[-Werror=address-of-packed-member]
  171 |         &rule->ipv4.mask.hdr.dst_addr,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

Meson build is fine since we waive those warnings.
Replicate it for make.

Fixes: 8e693616fc ("examples/ipsec-secgw: enable flow based distribution")
Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2020-11-15 15:29:22 +01:00
..
test examples: remove old build system references 2020-09-07 23:51:57 +02:00
ep0.cfg examples/ipsec-secgw: support flow director 2020-04-19 17:15:14 +02:00
ep1.cfg examples/ipsec-secgw: fix default configuration 2019-11-20 12:35:51 +01:00
esp.c examples/ipsec-secgw: support fallback session 2019-11-08 13:51:16 +01:00
esp.h examples: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
event_helper.c eal: rename lcore master and slave 2020-10-20 13:17:08 +02:00
event_helper.h examples/ipsec-secgw: add event mode 2020-04-05 18:26:04 +02:00
flow.c examples/ipsec-secgw: enable flow based distribution 2020-07-20 14:51:31 +05:30
flow.h examples/ipsec-secgw: enable flow based distribution 2020-07-20 14:51:31 +05:30
ipip.h examples/ipsec-secgw: update incremental checksum 2018-01-20 16:10:52 +01:00
ipsec_process.c examples/ipsec-secgw: add per-core packet statistics 2020-07-08 00:15:35 +02:00
ipsec_worker.c security: switch metadata to dynamic mbuf field 2020-10-31 16:13:11 +01:00
ipsec_worker.h examples/ipsec-secgw: add app mode worker 2020-04-05 18:26:04 +02:00
ipsec-secgw.c examples/ipsec-secgw: fix session mempool initialisation 2020-11-02 09:24:41 +01:00
ipsec-secgw.h examples/ipsec-secgw: enable flow based distribution 2020-07-20 14:51:31 +05:30
ipsec.c security: update session create API 2020-10-19 09:54:54 +02:00
ipsec.h examples/ipsec-secgw: enable flow based distribution 2020-07-20 14:51:31 +05:30
Makefile examples/ipsec-gw: fix build with pkg-config 2020-11-15 15:29:22 +01:00
meson.build examples/ipsec-secgw: enable flow based distribution 2020-07-20 14:51:31 +05:30
parser.c cmdline: avoid name clash with Windows system types 2020-11-05 17:49:00 +01:00
parser.h examples/ipsec-secgw: enable flow based distribution 2020-07-20 14:51:31 +05:30
rt.c examples: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
sa.c examples/ipsec-secgw: remove limitation for crypto sessions 2020-05-11 13:17:43 +02:00
sad.c examples/ipsec-secgw: add SAD cache 2020-02-05 15:20:51 +01:00
sad.h examples/ipsec-secgw: add event mode 2020-04-05 18:26:04 +02:00
sp4.c examples/ipsec-secgw: get rid of maximum SP limitation 2020-02-05 15:20:51 +01:00
sp6.c examples/ipsec-secgw: get rid of maximum SP limitation 2020-02-05 15:20:51 +01:00