Commit dcdd77ee authored by Guillaume Nault's avatar Guillaume Nault Committed by David S. Miller

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: default avatarGuillaume Nault <gnault@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 614b7a1f
...@@ -38,6 +38,13 @@ struct bareudp_net { ...@@ -38,6 +38,13 @@ struct bareudp_net {
struct list_head bareudp_list; struct list_head bareudp_list;
}; };
struct bareudp_conf {
__be16 ethertype;
__be16 port;
u16 sport_min;
bool multi_proto_mode;
};
/* Pseudo network device */ /* Pseudo network device */
struct bareudp_dev { struct bareudp_dev {
struct net *net; /* netns for packet i/o */ struct net *net; /* netns for packet i/o */
......
...@@ -3,17 +3,10 @@ ...@@ -3,17 +3,10 @@
#ifndef __NET_BAREUDP_H #ifndef __NET_BAREUDP_H
#define __NET_BAREUDP_H #define __NET_BAREUDP_H
#include <linux/netdevice.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/skbuff.h>
#include <net/rtnetlink.h> #include <net/rtnetlink.h>
struct bareudp_conf {
__be16 ethertype;
__be16 port;
u16 sport_min;
bool multi_proto_mode;
};
static inline bool netif_is_bareudp(const struct net_device *dev) static inline bool netif_is_bareudp(const struct net_device *dev)
{ {
return dev->rtnl_link_ops && return dev->rtnl_link_ops &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment