[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <060ba6e2de48763aec25df3ed87b64f86022f8b1.1576591746.git.Jose.Abreu@synopsys.com>
Date: Tue, 17 Dec 2019 15:10:24 +0100
From: Jose Abreu <Jose.Abreu@...opsys.com>
To: netdev@...r.kernel.org
Cc: Joao Pinto <Joao.Pinto@...opsys.com>,
Jose Abreu <Jose.Abreu@...opsys.com>,
Vinicius Costa Gomes <vinicius.gomes@...el.com>,
David Ahern <dsahern@...il.com>
Subject: [PATCH iproute2-next] taprio: Add support for the SetAndHold and SetAndRelease commands
Although this is already in kernel, currently the tool does not support
them. We need these commands for full TSN features which are currently
supported in Synopsys IPs such as QoS and XGMAC3.
Signed-off-by: Jose Abreu <Jose.Abreu@...opsys.com>
---
Cc: Vinicius Costa Gomes <vinicius.gomes@...el.com>
Cc: David Ahern <dsahern@...il.com>
---
tc/q_taprio.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/tc/q_taprio.c b/tc/q_taprio.c
index b9954436b0f9..62ff860e80ae 100644
--- a/tc/q_taprio.c
+++ b/tc/q_taprio.c
@@ -99,6 +99,10 @@ static const char *entry_cmd_to_str(__u8 cmd)
switch (cmd) {
case TC_TAPRIO_CMD_SET_GATES:
return "S";
+ case TC_TAPRIO_CMD_SET_AND_HOLD:
+ return "H";
+ case TC_TAPRIO_CMD_SET_AND_RELEASE:
+ return "R";
default:
return "Invalid";
}
@@ -108,6 +112,10 @@ static int str_to_entry_cmd(const char *str)
{
if (strcmp(str, "S") == 0)
return TC_TAPRIO_CMD_SET_GATES;
+ if (strcmp(str, "H") == 0)
+ return TC_TAPRIO_CMD_SET_AND_HOLD;
+ if (strcmp(str, "R") == 0)
+ return TC_TAPRIO_CMD_SET_AND_RELEASE;
return -1;
}
--
2.7.4
Powered by blists - more mailing lists