Skip to content

Commit e1e284a

Browse files
tgrafdavem330
authored andcommitted
[PKT_SCHED]: Dump classification result for basic classifier
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 4890062 commit e1e284a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎net/sched/cls_basic.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,9 @@ static int basic_dump(struct tcf_proto *tp, unsigned long fh,
261261
rta = (struct rtattr *) b;
262262
RTA_PUT(skb, TCA_OPTIONS, 0, NULL);
263263

264+
if (f->res.classid)
265+
RTA_PUT(skb, TCA_BASIC_CLASSID, sizeof(u32), &f->res.classid);
266+
264267
if (tcf_exts_dump(skb, &f->exts, &basic_ext_map) < 0 ||
265268
tcf_em_tree_dump(skb, &f->ematches, TCA_BASIC_EMATCHES) < 0)
266269
goto rtattr_failure;

0 commit comments

Comments
 (0)