net: fix pedantic build
authorRaslan Darawsheh <rasland@mellanox.com>
Tue, 21 Jul 2020 08:31:55 +0000 (11:31 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Jul 2020 15:36:54 +0000 (17:36 +0200)
commite4f9eab7d948b952cc65e9e360576de3ff1f7a9e
tree1233d79ed568a7cb5149b5a94515485e85188b2a
parenta608436b635460c1be0d0d561838aa197cf32c87
net: fix pedantic build

when trying to compile rte_mpls with pedantic enabled,
on old compilers like 4.8 it will complain about bit field definition.

error: type of bit-field 'bs' is a GCC extension [-Werror=pedantic]
error: type of bit-field 'tc' is a GCC extension [-Werror=pedantic]
error: type of bit-field 'tag_lsb' is a GCC extension [-Werror=pedantic]

This fixes the compilation error by adding extension to the header
definition.

Fixes: e480cf487a0d ("net: add MPLS header structure")
Cc: stable@dpdk.org
Signed-off-by: Raslan Darawsheh <rasland@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_net/rte_mpls.h