Thread (28 messages) 28 messages, 6 authors, 2019-07-01

Re: [net-next 2/4] gve: Add transmit and receive support

From: David Miller <davem@davemloft.net>
Date: 2019-06-26 19:49:20

From: Catherine Sullivan <redacted>
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help