nfp: flower: check that we don't exceed the FW key size
authorLouis Peens <louis.peens@netronome.com>
Thu, 20 Aug 2020 14:39:37 +0000 (16:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Aug 2020 23:04:42 +0000 (16:04 -0700)
commite4cab45a19cde8c03e9af3124ef1513ed58ca3a6
tree85077b8f3f1aeb86f4ad54a7bc509ff54c186149
parent1e76a2ff317d0dd9db60b5d9bb6e8215c1513fa8
nfp: flower: check that we don't exceed the FW key size

Add a check to make sure the total length of the flow key sent to the
firmware stays within the supported limit.

Signed-off-by: Louis Peens <louis.peens@netronome.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/flower/main.h
drivers/net/ethernet/netronome/nfp/flower/match.c