[iproute2,1/1] tc: print actual action for sample action

Message ID 1520949430-14491-1-git-send-email-mrv@mojatatu.com
State Accepted
Delegated to: stephen hemminger
Headers show
Series
  • [iproute2,1/1] tc: print actual action for sample action
Related show

Commit Message

Roman Mashak March 13, 2018, 1:57 p.m.
Signed-off-by: Roman Mashak <mrv@mojatatu.com>
---
 tc/m_sample.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Stephen Hemminger March 16, 2018, 8:39 p.m. | #1
On Tue, 13 Mar 2018 09:57:10 -0400
Roman Mashak <mrv@mojatatu.com> wrote:

> Signed-off-by: Roman Mashak <mrv@mojatatu.com>

Thanks for catching this, applied.

Patch

diff --git a/tc/m_sample.c b/tc/m_sample.c
index ff5ee6bd1ef6..d88846c63be3 100644
--- a/tc/m_sample.c
+++ b/tc/m_sample.c
@@ -163,6 +163,8 @@  static int print_sample(struct action_util *au, FILE *f, struct rtattr *arg)
 		fprintf(f, " trunc_size %d",
 			rta_getattr_u32(tb[TCA_SAMPLE_TRUNC_SIZE]));
 
+	print_action_control(f, " ", p->action, "");
+
 	fprintf(f, "\n\tindex %d ref %d bind %d", p->index, p->refcnt,
 		p->bindcnt);