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>
This commit is contained in:

committed by
David S. Miller

parent
7ed14d973f
commit
d4d49bc145
@@ -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,
|
||||
|
Reference in New Issue
Block a user