diff options
author | Jie Deng <Jie.Deng1@synopsys.com> | 2017-04-12 13:10:06 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-13 13:46:38 -0400 |
commit | d4d49bc145e830fdcfdcfba9ef4b7db5d0b1f8a7 (patch) | |
tree | fa3d2ca27451ad47a20d8e8d425e7ac23b570c5b /drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c | |
parent | net: ipv4: Refine the ipv4_default_advmss (diff) | |
download | linux-dev-d4d49bc145e830fdcfdcfba9ef4b7db5d0b1f8a7.tar.xz linux-dev-d4d49bc145e830fdcfdcfba9ef4b7db5d0b1f8a7.zip |
net: dwc-xlgmac: add the initial ethtool support
It is necessary to provide ethtool support for displaying and
modifying parameters of dwc-xlgmac.
Signed-off-by: Jie Deng <jiedeng@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c')
-rw-r--r-- | drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c b/drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c index 0dec1dcf8457..458a7844260a 100644 --- a/drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c +++ b/drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c @@ -835,12 +835,14 @@ static void xlgmac_dev_xmit(struct xlgmac_channel *channel) desc_data->skb_dma_len); /* VLAN tag insertion check */ - if (vlan) + if (vlan) { dma_desc->desc2 = XLGMAC_SET_REG_BITS_LE( dma_desc->desc2, TX_NORMAL_DESC2_VTIR_POS, TX_NORMAL_DESC2_VTIR_LEN, TX_NORMAL_DESC2_VLAN_INSERT); + pdata->stats.tx_vlan_packets++; + } /* Timestamp enablement check */ if (XLGMAC_GET_REG_BITS(pkt_info->attributes, |