aboutsummaryrefslogtreecommitdiffstats
path: root/net/dsa
diff options
context:
space:
mode:
Diffstat (limited to 'net/dsa')
-rw-r--r--net/dsa/slave.c2
-rw-r--r--net/dsa/tag_dsa.c1
-rw-r--r--net/dsa/tag_edsa.c1
-rw-r--r--net/dsa/tag_trailer.c1
4 files changed, 1 insertions, 4 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c
index 1af5a79309e9..a3a410d20da0 100644
--- a/net/dsa/slave.c
+++ b/net/dsa/slave.c
@@ -352,7 +352,7 @@ dsa_slave_create(struct dsa_switch *ds, struct device *parent,
352 netif_carrier_off(slave_dev); 352 netif_carrier_off(slave_dev);
353 353
354 if (p->phy != NULL) { 354 if (p->phy != NULL) {
355 phy_attach(slave_dev, p->phy->dev.bus_id, 355 phy_attach(slave_dev, dev_name(&p->phy->dev),
356 0, PHY_INTERFACE_MODE_GMII); 356 0, PHY_INTERFACE_MODE_GMII);
357 357
358 p->phy->autoneg = AUTONEG_ENABLE; 358 p->phy->autoneg = AUTONEG_ENABLE;
diff --git a/net/dsa/tag_dsa.c b/net/dsa/tag_dsa.c
index 31866543332e..f99a019b939e 100644
--- a/net/dsa/tag_dsa.c
+++ b/net/dsa/tag_dsa.c
@@ -162,7 +162,6 @@ static int dsa_rcv(struct sk_buff *skb, struct net_device *dev,
162 skb->pkt_type = PACKET_HOST; 162 skb->pkt_type = PACKET_HOST;
163 skb->protocol = eth_type_trans(skb, skb->dev); 163 skb->protocol = eth_type_trans(skb, skb->dev);
164 164
165 skb->dev->last_rx = jiffies;
166 skb->dev->stats.rx_packets++; 165 skb->dev->stats.rx_packets++;
167 skb->dev->stats.rx_bytes += skb->len; 166 skb->dev->stats.rx_bytes += skb->len;
168 167
diff --git a/net/dsa/tag_edsa.c b/net/dsa/tag_edsa.c
index 9f4ce55eae59..328ec957f786 100644
--- a/net/dsa/tag_edsa.c
+++ b/net/dsa/tag_edsa.c
@@ -181,7 +181,6 @@ static int edsa_rcv(struct sk_buff *skb, struct net_device *dev,
181 skb->pkt_type = PACKET_HOST; 181 skb->pkt_type = PACKET_HOST;
182 skb->protocol = eth_type_trans(skb, skb->dev); 182 skb->protocol = eth_type_trans(skb, skb->dev);
183 183
184 skb->dev->last_rx = jiffies;
185 skb->dev->stats.rx_packets++; 184 skb->dev->stats.rx_packets++;
186 skb->dev->stats.rx_bytes += skb->len; 185 skb->dev->stats.rx_bytes += skb->len;
187 186
diff --git a/net/dsa/tag_trailer.c b/net/dsa/tag_trailer.c
index efd26697e716..b59132878ad1 100644
--- a/net/dsa/tag_trailer.c
+++ b/net/dsa/tag_trailer.c
@@ -98,7 +98,6 @@ static int trailer_rcv(struct sk_buff *skb, struct net_device *dev,
98 skb->pkt_type = PACKET_HOST; 98 skb->pkt_type = PACKET_HOST;
99 skb->protocol = eth_type_trans(skb, skb->dev); 99 skb->protocol = eth_type_trans(skb, skb->dev);
100 100
101 skb->dev->last_rx = jiffies;
102 skb->dev->stats.rx_packets++; 101 skb->dev->stats.rx_packets++;
103 skb->dev->stats.rx_bytes += skb->len; 102 skb->dev->stats.rx_bytes += skb->len;
104 103