Thread (2 messages) flat view 2 messages, 2 authors, 2021-01-29

Re: [PATCH iproute-next v2] devlink: add support for port params get/set

From: David Ahern <hidden>
Date: 2021-01-29 16:32:07
Also in: lkml

On 1/25/21 6:48 AM, Oleksandr Mazur wrote:
Add implementation for the port parameters getting/setting.
Add bash completion for port param.
Add man description for port param.
Add example commands here - both set and show. Include a json version of
the show.
Signed-off-by: Oleksandr Mazur <redacted>
---
V2:
    1) Add bash completion for port param;
    2) Add man decsription / examples for port param;

 bash-completion/devlink |  55 ++++++++
 devlink/devlink.c       | 275 +++++++++++++++++++++++++++++++++++++++-
 man/man8/devlink-port.8 |  65 ++++++++++
 3 files changed, 389 insertions(+), 6 deletions(-)
quoted hunk ↗ jump to hunk
diff --git a/devlink/devlink.c b/devlink/devlink.c
index a2e06644..0fc1d4f0 100644
--- a/devlink/devlink.c
+++ b/devlink/devlink.c
@@ -2706,7 +2706,8 @@ static void pr_out_param_value(struct dl *dl, const char *nla_name,
 	}
 }
 
-static void pr_out_param(struct dl *dl, struct nlattr **tb, bool array)
+static void pr_out_param(struct dl *dl, struct nlattr **tb, bool array,
+			 bool is_port_param)
 {
 	struct nlattr *nla_param[DEVLINK_ATTR_MAX + 1] = {};
 	struct nlattr *param_value_attr;
@@ -2714,6 +2715,7 @@ static void pr_out_param(struct dl *dl, struct nlattr **tb, bool array)
 	int nla_type;
 	int err;
 
+
stray newline here

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help