| 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 |
|
| 8 |
static const struct nla_policy |
| 9 |
ethnl_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 |
|
| 15 |
int 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 */ |