bnxt_en: Allocate rx_cpu_rmap only if Accelerated RFS is enabled.
authorMichael Chan <mchan@broadcom.com>
Sun, 27 Dec 2015 23:19:22 +0000 (18:19 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Dec 2015 05:57:28 +0000 (00:57 -0500)
commit45019a180358c3cf290c3f3dc953c44f978d5527
tree6fe75b32b4175467b2472330aed1ce492d47bb32
parent665e350ddbfde88c5c18142dfd7b8c64556bc964
bnxt_en: Allocate rx_cpu_rmap only if Accelerated RFS is enabled.

Also, no need to check for bp->rx_nr_rings as it is always >= 1.  If the
allocation fails, it is not a fatal error and we can still proceed.

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