On 10/22/18, [email protected] <[email protected]> wrote:
> From: Sunil Goutham <[email protected]>
>
> +struct npc_kpu_action0 {
> +#if defined(__BIG_ENDIAN_BITFIELD)
> + u64 rsvd_63_57 : 7;
> + u64 byp_count : 3;
> + u64 capture_ena : 1;
> + u64 parse_done : 1;
> + u64 next_state : 8;
> + u64 rsvd_43 : 1;
> + u64 capture_lid : 3;
This looks like it again introduces a problem on bit-endian kernels,
since you have fields that span multiple bytes. Could you rewrite
it to avoid the use of bitfields?
Arnd