net: fix build with pedantic
The following error popped when compiling with -pedantic:
In file included from
drivers/net/mlx5/mlx5_flow_dv.c:28:0:
include/rte_gre.h:20:2:
error: type of bit-field 'res2' is a GCC extension [-Werror=pedantic]
uint16_t res2:4; /**< Reserved */
Fixing by adding the __extension__ attribute.
Fixes: 894f71a380
("net: add GRE header structure")
Cc: stable@dpdk.org
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
This commit is contained in:
parent
3bcc6d6a83
commit
be685863a9
@ -15,6 +15,7 @@ extern "C" {
|
||||
/**
|
||||
* GRE Header
|
||||
*/
|
||||
__extension__
|
||||
struct gre_hdr {
|
||||
#if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN
|
||||
uint16_t res2:4; /**< Reserved */
|
||||
|
Loading…
Reference in New Issue
Block a user