linux_dsm_epyc7002/drivers/net/ethernet/emulex/benet
Sathya Perla 78fad34eb8 be2net: move adapter fields alloc/free code to new routines
The members of be_adapter struct were being allocated in two separate
routines -- be_ctrl_init() and be_stats_init(). Also, some other members
were allocated elsewhere. This patch moves the alloc/free code into
be_drv_init/cleanup() routines. The be_pci_map_bars() routine that was
called from be_ctrl_init() is now called directly from be_probe().
The new routine be_drv_init() will now be the place-holder for allocating
memory for any new be_adapter{} members in the future.
Some routines needed to be moved to provide forward definitions for their
calls.

Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: Kalesh AP <kalesh.purayil@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-02-23 15:08:31 -05:00
..
be_cmds.c be2net: process port misconfig async event 2015-02-07 22:50:59 -08:00
be_cmds.h be2net: process port misconfig async event 2015-02-07 22:50:59 -08:00
be_ethtool.c be2net: fix failure case in setting flow control 2015-01-24 17:22:42 -08:00
be_hw.h be2net: avoid unncessary swapping of fields in eth_tx_wrb 2015-02-07 22:50:59 -08:00
be_main.c be2net: move adapter fields alloc/free code to new routines 2015-02-23 15:08:31 -05:00
be_roce.c be2net: add blank line after declarations 2014-09-22 15:01:08 -04:00
be_roce.h be2net: Issue shutdown event to ocrdma driver 2014-08-01 15:07:36 -07:00
be.h be2net: Minor code cleanup in tx completion process 2015-02-20 14:06:57 -05:00
Kconfig be2net: fix build dependency on VxLAN 2014-04-01 16:25:51 -04:00
Makefile be2net: Add functionality to support RoCE driver 2012-05-08 11:17:47 -07:00