Re: [PATCH 1/3] net: bgmac: allocate struct bgmac just once & don't copy it

2017-01-27 Thread Rafał Miłecki
On 27 January 2017 at 17:14, David Miller wrote: > From: Felix Fietkau > Date: Fri, 27 Jan 2017 17:02:33 +0100 > >> On 2017-01-27 10:20, Rafał Miłecki wrote: >>> From: Rafał Miłecki >>> >>> To share as much code as possible in bgmac we call

Re: [PATCH 1/3] net: bgmac: allocate struct bgmac just once & don't copy it

2017-01-27 Thread David Miller
From: Felix Fietkau Date: Fri, 27 Jan 2017 17:02:33 +0100 > On 2017-01-27 10:20, Rafał Miłecki wrote: >> From: Rafał Miłecki >> >> To share as much code as possible in bgmac we call alloc_etherdev from >> bgmac.c which is used by both: platform and bcma code.

Re: [PATCH 1/3] net: bgmac: allocate struct bgmac just once & don't copy it

2017-01-27 Thread Felix Fietkau
On 2017-01-27 10:20, Rafał Miłecki wrote: > From: Rafał Miłecki > > To share as much code as possible in bgmac we call alloc_etherdev from > bgmac.c which is used by both: platform and bcma code. The easiest > solution was to use it for allocating whole struct bgmac but it

[PATCH 1/3] net: bgmac: allocate struct bgmac just once & don't copy it

2017-01-27 Thread Rafał Miłecki
From: Rafał Miłecki To share as much code as possible in bgmac we call alloc_etherdev from bgmac.c which is used by both: platform and bcma code. The easiest solution was to use it for allocating whole struct bgmac but it doesn't work well as we already get early-filled struct