xref: /openbmc/linux/include/net/bareudp.h (revision 03ab8e6297acd1bc0eedaa050e2a1635c576fd11)
1571912c6SMartin Varghese /* SPDX-License-Identifier: GPL-2.0 */
2571912c6SMartin Varghese 
3571912c6SMartin Varghese #ifndef __NET_BAREUDP_H
4571912c6SMartin Varghese #define __NET_BAREUDP_H
5571912c6SMartin Varghese 
6*dcdd77eeSGuillaume Nault #include <linux/netdevice.h>
7571912c6SMartin Varghese #include <linux/types.h>
8d43600c0SEli Cohen #include <net/rtnetlink.h>
9571912c6SMartin Varghese 
netif_is_bareudp(const struct net_device * dev)10d43600c0SEli Cohen static inline bool netif_is_bareudp(const struct net_device *dev)
11d43600c0SEli Cohen {
12d43600c0SEli Cohen 	return dev->rtnl_link_ops &&
13d43600c0SEli Cohen 	       !strcmp(dev->rtnl_link_ops->kind, "bareudp");
14d43600c0SEli Cohen }
15d43600c0SEli Cohen 
16571912c6SMartin Varghese #endif
17