Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bareudp: Move definition of struct bareudp_conf to bareudp.c

This structure is used only in bareudp.c.

While there, adjust include files: we need netdevice.h, not skbuff.h.

Signed-off-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Guillaume Nault and committed by
David S. Miller
dcdd77ee 614b7a1f

+8 -8
+7
drivers/net/bareudp.c
··· 38 38 struct list_head bareudp_list; 39 39 }; 40 40 41 + struct bareudp_conf { 42 + __be16 ethertype; 43 + __be16 port; 44 + u16 sport_min; 45 + bool multi_proto_mode; 46 + }; 47 + 41 48 /* Pseudo network device */ 42 49 struct bareudp_dev { 43 50 struct net *net; /* netns for packet i/o */
+1 -8
include/net/bareudp.h
··· 3 3 #ifndef __NET_BAREUDP_H 4 4 #define __NET_BAREUDP_H 5 5 6 + #include <linux/netdevice.h> 6 7 #include <linux/types.h> 7 - #include <linux/skbuff.h> 8 8 #include <net/rtnetlink.h> 9 - 10 - struct bareudp_conf { 11 - __be16 ethertype; 12 - __be16 port; 13 - u16 sport_min; 14 - bool multi_proto_mode; 15 - }; 16 9 17 10 static inline bool netif_is_bareudp(const struct net_device *dev) 18 11 {