net: fix build with pedantic
authorShahaf Shuler <shahafs@mellanox.com>
Thu, 1 Nov 2018 12:46:45 +0000 (14:46 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 5 Nov 2018 14:01:25 +0000 (15:01 +0100)
commitbe685863a9ea636bf7924f0a8034bb4c21fb1402
tree455b0ec228d0df45ff939a0537756d3494006409
parent3bcc6d6a832b67fd02776d95fe991640256a786f
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: 894f71a3805d ("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>
lib/librte_net/rte_gre.h