nfp: add whitelist of supported flow dissector
authorPieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>
Wed, 13 Sep 2017 17:15:58 +0000 (10:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Sep 2017 20:29:13 +0000 (13:29 -0700)
commitb95a2d831b815189618d18e3e89bcfa5072351a1
tree176e30114852389566c9a2944b3f2d369714062c
parent255cd50f207ae8ec7b22663246c833407744e634
nfp: add whitelist of supported flow dissector

Previously we did not check the flow dissector against a list of allowed
and supported flow key dissectors. This patch introduces such a list and
correctly rejects unsupported flow keys.

Fixes: 43f84b72c50d ("nfp: add metadata to each flow offload")
Signed-off-by: Pieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/flower/offload.c