nfp: flower: use stats array instead of storing stats per flow
authorPieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>
Tue, 9 Oct 2018 01:57:35 +0000 (18:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Oct 2018 05:32:44 +0000 (22:32 -0700)
commit7fade1077c5056a9a489110516143bbdf5a013c8
tree7d8c9e7cfaf970de43ea2d91e341d5f922ed0b6f
parentc01d0efa5136c3eaec3ae26d1e0c8c25d3a69c65
nfp: flower: use stats array instead of storing stats per flow

Make use of an array stats instead of storing stats per flow which
would require a hash lookup at critical times.

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/main.h
drivers/net/ethernet/netronome/nfp/flower/metadata.c
drivers/net/ethernet/netronome/nfp/flower/offload.c