diff options
author | David Gounaris <david.gounaris@infinera.com> | 2018-09-03 15:47:27 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-04 08:14:41 +0300 |
commit | 8978ca7c8b7b0710309eb7bf155179d21f5dd3fb (patch) | |
tree | d12674139179d8558e6fefc211fb01ffe037bc92 /drivers/net/wan/fsl_ucc_hdlc.c | |
parent | 43a78e0e64d1122fb85527dd96fa786b4084e0df (diff) | |
download | linux-8978ca7c8b7b0710309eb7bf155179d21f5dd3fb.tar.xz |
net/wan/fsl_ucc_hdlc: Adding ARPHRD_ETHER
This patch is to avoid discarding ethernet
packets when using HDLC_ETH protocol.
Signed-off-by: David Gounaris <david.gounaris@infinera.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan/fsl_ucc_hdlc.c')
-rw-r--r-- | drivers/net/wan/fsl_ucc_hdlc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c index df5661d57d87..128230ab53a7 100644 --- a/drivers/net/wan/fsl_ucc_hdlc.c +++ b/drivers/net/wan/fsl_ucc_hdlc.c @@ -375,6 +375,10 @@ static netdev_tx_t ucc_hdlc_tx(struct sk_buff *skb, struct net_device *dev) dev->stats.tx_bytes += skb->len; break; + case ARPHRD_ETHER: + dev->stats.tx_bytes += skb->len; + break; + default: dev->stats.tx_dropped++; dev_kfree_skb(skb); @@ -512,6 +516,7 @@ static int hdlc_rx_done(struct ucc_hdlc_private *priv, int rx_work_limit) break; case ARPHRD_PPP: + case ARPHRD_ETHER: length -= HDLC_CRC_SIZE; skb = dev_alloc_skb(length); |