linux_dsm_epyc7002/drivers/net/ethernet/broadcom
Rafał Miłecki 34a5102c32 net: bgmac: allocate struct bgmac just once & don't copy it
So far were were allocating struct bgmac in 3 places: platform code,
bcma code and shared bgmac_enet_probe function. The reason for this was
bgmac_enet_probe:
1) Requiring early-filled struct bgmac
2) Calling alloc_etherdev on its own in order to use netdev_priv later

This solution got few drawbacks:
1) Was duplicating allocating code
2) Required copying early-filled struct
3) Resulted in platform/bcma code having access only to unused struct

Solve this situation by simply extracting some probe code into the new
bgmac_alloc function.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-01-31 13:44:48 -05:00
..
bnx2x drivers: net: generalize napi_complete_done() 2017-01-30 15:10:42 -05:00
bnxt drivers: net: generalize napi_complete_done() 2017-01-30 15:10:42 -05:00
genet
b44.c drivers: net: generalize napi_complete_done() 2017-01-30 15:10:42 -05:00
b44.h
bcm63xx_enet.c drivers: net: generalize napi_complete_done() 2017-01-30 15:10:42 -05:00
bcm63xx_enet.h
bcmsysport.c net: systemport: Add support for SYSTEMPORT Lite 2017-01-22 16:56:06 -05:00
bcmsysport.h net: systemport: Add support for SYSTEMPORT Lite 2017-01-22 16:56:06 -05:00
bgmac-bcma-mdio.c
bgmac-bcma.c net: bgmac: allocate struct bgmac just once & don't copy it 2017-01-31 13:44:48 -05:00
bgmac-platform.c net: bgmac: allocate struct bgmac just once & don't copy it 2017-01-31 13:44:48 -05:00
bgmac.c net: bgmac: allocate struct bgmac just once & don't copy it 2017-01-31 13:44:48 -05:00
bgmac.h net: bgmac: allocate struct bgmac just once & don't copy it 2017-01-31 13:44:48 -05:00
bnx2_fw.h
bnx2.c drivers: net: generalize napi_complete_done() 2017-01-30 15:10:42 -05:00
bnx2.h
cnic_defs.h
cnic_if.h
cnic.c
cnic.h
Kconfig
Makefile
sb1250-mac.c drivers: net: generalize napi_complete_done() 2017-01-30 15:10:42 -05:00
tg3.c
tg3.h