Igor Russkikh <igor.russk...@aquantia.com> writes:

> +struct aq_tx_packet_desc {
> +     struct {
> +             u32 length:21;
> +             u32 checksum:7;
> +             u32 drop_padding:1;
> +             u32 vlan_tag:1;
> +             u32 cphi:1;
> +             u32 dicf:1;
> +     };
> +     struct {
> +             u32 max_seg_size:15;
> +             u32 reserved:1;
> +             u32 vlan_info:16;
> +     };
> +};


You might want to shift and mask instead to avoid going insane when
trying to use this header on a BE system...


Bjørn

Reply via email to