]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: cls_flower: Fix missing addr_type in classify
authorPaul Blakey <paulb@mellanox.com>
Wed, 28 Dec 2016 12:54:47 +0000 (14:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Dec 2016 19:28:13 +0000 (14:28 -0500)
commit7e331672903c7643f3ee4f6689786fac8a5a22f4
tree556ed18ccf957bad0ccc8b62d6b8c6b4506bfd38
parent5a2406613e3dc1e0c46ffdbbd0484c7d7e722719
net/sched: cls_flower: Fix missing addr_type in classify

Since we now use a non zero mask on addr_type, we are matching on its
value (IPV4/IPV6). So before this fix, matching on enc_src_ip/enc_dst_ip
failed in SW/classify path since its value was zero.
This patch sets the proper value of addr_type for encapsulated packets.

Fixes: 293919e7b5db ('net/sched: cls_flower: Use mask for addr_type')
Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Hadar Hen Zion <hadarh@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_flower.c