[dpdk-dev] [PATCH] ixgbe: fix clang compile - remove truncation errors

Olivier MATZ olivier.matz at 6wind.com
Mon Dec 1 10:59:48 CET 2014


Hi Bruce,

On 12/01/2014 10:48 AM, Bruce Richardson wrote:
>> I found that the following code works:
>>
>> 	tx_offload_mask.l2_len |= ~0;
>>
>> (note the '|=' instead of '=')
>>
>> I would avoid to create a macro. What do you think?
>>
>> Regards,
>> Olivier
> 
> Nice one - cleanest solution thus far, so I suggest we go with that option. Have
> you got a patch for it ready?

I'll submit the patch, after all it's my mistake!

Regards,
Olivier


More information about the dev mailing list