]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: flower: check L4 matches on unknown IP protocols
authorPieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>
Thu, 13 Jun 2019 21:17:09 +0000 (14:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jun 2019 02:48:57 +0000 (19:48 -0700)
commitae3694940802912c3d379c60411a700643cfc4ae
treea38ba7a99fad82fe9f30a5ad200be91a7eb083a2
parent2e2cd52ea63caaaf5ef5d08bbef6466eb4f72f96
nfp: flower: check L4 matches on unknown IP protocols

Matching on fields with a protocol that is unknown to hardware
is not strictly unsupported. Determine if hardware can offload
a filter with an unknown protocol by checking if any L4 fields
are being matched as well.

Signed-off-by: Pieter Jansen van Vuuren <pieter.jansenvanvuuren@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