Re: [PATCH v2 05/17] octeontx2-af: Config NPC KPU engines with parser profile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/22/18, sunil.kovvuri@xxxxxxxxx <sunil.kovvuri@xxxxxxxxx> wrote:
> From: Sunil Goutham <sgoutham@xxxxxxxxxxx>
>

> +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



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux