nfp: don't assume RSS and IRQ moderation are always enabled
authorJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 16 May 2017 00:55:18 +0000 (17:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 May 2017 16:59:02 +0000 (12:59 -0400)
commitad50451e9a3a1a99fa94c4955efd43b79a517747
tree3ee760b2502d10112fd7afee5eaee4323ab43622
parent28063be693c23340a17164a8e4bb347f0d9d1440
nfp: don't assume RSS and IRQ moderation are always enabled

Even if capability for RSS and IRQ moderation are present we may
have not initialized them for control vNIC.  Depend on selected
features mask (ctrl) rather than capabilities (cap) to determine
which features should be enabled.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_common.c