From: Jan Viktorin <viktorin@rehivetech.com>
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH 1/1] arm: set CONFIG_RTE_ARCH_STRICT_ALIGN=y for armv7 target
Date: Wed, 9 Dec 2015 16:16:17 +0100 [thread overview]
Message-ID: <1449674177-10624-1-git-send-email-viktorin@rehivetech.com> (raw)
In-Reply-To: <1449602993-6047-1-git-send-email-viktorin@rehivetech.com>
This patch reduces number of warnings from 53 to 40. It removes the usual false
positives utilizing unaligned_uint*_t data types.
Signed-off-by: Jan Viktorin <viktorin@rehivetech.com>
---
As far as I know, only a 64-bit unaligned access can be a problem for ARMv7.
I found only one such occurence:
118 struct rte_mbuf *
119 rte_ipv4_frag_reassemble_packet(struct rte_ip_frag_tbl *tbl,
120 struct rte_ip_frag_death_row *dr, struct rte_mbuf *mb, uint64_t tms,
121 struct ipv4_hdr *ip_hdr)
...
133 psd = (unaligned_uint64_t *)&ip_hdr->src_addr;
134 /* use first 8 bytes only */
135 key.src_dst[0] = psd[0];
136 key.id = ip_hdr->packet_id;
137 key.key_len = IPV4_KEYLEN
Is this a real issue?
---
config/defconfig_arm-armv7a-linuxapp-gcc | 1 +
1 file changed, 1 insertion(+)
diff --git a/config/defconfig_arm-armv7a-linuxapp-gcc b/config/defconfig_arm-armv7a-linuxapp-gcc
index cbebd64..2482d91 100644
--- a/config/defconfig_arm-armv7a-linuxapp-gcc
+++ b/config/defconfig_arm-armv7a-linuxapp-gcc
@@ -39,6 +39,7 @@ CONFIG_RTE_ARCH_ARM_TUNE="cortex-a9"
CONFIG_RTE_ARCH_ARM_NEON=y
CONFIG_RTE_FORCE_INTRINSICS=y
+CONFIG_RTE_ARCH_STRICT_ALIGN=y
CONFIG_RTE_TOOLCHAIN="gcc"
CONFIG_RTE_TOOLCHAIN_GCC=y
--
2.6.3
next prev parent reply other threads:[~2015-12-09 15:17 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-08 19:29 [dpdk-dev] [[RFC PATCH]] lib/ether: fix 16-bit unaligned access Jan Viktorin
2015-12-08 20:02 ` Stephen Hemminger
2015-12-08 20:53 ` Jan Viktorin
2015-12-08 20:30 ` Thomas Monjalon
2015-12-08 20:55 ` Jan Viktorin
2015-12-08 20:57 ` Thomas Monjalon
2015-12-08 21:17 ` Jan Viktorin
2015-12-09 15:16 ` Jan Viktorin [this message]
2016-02-29 15:14 ` [dpdk-dev] [PATCH 1/1] arm: set CONFIG_RTE_ARCH_STRICT_ALIGN=y for armv7 target Thomas Monjalon
2016-02-29 15:55 ` Jan Viktorin
2016-02-29 17:13 ` Jan Viktorin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1449674177-10624-1-git-send-email-viktorin@rehivetech.com \
--to=viktorin@rehivetech.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).