]> git.baikalelectronics.ru Git - kernel.git/commit
flower: check unused bits in MPLS fields
authorBenjamin LaHaise <benjamin.lahaise@netronome.com>
Mon, 1 May 2017 13:58:40 +0000 (09:58 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 May 2017 15:12:21 +0000 (11:12 -0400)
commitd704078b128be4c6fea3d289e4c266f5048073bd
tree540dae550837427e6ea1b8603c0a167bbfdb19be
parent44d9171aa6b24ded3cba66ab19437a31f28f3d9c
flower: check unused bits in MPLS fields

Since several of the the netlink attributes used to configure the flower
classifier's MPLS TC, BOS and Label fields have additional bits which are
unused, check those bits to ensure that they are actually 0 as suggested
by Jamal.

Signed-off-by: Benjamin LaHaise <benjamin.lahaise@netronome.com>
Cc: David Miller <davem@davemloft.net>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: Simon Horman <simon.horman@netronome.com>
Cc: Jakub Kicinski <kubakici@wp.pl>
Cc: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_flower.c