File Index
Files and directories
Sign in
FILE

ts.h

File preview with syntax highlighting.

linux-6.19.14/net/ethtool/ts.h C
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2
 3#ifndef _NET_ETHTOOL_TS_H
 4#define _NET_ETHTOOL_TS_H
 5
 6#include "netlink.h"
 7
 8static const struct nla_policy
 9ethnl_ts_hwtst_prov_policy[ETHTOOL_A_TS_HWTSTAMP_PROVIDER_MAX + 1] = {
10	[ETHTOOL_A_TS_HWTSTAMP_PROVIDER_INDEX] = { .type = NLA_U32 },
11	[ETHTOOL_A_TS_HWTSTAMP_PROVIDER_QUALIFIER] =
12		NLA_POLICY_MAX(NLA_U32, HWTSTAMP_PROVIDER_QUALIFIER_CNT - 1)
13};
14
15int ts_parse_hwtst_provider(const struct nlattr *nest,
16			    struct hwtstamp_provider_desc *hwprov_desc,
17			    struct netlink_ext_ack *extack,
18			    bool *mod);
19
20#endif /* _NET_ETHTOOL_TS_H */
~/ Read-only file preview.