ixgbe: fix bitfield assignation with clang
authorOlivier Matz <olivier.matz@6wind.com>
Mon, 1 Dec 2014 10:36:13 +0000 (11:36 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 1 Dec 2014 11:18:33 +0000 (12:18 +0100)
commit06c57d54ef7ddc8f74a14f245daaa0eabd06cc8f
treeb8d6dd3638a45892d128d6b4d542f82ee0f9c495
parent6d25d90c7d3af6cf34943be315ba9768739348d1
ixgbe: fix bitfield assignation with clang

Commit 1224decaa44 ("support TCP segmentation offload")
changed the way the bitfields are assigned in ixgbe, example:

  tx_offload_mask.l2_len = ~0;

This result in a compilation error with clang:

  error: implicit truncation from 'int' to bitfield
    changes value from -1 to 127 [-Werror,-Wbitfield-constant-conversion]

Replacing the '=' with a '|=' fixes the issue.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_pmd_ixgbe/ixgbe_rxtx.c