Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dff3fde7 authored by Krzysztof Hałasa's avatar Krzysztof Hałasa Committed by David S. Miller
Browse files

WAN: Allow hw HDLC drivers to override dev->get_stats.



Use the internal get_stats() by default.
Fixes LMC and wanXL drivers.

Signed-off-by: default avatarKrzysztof Hałasa <khc@pm.waw.pl>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7cdc15f5
Loading
Loading
Loading
Loading
+1 −11
Original line number Original line Diff line number Diff line
@@ -52,15 +52,6 @@ static int hdlc_change_mtu(struct net_device *dev, int new_mtu)
	return 0;
	return 0;
}
}




static struct net_device_stats *hdlc_get_stats(struct net_device *dev)
{
	return &dev->stats;
}



static int hdlc_rcv(struct sk_buff *skb, struct net_device *dev,
static int hdlc_rcv(struct sk_buff *skb, struct net_device *dev,
		    struct packet_type *p, struct net_device *orig_dev)
		    struct packet_type *p, struct net_device *orig_dev)
{
{
@@ -233,7 +224,6 @@ static void hdlc_setup_dev(struct net_device *dev)
	/* Re-init all variables changed by HDLC protocol drivers,
	/* Re-init all variables changed by HDLC protocol drivers,
	 * including ether_setup() called from hdlc_raw_eth.c.
	 * including ether_setup() called from hdlc_raw_eth.c.
	 */
	 */
	dev->get_stats		 = hdlc_get_stats;
	dev->flags		 = IFF_POINTOPOINT | IFF_NOARP;
	dev->flags		 = IFF_POINTOPOINT | IFF_NOARP;
	dev->priv_flags		 = IFF_WAN_HDLC;
	dev->priv_flags		 = IFF_WAN_HDLC;
	dev->mtu		 = HDLC_MAX_MTU;
	dev->mtu		 = HDLC_MAX_MTU;