[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 6 Jun 2017 11:09:01 -0700
From: Florian Fainelli <f.fainelli@...il.com>
To: Vivien Didelot <vivien.didelot@...oirfairelinux.com>,
netdev@...r.kernel.org
Cc: andrew@...n.ch, john@...ozen.org, davem@...emloft.net
Subject: Re: [PATCH net-next 1/5] net: dsa: Remove master_netdev and use
dst->cpu_dp->netdev
On 06/06/2017 10:24 AM, Vivien Didelot wrote:
> Hi Florian,
>
> Florian Fainelli <f.fainelli@...il.com> writes:
>
>> - struct net_device *p = ds->dst[ds->index].master_netdev;
>> + struct net_device *p = ds->dst[ds->index].cpu_dp->netdev;
>
> ds->dst->cpu_dp->netdev
>
> ds->dst is not an array anymore, lucky sf2 switch index is always 0 ;-)
>
>> struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds);
>> struct ethtool_wolinfo pwol;
>>
>> @@ -829,7 +829,7 @@ static void bcm_sf2_sw_get_wol(struct dsa_switch *ds, int port,
>> static int bcm_sf2_sw_set_wol(struct dsa_switch *ds, int port,
>> struct ethtool_wolinfo *wol)
>> {
>> - struct net_device *p = ds->dst[ds->index].master_netdev;
>> + struct net_device *p = ds->dst[ds->index].cpu_dp->netdev;
>
> same here.
It's changed in patch 5, so I did not bother doing an intermediate
change considering we ditch this eventually.
Thanks!
>
> Thanks,
>
> Vivien
>
--
Florian
Powered by blists - more mailing lists