netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] netdevice.h: be'ify packet_type
@ 2005-05-21 15:40 Alexey Dobriyan
  2005-05-23 20:09 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Dobriyan @ 2005-05-21 15:40 UTC (permalink / raw)
  To: netdev

Everybody does

	struct packet_type foo_packet_type = {
		.type = __constant_htons(ETH_P_FOO);
	};

5 introduced warnings will be properly fixed later.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>

--- linux-20050521140543-000/include/linux/netdevice.h	2005-05-21 14:12:24.000000000 +0400
+++ linux-20050521140543-001/include/linux/netdevice.h	2005-05-21 17:14:26.000000000 +0400
@@ -503,7 +503,7 @@ static inline void *netdev_priv(struct n
 #define SET_NETDEV_DEV(net, pdev)	((net)->class_dev.dev = (pdev))
 
 struct packet_type {
-	unsigned short		type;	/* This is really htons(ether_type).	*/
+	__be16			type;	/* This is really htons(ether_type).	*/
 	struct net_device		*dev;	/* NULL is wildcarded here		*/
 	int			(*func) (struct sk_buff *, struct net_device *,
 					 struct packet_type *);

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-05-23 20:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-21 15:40 [PATCH] netdevice.h: be'ify packet_type Alexey Dobriyan
2005-05-23 20:09 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).