mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
18 lines
335 B
C
18 lines
335 B
C
![]() |
/* 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
|