#include "netlink.h"
#include "common.h"
struct pause_req_info { … };
#define PAUSE_REQINFO(__req_base) …
struct pause_reply_data { … };
#define PAUSE_REPDATA(__reply_base) …
const struct nla_policy ethnl_pause_get_policy[] = …;
static int pause_parse_request(struct ethnl_req_info *req_base,
struct nlattr **tb,
struct netlink_ext_ack *extack)
{ … }
static int pause_prepare_data(const struct ethnl_req_info *req_base,
struct ethnl_reply_data *reply_base,
const struct genl_info *info)
{ … }
static int pause_reply_size(const struct ethnl_req_info *req_base,
const struct ethnl_reply_data *reply_base)
{ … }
static int ethtool_put_stat(struct sk_buff *skb, u64 val, u16 attrtype,
u16 padtype)
{ … }
static int pause_put_stats(struct sk_buff *skb,
const struct ethtool_pause_stats *pause_stats)
{ … }
static int pause_fill_reply(struct sk_buff *skb,
const struct ethnl_req_info *req_base,
const struct ethnl_reply_data *reply_base)
{ … }
const struct nla_policy ethnl_pause_set_policy[] = …;
static int
ethnl_set_pause_validate(struct ethnl_req_info *req_info,
struct genl_info *info)
{ … }
static int
ethnl_set_pause(struct ethnl_req_info *req_info, struct genl_info *info)
{ … }
const struct ethnl_request_ops ethnl_pause_request_ops = …;