[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190626.124917.1144578915345631665.davem@davemloft.net>
Date: Wed, 26 Jun 2019 12:49:17 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: csully@...gle.com
Cc: netdev@...r.kernel.org, sagis@...gle.com, jonolson@...gle.com,
willemb@...gle.com, lrizzo@...gle.com
Subject: Re: [net-next 2/4] gve: Add transmit and receive support
From: Catherine Sullivan <csully@...gle.com>
Date: Wed, 26 Jun 2019 11:52:49 -0700
> +#ifdef __LITTLE_ENDIAN
> +#define GVE_SEQNO(x) ((((__force u16)x) >> 8) & 0x7)
> +#else
> +#define GVE_SEQNO(x) ((__force u16)(x) & 0x7)
> +#endif
This can be simply "le16_to_cpu(x) & 0x7" or similar. No need to
messy ifdefs.
Powered by blists - more mailing lists