iproute-6.17.0-2.el9
* Tue Jan 27 2026 Andrea Claudi <aclaudi@redhat.com> - 6.17.0-2.el9 - dpll: Add dpll command (Andrea Claudi) [RHEL-131661] - uapi: import dpll.h from last sync point (David Ahern) [RHEL-131661] - lib: Add str_to_bool helper function (Andrea Claudi) [RHEL-131661] - lib: Move mnlg to lib for shared use (Andrea Claudi) [RHEL-131661] Resolves: RHEL-131661 Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
This commit is contained in:
parent
14f9df3a11
commit
18bbf4a9c0
68
0001-lib-Move-mnlg-to-lib-for-shared-use.patch
Normal file
68
0001-lib-Move-mnlg-to-lib-for-shared-use.patch
Normal file
@ -0,0 +1,68 @@
|
||||
From 7f2e9f746e820e43bafc4ecee18c33a7b6bf5d48 Mon Sep 17 00:00:00 2001
|
||||
Message-ID: <7f2e9f746e820e43bafc4ecee18c33a7b6bf5d48.1769541298.git.aclaudi@redhat.com>
|
||||
From: Andrea Claudi <aclaudi@redhat.com>
|
||||
Date: Tue, 27 Jan 2026 19:59:11 +0100
|
||||
Subject: [PATCH] lib: Move mnlg to lib for shared use
|
||||
|
||||
JIRA: https://issues.redhat.com/browse/RHEL-131661
|
||||
Upstream Status: iproute2.git commit 0d61015ba9910
|
||||
|
||||
commit 0d61015ba9910b128db2d7b455056093755e21f9
|
||||
Author: Petr Oros <poros@redhat.com>
|
||||
Date: Tue Nov 18 15:10:29 2025 +0100
|
||||
|
||||
lib: Move mnlg to lib for shared use
|
||||
|
||||
Move mnlg.c to lib/ and mnlg.h to include/ to allow code reuse
|
||||
across multiple tools.
|
||||
|
||||
Signed-off-by: Petr Oros <poros@redhat.com>
|
||||
Signed-off-by: David Ahern <dsahern@kernel.org>
|
||||
|
||||
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
|
||||
---
|
||||
devlink/Makefile | 2 +-
|
||||
{devlink => include}/mnlg.h | 0
|
||||
lib/Makefile | 2 +-
|
||||
{devlink => lib}/mnlg.c | 0
|
||||
4 files changed, 2 insertions(+), 2 deletions(-)
|
||||
rename {devlink => include}/mnlg.h (100%)
|
||||
rename {devlink => lib}/mnlg.c (100%)
|
||||
|
||||
diff --git a/devlink/Makefile b/devlink/Makefile
|
||||
index 1a1eed7e..ec62f0c6 100644
|
||||
--- a/devlink/Makefile
|
||||
+++ b/devlink/Makefile
|
||||
@@ -1,7 +1,7 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
include ../config.mk
|
||||
|
||||
-DEVLINKOBJ = devlink.o mnlg.o
|
||||
+DEVLINKOBJ = devlink.o
|
||||
TARGETS += devlink
|
||||
LDLIBS += -lm
|
||||
|
||||
diff --git a/devlink/mnlg.h b/include/mnlg.h
|
||||
similarity index 100%
|
||||
rename from devlink/mnlg.h
|
||||
rename to include/mnlg.h
|
||||
diff --git a/lib/Makefile b/lib/Makefile
|
||||
index 0ba62942..340c37bc 100644
|
||||
--- a/lib/Makefile
|
||||
+++ b/lib/Makefile
|
||||
@@ -20,7 +20,7 @@ endif
|
||||
|
||||
NLOBJ=libgenl.o libnetlink.o
|
||||
ifeq ($(HAVE_MNL),y)
|
||||
-NLOBJ += mnl_utils.o
|
||||
+NLOBJ += mnl_utils.o mnlg.o
|
||||
endif
|
||||
|
||||
all: libnetlink.a libutil.a
|
||||
diff --git a/devlink/mnlg.c b/lib/mnlg.c
|
||||
similarity index 100%
|
||||
rename from devlink/mnlg.c
|
||||
rename to lib/mnlg.c
|
||||
--
|
||||
2.52.0
|
||||
|
||||
128
0002-lib-Add-str_to_bool-helper-function.patch
Normal file
128
0002-lib-Add-str_to_bool-helper-function.patch
Normal file
@ -0,0 +1,128 @@
|
||||
From bc56542924619f49773c44ac21d62124dac7ed76 Mon Sep 17 00:00:00 2001
|
||||
Message-ID: <bc56542924619f49773c44ac21d62124dac7ed76.1769541298.git.aclaudi@redhat.com>
|
||||
In-Reply-To: <7f2e9f746e820e43bafc4ecee18c33a7b6bf5d48.1769541298.git.aclaudi@redhat.com>
|
||||
References: <7f2e9f746e820e43bafc4ecee18c33a7b6bf5d48.1769541298.git.aclaudi@redhat.com>
|
||||
From: Andrea Claudi <aclaudi@redhat.com>
|
||||
Date: Tue, 27 Jan 2026 19:59:11 +0100
|
||||
Subject: [PATCH] lib: Add str_to_bool helper function
|
||||
|
||||
JIRA: https://issues.redhat.com/browse/RHEL-131661
|
||||
Upstream Status: iproute2.git commit 42f2f219c618f
|
||||
|
||||
commit 42f2f219c618f0c1bf07e536f5cdcc27cb0d6a4b
|
||||
Author: Petr Oros <poros@redhat.com>
|
||||
Date: Tue Nov 18 15:10:30 2025 +0100
|
||||
|
||||
lib: Add str_to_bool helper function
|
||||
|
||||
Add str_to_bool() helper function to lib/utils.c that uses
|
||||
parse_one_of() to parse boolean values. Update devlink to
|
||||
use this common implementation.
|
||||
|
||||
Signed-off-by: Petr Oros <poros@redhat.com>
|
||||
Signed-off-by: David Ahern <dsahern@kernel.org>
|
||||
|
||||
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
|
||||
---
|
||||
devlink/devlink.c | 22 +++-------------------
|
||||
include/utils.h | 1 +
|
||||
lib/utils.c | 17 +++++++++++++++++
|
||||
3 files changed, 21 insertions(+), 19 deletions(-)
|
||||
|
||||
diff --git a/devlink/devlink.c b/devlink/devlink.c
|
||||
index 171b8532..89b89d9c 100644
|
||||
--- a/devlink/devlink.c
|
||||
+++ b/devlink/devlink.c
|
||||
@@ -1038,22 +1038,6 @@ static int ifname_map_rev_lookup(struct dl *dl, const char *bus_name,
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
-static int strtobool(const char *str, bool *p_val)
|
||||
-{
|
||||
- bool val;
|
||||
-
|
||||
- if (!strcmp(str, "true") || !strcmp(str, "1") ||
|
||||
- !strcmp(str, "enable"))
|
||||
- val = true;
|
||||
- else if (!strcmp(str, "false") || !strcmp(str, "0") ||
|
||||
- !strcmp(str, "disable"))
|
||||
- val = false;
|
||||
- else
|
||||
- return -EINVAL;
|
||||
- *p_val = val;
|
||||
- return 0;
|
||||
-}
|
||||
-
|
||||
static int ident_str_validate(char *str, unsigned int expected)
|
||||
{
|
||||
if (!str)
|
||||
@@ -1356,7 +1340,7 @@ static int dl_argv_bool(struct dl *dl, bool *p_val)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
- err = strtobool(str, p_val);
|
||||
+ err = str_to_bool(str, p_val);
|
||||
if (err) {
|
||||
pr_err("\"%s\" is not a valid boolean value\n", str);
|
||||
return err;
|
||||
@@ -3821,7 +3805,7 @@ static int cmd_dev_param_set(struct dl *dl)
|
||||
mnl_attr_put_u32(nlh, DEVLINK_ATTR_PARAM_VALUE_DATA, val_u32);
|
||||
break;
|
||||
case MNL_TYPE_FLAG:
|
||||
- err = strtobool(dl->opts.param_value, &val_bool);
|
||||
+ err = str_to_bool(dl->opts.param_value, &val_bool);
|
||||
if (err)
|
||||
goto err_param_value_parse;
|
||||
if (val_bool == ctx.value.vbool)
|
||||
@@ -5393,7 +5377,7 @@ static int cmd_port_param_set(struct dl *dl)
|
||||
mnl_attr_put_u32(nlh, DEVLINK_ATTR_PARAM_VALUE_DATA, val_u32);
|
||||
break;
|
||||
case MNL_TYPE_FLAG:
|
||||
- err = strtobool(dl->opts.param_value, &val_bool);
|
||||
+ err = str_to_bool(dl->opts.param_value, &val_bool);
|
||||
if (err)
|
||||
goto err_param_value_parse;
|
||||
if (val_bool == ctx.value.vbool)
|
||||
diff --git a/include/utils.h b/include/utils.h
|
||||
index 91e6e31f..d8e8d70e 100644
|
||||
--- a/include/utils.h
|
||||
+++ b/include/utils.h
|
||||
@@ -350,6 +350,7 @@ int parse_one_of_deprecated(const char *msg, const char *realval,
|
||||
const char * const *list,
|
||||
size_t len, int *p_err);
|
||||
bool parse_on_off(const char *msg, const char *realval, int *p_err);
|
||||
+int str_to_bool(const char *str, bool *p_val);
|
||||
|
||||
int parse_mapping_num_all(__u32 *keyp, const char *key);
|
||||
int parse_mapping_gen(int *argcp, char ***argvp,
|
||||
diff --git a/lib/utils.c b/lib/utils.c
|
||||
index dd242d4d..0719281a 100644
|
||||
--- a/lib/utils.c
|
||||
+++ b/lib/utils.c
|
||||
@@ -1820,6 +1820,23 @@ bool parse_on_off(const char *msg, const char *realval, int *p_err)
|
||||
ARRAY_SIZE(values_on_off), p_err, strcmp);
|
||||
}
|
||||
|
||||
+int str_to_bool(const char *str, bool *p_val)
|
||||
+{
|
||||
+ static const char * const values[] = {
|
||||
+ "false", "true",
|
||||
+ "0", "1",
|
||||
+ "disable", "enable"
|
||||
+ };
|
||||
+ int err, index;
|
||||
+
|
||||
+ index = parse_one_of(NULL, str, values, ARRAY_SIZE(values), &err);
|
||||
+ if (err)
|
||||
+ return err;
|
||||
+
|
||||
+ *p_val = index & 1;
|
||||
+ return 0;
|
||||
+}
|
||||
+
|
||||
int parse_mapping_gen(int *argcp, char ***argvp,
|
||||
int (*key_cb)(__u32 *keyp, const char *key),
|
||||
int (*mapping_cb)(__u32 key, char *value, void *data),
|
||||
--
|
||||
2.52.0
|
||||
|
||||
314
0003-uapi-import-dpll.h-from-last-sync-point.patch
Normal file
314
0003-uapi-import-dpll.h-from-last-sync-point.patch
Normal file
@ -0,0 +1,314 @@
|
||||
From 98fe34bfd3e78d1d3fbbe606c441411fad43e8ab Mon Sep 17 00:00:00 2001
|
||||
Message-ID: <98fe34bfd3e78d1d3fbbe606c441411fad43e8ab.1769541298.git.aclaudi@redhat.com>
|
||||
In-Reply-To: <7f2e9f746e820e43bafc4ecee18c33a7b6bf5d48.1769541298.git.aclaudi@redhat.com>
|
||||
References: <7f2e9f746e820e43bafc4ecee18c33a7b6bf5d48.1769541298.git.aclaudi@redhat.com>
|
||||
From: David Ahern <dsahern@kernel.org>
|
||||
Date: Fri, 21 Nov 2025 09:11:28 -0700
|
||||
Subject: [PATCH] uapi: import dpll.h from last sync point
|
||||
|
||||
JIRA: https://issues.redhat.com/browse/RHEL-131661
|
||||
Upstream Status: iproute2.git commit 9771095a3b4de
|
||||
|
||||
commit 9771095a3b4de3f965e6ce2c0dd322e94f6420f8
|
||||
Author: David Ahern <dsahern@kernel.org>
|
||||
Date: Fri Nov 21 09:11:28 2025 -0700
|
||||
|
||||
uapi: import dpll.h from last sync point
|
||||
|
||||
Signed-off-by: David Ahern <dsahern@kernel.org>
|
||||
|
||||
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
|
||||
---
|
||||
include/uapi/linux/dpll.h | 280 ++++++++++++++++++++++++++++++++++++++
|
||||
1 file changed, 280 insertions(+)
|
||||
create mode 100644 include/uapi/linux/dpll.h
|
||||
|
||||
diff --git a/include/uapi/linux/dpll.h b/include/uapi/linux/dpll.h
|
||||
new file mode 100644
|
||||
index 00000000..d9064eb9
|
||||
--- /dev/null
|
||||
+++ b/include/uapi/linux/dpll.h
|
||||
@@ -0,0 +1,280 @@
|
||||
+/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */
|
||||
+/* Do not edit directly, auto-generated from: */
|
||||
+/* Documentation/netlink/specs/dpll.yaml */
|
||||
+/* YNL-GEN uapi header */
|
||||
+
|
||||
+#ifndef _LINUX_DPLL_H
|
||||
+#define _LINUX_DPLL_H
|
||||
+
|
||||
+#define DPLL_FAMILY_NAME "dpll"
|
||||
+#define DPLL_FAMILY_VERSION 1
|
||||
+
|
||||
+/**
|
||||
+ * enum dpll_mode - working modes a dpll can support, differentiates if and how
|
||||
+ * dpll selects one of its inputs to syntonize with it, valid values for
|
||||
+ * DPLL_A_MODE attribute
|
||||
+ * @DPLL_MODE_MANUAL: input can be only selected by sending a request to dpll
|
||||
+ * @DPLL_MODE_AUTOMATIC: highest prio input pin auto selected by dpll
|
||||
+ */
|
||||
+enum dpll_mode {
|
||||
+ DPLL_MODE_MANUAL = 1,
|
||||
+ DPLL_MODE_AUTOMATIC,
|
||||
+
|
||||
+ /* private: */
|
||||
+ __DPLL_MODE_MAX,
|
||||
+ DPLL_MODE_MAX = (__DPLL_MODE_MAX - 1)
|
||||
+};
|
||||
+
|
||||
+/**
|
||||
+ * enum dpll_lock_status - provides information of dpll device lock status,
|
||||
+ * valid values for DPLL_A_LOCK_STATUS attribute
|
||||
+ * @DPLL_LOCK_STATUS_UNLOCKED: dpll was not yet locked to any valid input (or
|
||||
+ * forced by setting DPLL_A_MODE to DPLL_MODE_DETACHED)
|
||||
+ * @DPLL_LOCK_STATUS_LOCKED: dpll is locked to a valid signal, but no holdover
|
||||
+ * available
|
||||
+ * @DPLL_LOCK_STATUS_LOCKED_HO_ACQ: dpll is locked and holdover acquired
|
||||
+ * @DPLL_LOCK_STATUS_HOLDOVER: dpll is in holdover state - lost a valid lock or
|
||||
+ * was forced by disconnecting all the pins (latter possible only when dpll
|
||||
+ * lock-state was already DPLL_LOCK_STATUS_LOCKED_HO_ACQ, if dpll lock-state
|
||||
+ * was not DPLL_LOCK_STATUS_LOCKED_HO_ACQ, the dpll's lock-state shall remain
|
||||
+ * DPLL_LOCK_STATUS_UNLOCKED)
|
||||
+ */
|
||||
+enum dpll_lock_status {
|
||||
+ DPLL_LOCK_STATUS_UNLOCKED = 1,
|
||||
+ DPLL_LOCK_STATUS_LOCKED,
|
||||
+ DPLL_LOCK_STATUS_LOCKED_HO_ACQ,
|
||||
+ DPLL_LOCK_STATUS_HOLDOVER,
|
||||
+
|
||||
+ /* private: */
|
||||
+ __DPLL_LOCK_STATUS_MAX,
|
||||
+ DPLL_LOCK_STATUS_MAX = (__DPLL_LOCK_STATUS_MAX - 1)
|
||||
+};
|
||||
+
|
||||
+/**
|
||||
+ * enum dpll_lock_status_error - if previous status change was done due to a
|
||||
+ * failure, this provides information of dpll device lock status error. Valid
|
||||
+ * values for DPLL_A_LOCK_STATUS_ERROR attribute
|
||||
+ * @DPLL_LOCK_STATUS_ERROR_NONE: dpll device lock status was changed without
|
||||
+ * any error
|
||||
+ * @DPLL_LOCK_STATUS_ERROR_UNDEFINED: dpll device lock status was changed due
|
||||
+ * to undefined error. Driver fills this value up in case it is not able to
|
||||
+ * obtain suitable exact error type.
|
||||
+ * @DPLL_LOCK_STATUS_ERROR_MEDIA_DOWN: dpll device lock status was changed
|
||||
+ * because of associated media got down. This may happen for example if dpll
|
||||
+ * device was previously locked on an input pin of type
|
||||
+ * PIN_TYPE_SYNCE_ETH_PORT.
|
||||
+ * @DPLL_LOCK_STATUS_ERROR_FRACTIONAL_FREQUENCY_OFFSET_TOO_HIGH: the FFO
|
||||
+ * (Fractional Frequency Offset) between the RX and TX symbol rate on the
|
||||
+ * media got too high. This may happen for example if dpll device was
|
||||
+ * previously locked on an input pin of type PIN_TYPE_SYNCE_ETH_PORT.
|
||||
+ */
|
||||
+enum dpll_lock_status_error {
|
||||
+ DPLL_LOCK_STATUS_ERROR_NONE = 1,
|
||||
+ DPLL_LOCK_STATUS_ERROR_UNDEFINED,
|
||||
+ DPLL_LOCK_STATUS_ERROR_MEDIA_DOWN,
|
||||
+ DPLL_LOCK_STATUS_ERROR_FRACTIONAL_FREQUENCY_OFFSET_TOO_HIGH,
|
||||
+
|
||||
+ /* private: */
|
||||
+ __DPLL_LOCK_STATUS_ERROR_MAX,
|
||||
+ DPLL_LOCK_STATUS_ERROR_MAX = (__DPLL_LOCK_STATUS_ERROR_MAX - 1)
|
||||
+};
|
||||
+
|
||||
+/*
|
||||
+ * level of quality of a clock device. This mainly applies when the dpll
|
||||
+ * lock-status is DPLL_LOCK_STATUS_HOLDOVER. The current list is defined
|
||||
+ * according to the table 11-7 contained in ITU-T G.8264/Y.1364 document. One
|
||||
+ * may extend this list freely by other ITU-T defined clock qualities, or
|
||||
+ * different ones defined by another standardization body (for those, please
|
||||
+ * use different prefix).
|
||||
+ */
|
||||
+enum dpll_clock_quality_level {
|
||||
+ DPLL_CLOCK_QUALITY_LEVEL_ITU_OPT1_PRC = 1,
|
||||
+ DPLL_CLOCK_QUALITY_LEVEL_ITU_OPT1_SSU_A,
|
||||
+ DPLL_CLOCK_QUALITY_LEVEL_ITU_OPT1_SSU_B,
|
||||
+ DPLL_CLOCK_QUALITY_LEVEL_ITU_OPT1_EEC1,
|
||||
+ DPLL_CLOCK_QUALITY_LEVEL_ITU_OPT1_PRTC,
|
||||
+ DPLL_CLOCK_QUALITY_LEVEL_ITU_OPT1_EPRTC,
|
||||
+ DPLL_CLOCK_QUALITY_LEVEL_ITU_OPT1_EEEC,
|
||||
+ DPLL_CLOCK_QUALITY_LEVEL_ITU_OPT1_EPRC,
|
||||
+
|
||||
+ /* private: */
|
||||
+ __DPLL_CLOCK_QUALITY_LEVEL_MAX,
|
||||
+ DPLL_CLOCK_QUALITY_LEVEL_MAX = (__DPLL_CLOCK_QUALITY_LEVEL_MAX - 1)
|
||||
+};
|
||||
+
|
||||
+#define DPLL_TEMP_DIVIDER 1000
|
||||
+
|
||||
+/**
|
||||
+ * enum dpll_type - type of dpll, valid values for DPLL_A_TYPE attribute
|
||||
+ * @DPLL_TYPE_PPS: dpll produces Pulse-Per-Second signal
|
||||
+ * @DPLL_TYPE_EEC: dpll drives the Ethernet Equipment Clock
|
||||
+ */
|
||||
+enum dpll_type {
|
||||
+ DPLL_TYPE_PPS = 1,
|
||||
+ DPLL_TYPE_EEC,
|
||||
+
|
||||
+ /* private: */
|
||||
+ __DPLL_TYPE_MAX,
|
||||
+ DPLL_TYPE_MAX = (__DPLL_TYPE_MAX - 1)
|
||||
+};
|
||||
+
|
||||
+/**
|
||||
+ * enum dpll_pin_type - defines possible types of a pin, valid values for
|
||||
+ * DPLL_A_PIN_TYPE attribute
|
||||
+ * @DPLL_PIN_TYPE_MUX: aggregates another layer of selectable pins
|
||||
+ * @DPLL_PIN_TYPE_EXT: external input
|
||||
+ * @DPLL_PIN_TYPE_SYNCE_ETH_PORT: ethernet port PHY's recovered clock
|
||||
+ * @DPLL_PIN_TYPE_INT_OSCILLATOR: device internal oscillator
|
||||
+ * @DPLL_PIN_TYPE_GNSS: GNSS recovered clock
|
||||
+ */
|
||||
+enum dpll_pin_type {
|
||||
+ DPLL_PIN_TYPE_MUX = 1,
|
||||
+ DPLL_PIN_TYPE_EXT,
|
||||
+ DPLL_PIN_TYPE_SYNCE_ETH_PORT,
|
||||
+ DPLL_PIN_TYPE_INT_OSCILLATOR,
|
||||
+ DPLL_PIN_TYPE_GNSS,
|
||||
+
|
||||
+ /* private: */
|
||||
+ __DPLL_PIN_TYPE_MAX,
|
||||
+ DPLL_PIN_TYPE_MAX = (__DPLL_PIN_TYPE_MAX - 1)
|
||||
+};
|
||||
+
|
||||
+/**
|
||||
+ * enum dpll_pin_direction - defines possible direction of a pin, valid values
|
||||
+ * for DPLL_A_PIN_DIRECTION attribute
|
||||
+ * @DPLL_PIN_DIRECTION_INPUT: pin used as a input of a signal
|
||||
+ * @DPLL_PIN_DIRECTION_OUTPUT: pin used to output the signal
|
||||
+ */
|
||||
+enum dpll_pin_direction {
|
||||
+ DPLL_PIN_DIRECTION_INPUT = 1,
|
||||
+ DPLL_PIN_DIRECTION_OUTPUT,
|
||||
+
|
||||
+ /* private: */
|
||||
+ __DPLL_PIN_DIRECTION_MAX,
|
||||
+ DPLL_PIN_DIRECTION_MAX = (__DPLL_PIN_DIRECTION_MAX - 1)
|
||||
+};
|
||||
+
|
||||
+#define DPLL_PIN_FREQUENCY_1_HZ 1
|
||||
+#define DPLL_PIN_FREQUENCY_10_KHZ 10000
|
||||
+#define DPLL_PIN_FREQUENCY_77_5_KHZ 77500
|
||||
+#define DPLL_PIN_FREQUENCY_10_MHZ 10000000
|
||||
+
|
||||
+/**
|
||||
+ * enum dpll_pin_state - defines possible states of a pin, valid values for
|
||||
+ * DPLL_A_PIN_STATE attribute
|
||||
+ * @DPLL_PIN_STATE_CONNECTED: pin connected, active input of phase locked loop
|
||||
+ * @DPLL_PIN_STATE_DISCONNECTED: pin disconnected, not considered as a valid
|
||||
+ * input
|
||||
+ * @DPLL_PIN_STATE_SELECTABLE: pin enabled for automatic input selection
|
||||
+ */
|
||||
+enum dpll_pin_state {
|
||||
+ DPLL_PIN_STATE_CONNECTED = 1,
|
||||
+ DPLL_PIN_STATE_DISCONNECTED,
|
||||
+ DPLL_PIN_STATE_SELECTABLE,
|
||||
+
|
||||
+ /* private: */
|
||||
+ __DPLL_PIN_STATE_MAX,
|
||||
+ DPLL_PIN_STATE_MAX = (__DPLL_PIN_STATE_MAX - 1)
|
||||
+};
|
||||
+
|
||||
+/**
|
||||
+ * enum dpll_pin_capabilities - defines possible capabilities of a pin, valid
|
||||
+ * flags on DPLL_A_PIN_CAPABILITIES attribute
|
||||
+ * @DPLL_PIN_CAPABILITIES_DIRECTION_CAN_CHANGE: pin direction can be changed
|
||||
+ * @DPLL_PIN_CAPABILITIES_PRIORITY_CAN_CHANGE: pin priority can be changed
|
||||
+ * @DPLL_PIN_CAPABILITIES_STATE_CAN_CHANGE: pin state can be changed
|
||||
+ */
|
||||
+enum dpll_pin_capabilities {
|
||||
+ DPLL_PIN_CAPABILITIES_DIRECTION_CAN_CHANGE = 1,
|
||||
+ DPLL_PIN_CAPABILITIES_PRIORITY_CAN_CHANGE = 2,
|
||||
+ DPLL_PIN_CAPABILITIES_STATE_CAN_CHANGE = 4,
|
||||
+};
|
||||
+
|
||||
+#define DPLL_PHASE_OFFSET_DIVIDER 1000
|
||||
+
|
||||
+/**
|
||||
+ * enum dpll_feature_state - Allow control (enable/disable) and status checking
|
||||
+ * over features.
|
||||
+ * @DPLL_FEATURE_STATE_DISABLE: feature shall be disabled
|
||||
+ * @DPLL_FEATURE_STATE_ENABLE: feature shall be enabled
|
||||
+ */
|
||||
+enum dpll_feature_state {
|
||||
+ DPLL_FEATURE_STATE_DISABLE,
|
||||
+ DPLL_FEATURE_STATE_ENABLE,
|
||||
+};
|
||||
+
|
||||
+enum dpll_a {
|
||||
+ DPLL_A_ID = 1,
|
||||
+ DPLL_A_MODULE_NAME,
|
||||
+ DPLL_A_PAD,
|
||||
+ DPLL_A_CLOCK_ID,
|
||||
+ DPLL_A_MODE,
|
||||
+ DPLL_A_MODE_SUPPORTED,
|
||||
+ DPLL_A_LOCK_STATUS,
|
||||
+ DPLL_A_TEMP,
|
||||
+ DPLL_A_TYPE,
|
||||
+ DPLL_A_LOCK_STATUS_ERROR,
|
||||
+ DPLL_A_CLOCK_QUALITY_LEVEL,
|
||||
+ DPLL_A_PHASE_OFFSET_MONITOR,
|
||||
+ DPLL_A_PHASE_OFFSET_AVG_FACTOR,
|
||||
+
|
||||
+ __DPLL_A_MAX,
|
||||
+ DPLL_A_MAX = (__DPLL_A_MAX - 1)
|
||||
+};
|
||||
+
|
||||
+enum dpll_a_pin {
|
||||
+ DPLL_A_PIN_ID = 1,
|
||||
+ DPLL_A_PIN_PARENT_ID,
|
||||
+ DPLL_A_PIN_MODULE_NAME,
|
||||
+ DPLL_A_PIN_PAD,
|
||||
+ DPLL_A_PIN_CLOCK_ID,
|
||||
+ DPLL_A_PIN_BOARD_LABEL,
|
||||
+ DPLL_A_PIN_PANEL_LABEL,
|
||||
+ DPLL_A_PIN_PACKAGE_LABEL,
|
||||
+ DPLL_A_PIN_TYPE,
|
||||
+ DPLL_A_PIN_DIRECTION,
|
||||
+ DPLL_A_PIN_FREQUENCY,
|
||||
+ DPLL_A_PIN_FREQUENCY_SUPPORTED,
|
||||
+ DPLL_A_PIN_FREQUENCY_MIN,
|
||||
+ DPLL_A_PIN_FREQUENCY_MAX,
|
||||
+ DPLL_A_PIN_PRIO,
|
||||
+ DPLL_A_PIN_STATE,
|
||||
+ DPLL_A_PIN_CAPABILITIES,
|
||||
+ DPLL_A_PIN_PARENT_DEVICE,
|
||||
+ DPLL_A_PIN_PARENT_PIN,
|
||||
+ DPLL_A_PIN_PHASE_ADJUST_MIN,
|
||||
+ DPLL_A_PIN_PHASE_ADJUST_MAX,
|
||||
+ DPLL_A_PIN_PHASE_ADJUST,
|
||||
+ DPLL_A_PIN_PHASE_OFFSET,
|
||||
+ DPLL_A_PIN_FRACTIONAL_FREQUENCY_OFFSET,
|
||||
+ DPLL_A_PIN_ESYNC_FREQUENCY,
|
||||
+ DPLL_A_PIN_ESYNC_FREQUENCY_SUPPORTED,
|
||||
+ DPLL_A_PIN_ESYNC_PULSE,
|
||||
+ DPLL_A_PIN_REFERENCE_SYNC,
|
||||
+ DPLL_A_PIN_PHASE_ADJUST_GRAN,
|
||||
+
|
||||
+ __DPLL_A_PIN_MAX,
|
||||
+ DPLL_A_PIN_MAX = (__DPLL_A_PIN_MAX - 1)
|
||||
+};
|
||||
+
|
||||
+enum dpll_cmd {
|
||||
+ DPLL_CMD_DEVICE_ID_GET = 1,
|
||||
+ DPLL_CMD_DEVICE_GET,
|
||||
+ DPLL_CMD_DEVICE_SET,
|
||||
+ DPLL_CMD_DEVICE_CREATE_NTF,
|
||||
+ DPLL_CMD_DEVICE_DELETE_NTF,
|
||||
+ DPLL_CMD_DEVICE_CHANGE_NTF,
|
||||
+ DPLL_CMD_PIN_ID_GET,
|
||||
+ DPLL_CMD_PIN_GET,
|
||||
+ DPLL_CMD_PIN_SET,
|
||||
+ DPLL_CMD_PIN_CREATE_NTF,
|
||||
+ DPLL_CMD_PIN_DELETE_NTF,
|
||||
+ DPLL_CMD_PIN_CHANGE_NTF,
|
||||
+
|
||||
+ __DPLL_CMD_MAX,
|
||||
+ DPLL_CMD_MAX = (__DPLL_CMD_MAX - 1)
|
||||
+};
|
||||
+
|
||||
+#define DPLL_MCGRP_MONITOR "monitor"
|
||||
+
|
||||
+#endif /* _LINUX_DPLL_H */
|
||||
--
|
||||
2.52.0
|
||||
|
||||
2923
0004-dpll-Add-dpll-command.patch
Normal file
2923
0004-dpll-Add-dpll-command.patch
Normal file
File diff suppressed because it is too large
Load Diff
@ -8,6 +8,10 @@ Source0: https://kernel.org/pub/linux/utils/net/%{name}2/%{name}2-%{v
|
||||
Source1: rt_dsfield.deprecated
|
||||
%endif
|
||||
Source2: README.etc
|
||||
Patch0: 0001-lib-Move-mnlg-to-lib-for-shared-use.patch
|
||||
Patch1: 0002-lib-Add-str_to_bool-helper-function.patch
|
||||
Patch2: 0003-uapi-import-dpll.h-from-last-sync-point.patch
|
||||
Patch3: 0004-dpll-Add-dpll-command.patch
|
||||
|
||||
License: GPL-2.0-or-later AND NIST-PD
|
||||
BuildRequires: bison
|
||||
@ -129,7 +133,7 @@ fi
|
||||
%attr(644,root,root) %{_sysconfdir}/iproute2/*
|
||||
%exclude %{_sbindir}/tc
|
||||
%exclude %{_sbindir}/routel
|
||||
%{_datadir}/bash-completion/completions/devlink
|
||||
%{_datadir}/bash-completion/completions/*
|
||||
|
||||
%files tc
|
||||
%license COPYING
|
||||
|
||||
Loading…
Reference in New Issue
Block a user