diff options
author | Guillaume Nault <gnault@redhat.com> | 2021-12-10 20:56:39 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-12-13 12:34:09 +0000 |
commit | dcdd77ee55a70b6ddfcfbe8e6bbf6d002994644c (patch) | |
tree | b5b0567ac33d3ded36195ed66297e3e46d418f94 /include | |
parent | 614b7a1f28f401332736235a7d2d17ceda16945c (diff) | |
download | lwn-dcdd77ee55a70b6ddfcfbe8e6bbf6d002994644c.tar.gz lwn-dcdd77ee55a70b6ddfcfbe8e6bbf6d002994644c.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/bareudp.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/include/net/bareudp.h b/include/net/bareudp.h index 8f07a91e0f25..17610c8d6361 100644 --- a/include/net/bareudp.h +++ b/include/net/bareudp.h @@ -3,17 +3,10 @@ #ifndef __NET_BAREUDP_H #define __NET_BAREUDP_H +#include <linux/netdevice.h> #include <linux/types.h> -#include <linux/skbuff.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) { return dev->rtnl_link_ops && |