]> 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)
commit137a4e4c53b82b119d882952ddfbdfad47573f23
treee13507fc16211a3f250a674ee8ea9b80838b1405
parentc6f8e1f8e77b23ceba595fbff85709b3070ec8e4
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