On 06/06/2017 10:24 AM, Vivien Didelot wrote:
Hi Florian,
Florian Fainelli [off-list ref] writes:
quoted
- 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 ;-)
quoted
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