OSDN Git Service

bnxt_en: Refactor code that determines RFS capability.
authorMichael Chan <michael.chan@broadcom.com>
Thu, 29 Dec 2016 17:13:37 +0000 (12:13 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Dec 2016 19:37:23 +0000 (14:37 -0500)
commit8079e8f107bf02e1e5ece89239dd2fb475a4735f
treef08d2753461d4af60ea6d2edbfd6134114f6116f
parent8fdefd63c203d9b2955d679704f4ed92bf40752c
bnxt_en: Refactor code that determines RFS capability.

Add function bnxt_rfs_supported() that determines if the chip supports
RFS.  Refactor the existing function bnxt_rfs_capable() that determines
if run-time conditions support RFS.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c