net/i40e: restrict pointer aliasing for NEON
authorGavin Hu <gavin.hu@arm.com>
Mon, 13 Apr 2020 16:40:25 +0000 (00:40 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:08 +0000 (13:57 +0200)
commit024225981c6967b5f9fd9184b8dd846578257a32
tree43f0a1fd7e4437ccdb01342a2ce15dea092fbb74
parent6b50c489a3bb1d82e2549ae2f1e2c46961572c27
net/i40e: restrict pointer aliasing for NEON

Restrict pointer aliasing to optimize the code generated.

The patch showed ~3% performance uplift on Arm N1SDP platform, and no
degradation on ThunderX2. The tet case is RFC2544 zero-loss L2
forwarding running testpmd.

[1] https://gcc.gnu.org/onlinedocs/gcc-4.8.5/gcc/Restricted-Pointers.html

Signed-off-by: Gavin Hu <gavin.hu@arm.com>
Reviewed-by: Steve Capper <steve.capper@arm.com>
drivers/net/i40e/i40e_rxtx_vec_neon.c