nfp: flower: inform firmware of flower features
authorLouis Peens <louis.peens@netronome.com>
Tue, 19 May 2020 14:15:02 +0000 (16:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 May 2020 22:27:21 +0000 (15:27 -0700)
commit465957c257f3083785fe8e954724cfac2e5d33e9
tree70a867ba94e3dc86b9e53f8858bd71f0ed64c712
parente09303d3c4d9d9f71657550d61eb00bc84c13859
nfp: flower: inform firmware of flower features

For backwards compatibility it may be required for the firmware to
disable certain features depending on the features supported by
the host. Combine the host feature bits and firmware feature bits
and write this back to the firmware.

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