blob: 8cda334fd04296ab8352cd69937de2a611c0cbf9 [file] [log] [blame]
Jakub Kicinski4e16b6a2023-03-15 16:03:50 -07001/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */
Jakub Kicinskid3d854f2023-02-01 11:24:17 +01002/* Do not edit directly, auto-generated from: */
3/* Documentation/netlink/specs/netdev.yaml */
4/* YNL-GEN kernel header */
5
6#ifndef _LINUX_NETDEV_GEN_H
7#define _LINUX_NETDEV_GEN_H
8
9#include <net/netlink.h>
10#include <net/genetlink.h>
11
Jakub Kicinski9b66ee02023-05-24 10:09:01 -070012#include <uapi/linux/netdev.h>
Mina Almasry170aafe2024-09-10 17:14:47 +000013#include <linux/list.h>
Jakub Kicinskid3d854f2023-02-01 11:24:17 +010014
Jakub Kicinskid49010a2023-11-26 15:07:38 -080015/* Common nested types */
16extern const struct nla_policy netdev_page_pool_info_nl_policy[NETDEV_A_PAGE_POOL_IFINDEX + 1];
Mina Almasry3efd7ab2024-09-10 17:14:46 +000017extern const struct nla_policy netdev_queue_id_nl_policy[NETDEV_A_QUEUE_TYPE + 1];
Jakub Kicinskid49010a2023-11-26 15:07:38 -080018
Jakub Kicinskid3d854f2023-02-01 11:24:17 +010019int netdev_nl_dev_get_doit(struct sk_buff *skb, struct genl_info *info);
20int netdev_nl_dev_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb);
Jakub Kicinski950ab532023-11-26 15:07:34 -080021int netdev_nl_page_pool_get_doit(struct sk_buff *skb, struct genl_info *info);
22int netdev_nl_page_pool_get_dumpit(struct sk_buff *skb,
23 struct netlink_callback *cb);
Jakub Kicinskid49010a2023-11-26 15:07:38 -080024int netdev_nl_page_pool_stats_get_doit(struct sk_buff *skb,
25 struct genl_info *info);
26int netdev_nl_page_pool_stats_get_dumpit(struct sk_buff *skb,
27 struct netlink_callback *cb);
Amritha Nambiarbc877952023-12-01 15:28:29 -080028int netdev_nl_queue_get_doit(struct sk_buff *skb, struct genl_info *info);
29int netdev_nl_queue_get_dumpit(struct sk_buff *skb,
30 struct netlink_callback *cb);
Amritha Nambiarff999142023-12-01 15:28:51 -080031int netdev_nl_napi_get_doit(struct sk_buff *skb, struct genl_info *info);
32int netdev_nl_napi_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb);
Jakub Kicinskiab63a232024-03-06 11:55:07 -080033int netdev_nl_qstats_get_dumpit(struct sk_buff *skb,
34 struct netlink_callback *cb);
Mina Almasry3efd7ab2024-09-10 17:14:46 +000035int netdev_nl_bind_rx_doit(struct sk_buff *skb, struct genl_info *info);
Jakub Kicinskid3d854f2023-02-01 11:24:17 +010036
37enum {
38 NETDEV_NLGRP_MGMT,
Jakub Kicinskid2ef6aa2023-11-26 15:07:35 -080039 NETDEV_NLGRP_PAGE_POOL,
Jakub Kicinskid3d854f2023-02-01 11:24:17 +010040};
41
42extern struct genl_family netdev_nl_family;
43
Mina Almasry170aafe2024-09-10 17:14:47 +000044void netdev_nl_sock_priv_init(struct list_head *priv);
45void netdev_nl_sock_priv_destroy(struct list_head *priv);
46
Jakub Kicinskid3d854f2023-02-01 11:24:17 +010047#endif /* _LINUX_NETDEV_GEN_H */