Skip to content

Reduce scope address-of-packed-member warning

Bruce Richardson dpdk-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 9 repliesIn review
  2. v16 patches 19 repliesSuperseded

Changes in v2 from the cover letter

* rebase on latest main (rte_ip.h -> rte_ip4.h)
* remove unnecessary 0-check in IP checksum calc

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6ip_frag: remove use of unaligned variablelib/ip_frag/rte_ipv4_reassembly.c+1 -30 replies
2/6efd: remove unnecessary packed attributeslib/efd/rte_efd.c+2 -20 replies
3/6bus/ifpga: remove packed attributedrivers/bus/ifpga/bus_ifpga_driver.h+1 -10 replies
4/6pipeline: remove packed attributelib/pipeline/rte_table_action.c+1 -10 replies
5/6net: add smaller IPv4 cksum function for simple casesapp/test-eventdev/test_pipeline_common.c app/test-pmd/icmpecho.c app/test-pmd/txonly.c +3 more+38 -1427 replies
6/6build: limit scope of packed member warning disablingconfig/meson.build drivers/meson.build examples/ipsec-secgw/meson.build +1 more+16 -50 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchStephen HemmingerKonstantin AnanyevMorten BrørupRosen XuChengwen Feng
SeriesSeries-acked-by
1/6A-b A-b A-b
2/6A-b A-b
3/6A-b A-b A-b
4/6A-b A-b
5/6A-b A-b
6/6A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/6] Reduce scope address-of-packed-member warning

The warning for address-of-packed-member was being disabled globally in DPDK. While for drivers which need to access hardware-defined data-structures the use of packed may make sense, for normal libs and applications the use of packed data should be generally avoided.

This patchset initially applies some fixes for cases where we are unnecessarily causing the warning to trigger. Thereafter the 6th patch removes the global enabling of the warning and replaces it with more selective disabling for drivers and for a couple of other components which have not yet been fixed.

v2:
* rebase on latest main (rte_ip.h -> rte_ip4.h)
* remove unnecessary 0-check in IP checksum calc

Bruce Richardson (6):
ip_frag: remove use of unaligned variable
efd: remove unnecessary packed attributes bus/ifpga: remove packed attribute
pipeline: remove packed attribute
net: add smaller IPv4 cksum function for simple cases
build: limit scope of packed member warning disabling

 app/test-eventdev/test_pipeline_common.c | 25 +-----------
 app/test-pmd/icmpecho.c                  | 23 +----------
 app/test-pmd/txonly.c                    | 22 +----------
 app/test/packet_burst_generator.c        | 49 +-----------------------
 app/test/test_reassembly_perf.c          | 29 +-------------
 config/meson.build                       |  1 -
 drivers/bus/ifpga/bus_ifpga_driver.h     |  2 +-
 drivers/meson.build                      |  9 +++--
 examples/ipsec-secgw/meson.build         |  6 +++
 lib/efd/rte_efd.c                        |  4 +-
 lib/ip_frag/rte_ipv4_reassembly.c        |  4 +-
 lib/net/rte_ip4.h                        | 32 ++++++++++++++++
 lib/pipeline/rte_table_action.c          |  2 +-
 lib/vhost/meson.build                    |  5 ++-
 14 files changed, 59 insertions(+), 154 deletions(-)

--
2.43.0