]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Move netif_napi_add to the open call
authorMerav Sicron <meravs@broadcom.com>
Mon, 27 Aug 2012 03:26:19 +0000 (03:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Aug 2012 17:36:46 +0000 (13:36 -0400)
commit27fc19612b2a3561ef23efecb7dbe151e48cc721
treef2c3ddd616e9cd031446d25c1e5e29649be7b0e3
parenta164eea2ae3985bc211db3515dae5bee5c630a8d
bnx2x: Move netif_napi_add to the open call

Move netif_napi_add for all queues from the probe call to the open call, to
avoid the case that napi objects are added for queues that may eventually not
be initialized and activated. With the former behavior, the driver could crash
when netpoll was calling ndo_poll_controller.

Signed-off-by: Merav Sicron <meravs@broadcom.com>
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c