examples: replace packed attributesMSVC struct packing is not compatible with GCC. Replace macro__rte_packed with __rte_packed_begin to push existing pack valueand set packing to 1-byte and macro
examples: replace packed attributesMSVC struct packing is not compatible with GCC. Replace macro__rte_packed with __rte_packed_begin to push existing pack valueand set packing to 1-byte and macro __rte_packed_end to restorethe pack value prior to the push.Macro __rte_packed_end is deliberately utilized to trigger aMSVC compiler warning if no existing packing has been pushed allowingeasy identification of locations where the __rte_packed_begin ismissing.Signed-off-by: Andre Muezerie <andremue@linux.microsoft.com>
show more ...
examples/l3fwd: fix port group mask with AltiVecFix port group mask generation in altivec, vec_any_eq returns0 or 1 while port_groupx4 expects comparison mask result.Fixes: 2193b7467f7a ("exampl
examples/l3fwd: fix port group mask with AltiVecFix port group mask generation in altivec, vec_any_eq returns0 or 1 while port_groupx4 expects comparison mask result.Fixes: 2193b7467f7a ("examples/l3fwd: optimize packet processing on powerpc")Cc: stable@dpdk.orgSigned-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>Acked-by: Shijith Thotton <sthotton@marvell.com>
examples: fix Arm build with GCC 12GCC-12 warns when a pointer of type union points to an array of samedefined size, as union internally gets paded with pad bytes.../examples/common/neon/port_gr
examples: fix Arm build with GCC 12GCC-12 warns when a pointer of type union points to an array of samedefined size, as union internally gets paded with pad bytes.../examples/common/neon/port_group.h:42:21: error: array subscript 'union <anonymous>[0]' is partly outside array bounds of 'uint16_t[5]' {aka 'short unsigned int[5]'} [-Werror=array-bounds] 42 | pnum->u64 = gptbl[v].pnum; | ^~../examples/common/neon/port_group.h:21:23: note: object 'pn' of size [0, 10] 21 | port_groupx4(uint16_t pn[FWDSTEP + 1], uint16_t *lp, uint16x8_t dp1 | ~~~~~~~~~^~~~~~~~~~~~~~~../examples/common/neon/port_group.h:43:21: error: array subscript 'union <anonymous>[0]' is partly outside array bounds of 'uint16_t[5]' {aka 'short unsigned int[5]'} [-Werror=array-bounds] 43 | pnum->u16[FWDSTEP] = 1; | ^~Fixes: 732115ce38c6 ("examples/l3fwd: move packet group function in common")Cc: stable@dpdk.orgSigned-off-by: Amit Prakash Shukla <amitprakashs@marvell.com>
examples/l3fwd: move packet group function in commonThis will make the packet grouping function common, sothat other examples can utilize as per need.For each architecture sse/neon/altivec, port
examples/l3fwd: move packet group function in commonThis will make the packet grouping function common, sothat other examples can utilize as per need.For each architecture sse/neon/altivec, port groupheaders will be created under examples/common/<arch>.Signed-off-by: Rahul Bhansali <rbhansali@marvell.com>Tested-by: Konstantin Ananyev <konstantin.v.ananyev@yandex.ru>Acked-by: Konstantin Ananyev <konstantin.v.ananyev@yandex.ru>