* [PATCH v2 iproute2 1/1] tc classifiers: Modernize tcindex classifier
@ 2016-08-22 11:17 Jamal Hadi Salim
2016-08-22 17:08 ` Stephen Hemminger
0 siblings, 1 reply; 2+ messages in thread
From: Jamal Hadi Salim @ 2016-08-22 11:17 UTC (permalink / raw)
To: stephen; +Cc: netdev, Jamal Hadi Salim
From: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
---
tc/f_tcindex.c | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/tc/f_tcindex.c b/tc/f_tcindex.c
index 280d1d4..32bccb0 100644
--- a/tc/f_tcindex.c
+++ b/tc/f_tcindex.c
@@ -23,7 +23,7 @@ static void explain(void)
}
static int tcindex_parse_opt(struct filter_util *qu, char *handle, int argc,
- char **argv, struct nlmsghdr *n)
+ char **argv, struct nlmsghdr *n)
{
struct tcmsg *t = NLMSG_DATA(n);
struct rtattr *tail;
@@ -49,7 +49,8 @@ static int tcindex_parse_opt(struct filter_util *qu, char *handle, int argc,
explain();
return -1;
}
- addattr_l(n, 4096, TCA_TCINDEX_HASH, &hash, sizeof(hash));
+ addattr_l(n, 4096, TCA_TCINDEX_HASH, &hash,
+ sizeof(hash));
} else if (!strcmp(*argv,"mask")) {
__u16 mask;
@@ -59,7 +60,8 @@ static int tcindex_parse_opt(struct filter_util *qu, char *handle, int argc,
explain();
return -1;
}
- addattr_l(n, 4096, TCA_TCINDEX_MASK, &mask, sizeof(mask));
+ addattr_l(n, 4096, TCA_TCINDEX_MASK, &mask,
+ sizeof(mask));
} else if (!strcmp(*argv,"shift")) {
int shift;
@@ -99,7 +101,7 @@ static int tcindex_parse_opt(struct filter_util *qu, char *handle, int argc,
continue;
} else if (!strcmp(*argv,"action")) {
NEXT_ARG();
- if (parse_police(&argc, &argv, TCA_TCINDEX_ACT, n)) {
+ if (parse_action(&argc, &argv, TCA_TCINDEX_ACT, n)) {
fprintf(stderr, "Illegal \"action\"\n");
return -1;
}
@@ -117,7 +119,7 @@ static int tcindex_parse_opt(struct filter_util *qu, char *handle, int argc,
static int tcindex_print_opt(struct filter_util *qu, FILE *f,
- struct rtattr *opt, __u32 handle)
+ struct rtattr *opt, __u32 handle)
{
struct rtattr *tb[TCA_TCINDEX_MAX+1];
@@ -171,7 +173,7 @@ static int tcindex_print_opt(struct filter_util *qu, FILE *f,
}
if (tb[TCA_TCINDEX_ACT]) {
fprintf(f, "\n");
- tc_print_police(f, tb[TCA_TCINDEX_ACT]);
+ tc_print_action(f, tb[TCA_TCINDEX_ACT]);
}
return 0;
}
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2 iproute2 1/1] tc classifiers: Modernize tcindex classifier
2016-08-22 11:17 [PATCH v2 iproute2 1/1] tc classifiers: Modernize tcindex classifier Jamal Hadi Salim
@ 2016-08-22 17:08 ` Stephen Hemminger
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2016-08-22 17:08 UTC (permalink / raw)
To: Jamal Hadi Salim; +Cc: netdev
On Mon, 22 Aug 2016 07:17:33 -0400
Jamal Hadi Salim <jhs@mojatatu.com> wrote:
> From: Jamal Hadi Salim <jhs@mojatatu.com>
>
> Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Applied
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-08-22 17:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-22 11:17 [PATCH v2 iproute2 1/1] tc classifiers: Modernize tcindex classifier Jamal Hadi Salim
2016-08-22 17:08 ` 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).