]> 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)
commit24550b4f06a51859fcdf9ff3c1c85175916362d0
tree540dae550837427e6ea1b8603c0a167bbfdb19be
parent2edf7f1aa0d1743fbe718fc1bd5556c85033af71
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