]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit2a04784594f67b795bb4c08dd83cfc88c8311276
treea38ba7a99fad82fe9f30a5ad200be91a7eb083a2
parentb4a6d9abeb545d79cc76f150f31c3cebc3472287
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