Re: [PATCH] net/tap: resolve stringop-overflow with gcc 12 on ppc64le

2023-03-23 Thread David Christensen
On 3/22/23 4:43 PM, Stephen Hemminger wrote: static int set_mac_type(const char *key __rte_unused, const char *value, @@ -2311,7 +2288,7 @@ set_mac_type(const char *key __rte_unused, goto success; } - if (parse_user_mac(user_mac, value) != 6) + i

Re: [PATCH] net/tap: resolve stringop-overflow with gcc 12 on ppc64le

2023-03-22 Thread Stephen Hemminger
On Wed, 22 Mar 2023 17:24:39 -0400 David Christensen wrote: > Building DPDK with gcc 12 on a ppc64le system generates a > stringop-overflow warning. Replace the local MAC address > validation function parse_user_mac() with a call to > rte_ether_unformat_addr() instead. > > Bugzilla ID: 1197 > Cc

[PATCH] net/tap: resolve stringop-overflow with gcc 12 on ppc64le

2023-03-22 Thread David Christensen
Building DPDK with gcc 12 on a ppc64le system generates a stringop-overflow warning. Replace the local MAC address validation function parse_user_mac() with a call to rte_ether_unformat_addr() instead. Bugzilla ID: 1197 Cc: sta...@dpdk.org Signed-off-by: David Christensen --- drivers/net/tap/rt