]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: cls_flower: Use masked key when calling HW offloads
authorPaul Blakey <paulb@mellanox.com>
Wed, 14 Dec 2016 17:00:58 +0000 (19:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Dec 2016 15:44:35 +0000 (10:44 -0500)
commitc458d009bff5b2f1a6b2e8b039c9a8fe2fa33e8c
treee362e0d647151a2c26d037db341a12d5cabd7783
parent293919e7b5dbd09365477a00c7fad4b5d76faedc
net/sched: cls_flower: Use masked key when calling HW offloads

Zero bits on the mask signify a "don't care" on the corresponding bits
in key. Some HWs require those bits on the key to be zero. Since these
bits are masked anyway, it's okay to provide the masked key to all
drivers.

Fixes: 609f1261c1c5 ('net/flower: Introduce hardware offload support')
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>
net/sched/cls_flower.c