]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: replace nprio by a bool to make the function more readable
authorJiri Pirko <jiri@mellanox.com>
Wed, 17 May 2017 09:07:57 +0000 (11:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 May 2017 19:22:13 +0000 (15:22 -0400)
commit572eb6f973883667aad7b03a8570d53c640f2903
treee13507fc16211a3f250a674ee8ea9b80838b1405
parent3eac32c9941bea31e730a70c8581e996ca1c1a94
net: sched: replace nprio by a bool to make the function more readable

The use of "nprio" variable in tc_ctl_tfilter is a bit cryptic and makes
a reader wonder what is going on for a while. So help him to understand
this priority allocation dance a litte bit better.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_api.c