summaryrefslogtreecommitdiff
path: root/include/net/pfcp.h
blob: 3f9ebf27a8ffaf7e46b4f741430ca046398b07d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _PFCP_H_
#define _PFCP_H_

#include <linux/netdevice.h>
#include <linux/string.h>
#include <linux/types.h>

#define PFCP_PORT 8805

static inline bool netif_is_pfcp(const struct net_device *dev)
{
	return dev->rtnl_link_ops &&
	       !strcmp(dev->rtnl_link_ops->kind, "pfcp");
}

#endif