Re: [dpdk-dev] [PATCH V2 1/3] net: avoid cast-align warning in VLAN insert function

2021-10-21 Thread Stephen Hemminger
On Thu, 21 Oct 2021 19:16:19 +0300 Eli Britstein wrote: > On 10/21/2021 6:48 PM, Stephen Hemminger wrote: > > External email: Use caution opening links or attachments > > > > > > On Thu, 21 Oct 2021 11:51:30 +0300 > > Eli Britstein wrote: > > > >> In rte_vlan_insert there is a casting of rte_p

Re: [dpdk-dev] [PATCH V2 1/3] net: avoid cast-align warning in VLAN insert function

2021-10-21 Thread Eli Britstein
On 10/21/2021 6:48 PM, Stephen Hemminger wrote: External email: Use caution opening links or attachments On Thu, 21 Oct 2021 11:51:30 +0300 Eli Britstein wrote: In rte_vlan_insert there is a casting of rte_pktmbuf_prepend returned value to (struct rte_ether_hdr *), which causes cast-align

Re: [dpdk-dev] [PATCH V2 1/3] net: avoid cast-align warning in VLAN insert function

2021-10-21 Thread Stephen Hemminger
On Thu, 21 Oct 2021 11:51:30 +0300 Eli Britstein wrote: > In rte_vlan_insert there is a casting of rte_pktmbuf_prepend returned > value to (struct rte_ether_hdr *), which causes cast-align warning when > using strict cast align flag with supporting gcc: > gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0

[dpdk-dev] [PATCH V2 1/3] net: avoid cast-align warning in VLAN insert function

2021-10-21 Thread Eli Britstein
In rte_vlan_insert there is a casting of rte_pktmbuf_prepend returned value to (struct rte_ether_hdr *), which causes cast-align warning when using strict cast align flag with supporting gcc: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 CFLAGS="-Wcast-align=strict" make V=1 -C examples/l2fwd clean stat