]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit403b78925f41182f4d4f4a13e3bfaf4f55094fbc
tree3ee760b2502d10112fd7afee5eaee4323ab43622
parent83f7a5c3abe3153115a615145d7e40a9c23645ac
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