net/sched: cls_flower: Use mask for addr_type
authorPaul Blakey <paulb@mellanox.com>
Wed, 14 Dec 2016 17:00:57 +0000 (19:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Sep 2021 09:42:56 +0000 (11:42 +0200)
commit7a39f7689e27a892ab46bf760756550aad251360
treec0f7e36b4765a09adcd83ebb3123f9284857b4c1
parentf29268ea24baaed3bb0d72a9de28787991abf938
net/sched: cls_flower: Use mask for addr_type

commit 970bfcd09791282de7de6589bfe440eb11e2efd2 upstream.

When addr_type is set, mask should also be set.

Fixes: 66530bdf85eb ('sched,cls_flower: set key address type when present')
Fixes: bc3103f1ed40 ('net/sched: cls_flower: Classify packet in ip tunnels')
Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sched/cls_flower.c