nfp: flower: read extra feature support from fw
authorJohn Hurley <john.hurley@netronome.com>
Tue, 19 Dec 2017 16:58:27 +0000 (17:58 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Dec 2017 19:52:12 +0000 (14:52 -0500)
commit739973486f53a4c4145d41b21ec36fefb0983f68
tree36dd2de70fdf6eb1398dcaf721ac94ef1d1c6667
parent574f1e9cccba27001d4a2c3761b78bca24977052
nfp: flower: read extra feature support from fw

Extract the _abi_flower_extra_features symbol from the fw which gives a 64
bit bitmap of new features (on top of the flower base support) that the fw
can offload. Store this bitmap in the priv data associated with each app.
If the symbol does not exist, set the bitmap to 0.

Signed-off-by: John Hurley <john.hurley@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@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.c
drivers/net/ethernet/netronome/nfp/flower/main.h