]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit50e521ff8bd40eadc6d5c7074e2ac92c09176f3a
tree36dd2de70fdf6eb1398dcaf721ac94ef1d1c6667
parent62d282b4d2b67822369c4fe4e43d08a447e3e6a4
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