* [PATCH iproute2] tc: m_ife: fix match tcindex parsing
@ 2017-10-30 16:37 Alexander Aring
2017-10-31 16:59 ` Stephen Hemminger
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Aring @ 2017-10-30 16:37 UTC (permalink / raw)
To: stephen; +Cc: netdev, jhs, Alexander Aring
This patch changes ife_prio to ife_tcindex which is right variable to
assign in the argument in this case.
Signed-off-by: Alexander Aring <aring@mojatatu.com>
---
Found by inspection the code.
tc/m_ife.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tc/m_ife.c b/tc/m_ife.c
index 5633ab90..8d0fd31f 100644
--- a/tc/m_ife.c
+++ b/tc/m_ife.c
@@ -93,7 +93,7 @@ static int parse_ife(struct action_util *a, int *argc_p, char ***argv_p,
} else if (matches(*argv, "prio") == 0) {
ife_prio = IFE_META_PRIO;
} else if (matches(*argv, "tcindex") == 0) {
- ife_prio = IFE_META_TCINDEX;
+ ife_tcindex = IFE_META_TCINDEX;
} else {
fprintf(stderr, "Illegal meta define <%s>\n",
*argv);
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-31 16:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-30 16:37 [PATCH iproute2] tc: m_ife: fix match tcindex parsing Alexander Aring
2017-10-31 16:59 ` Stephen Hemminger
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).