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)
commit1a7fca63cd405fc77a9c9ce9291792f2a7d222a4
tree540dae550837427e6ea1b8603c0a167bbfdb19be
parenta01aa920b8e39069bb7ab352ce45f127238f1d26
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