netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH iproute2-next] taprio: Add support for the SetAndHold and SetAndRelease commands
@ 2019-12-17 14:10 Jose Abreu
  2019-12-17 21:25 ` Andre Guedes
  2019-12-18 23:05 ` Vinicius Costa Gomes
  0 siblings, 2 replies; 14+ messages in thread
From: Jose Abreu @ 2019-12-17 14:10 UTC (permalink / raw)
  To: netdev; +Cc: Joao Pinto, Jose Abreu, Vinicius Costa Gomes, David Ahern

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@synopsys.com>
---
Cc: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Cc: David Ahern <dsahern@gmail.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


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-01-20  9:18 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-17 14:10 [PATCH iproute2-next] taprio: Add support for the SetAndHold and SetAndRelease commands Jose Abreu
2019-12-17 21:25 ` Andre Guedes
2019-12-18  8:59   ` Jose Abreu
2019-12-18 23:05 ` Vinicius Costa Gomes
2019-12-18 23:08   ` Jose Abreu
2020-01-03 22:24     ` Murali Karicheri
2020-01-07  9:27       ` Jose Abreu
2020-01-17 22:18         ` Murali Karicheri
2020-01-20  9:18           ` Jose Abreu
2020-01-07  0:19     ` Andre Guedes
2020-01-07  9:29       ` Jose Abreu
2020-01-09  1:09         ` Andre Guedes
2019-12-31  4:30   ` David Ahern
2020-01-07  9:23     ` Jose Abreu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).