net/sfc: ignore spec bits not covered by mask
authorAndrew Rybchenko <arybchenko@solarflare.com>
Wed, 25 Apr 2018 17:18:34 +0000 (18:18 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 27 Apr 2018 17:00:57 +0000 (18:00 +0100)
commitc43e0f690413fc7233b735e641f22e8eb47c50c0
treeb3f1bcb729042aba33660e5caba4a7e37844362f
parentcf80ba6e2038a54b6c5ba62ce4200234f5aa3880
net/sfc: ignore spec bits not covered by mask

mask is a simple bit-mask applied before interpreting the contents
of spec and last.

Fixes: a9825ccf5bb8 ("net/sfc: support flow API filters")
Cc: stable@dpdk.org
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Andy Moreton <amoreton@solarflare.com>
Reviewed-by: Roman Zhukov <roman.zhukov@oktetlabs.ru>
drivers/net/sfc/sfc_flow.c