blob: 17610c8d6361ccebbf46fb08e780bfebeae536dd [file] [log] [blame]
Martin Varghese571912c2020-02-24 10:57:50 +05301/* SPDX-License-Identifier: GPL-2.0 */
2
3#ifndef __NET_BAREUDP_H
4#define __NET_BAREUDP_H
5
Guillaume Naultdcdd77e2021-12-10 20:56:39 +01006#include <linux/netdevice.h>
Martin Varghese571912c2020-02-24 10:57:50 +05307#include <linux/types.h>
Eli Cohend43600c2019-11-17 14:35:42 +02008#include <net/rtnetlink.h>
Martin Varghese571912c2020-02-24 10:57:50 +05309
Eli Cohend43600c2019-11-17 14:35:42 +020010static inline bool netif_is_bareudp(const struct net_device *dev)
11{
12 return dev->rtnl_link_ops &&
13 !strcmp(dev->rtnl_link_ops->kind, "bareudp");
14}
15
Martin Varghese571912c2020-02-24 10:57:50 +053016#endif