Skip to content

Commit

Permalink
net: bcmgenet: add skb_tx_timestamp call
Browse files Browse the repository at this point in the history
The BCMGENET driver was not TX timestamping the SKBs it queued for
transmission, do this in bcmgenet_xmit() right before kicking the
Transmit DMA engine.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Florian Fainelli authored and David S. Miller committed Mar 20, 2014
1 parent 9460c93 commit d03825f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ethernet/broadcom/genet/bcmgenet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1176,6 +1176,8 @@ static netdev_tx_t bcmgenet_xmit(struct sk_buff *skb, struct net_device *dev)
}
}

skb_tx_timestamp(skb);

/* we kept a software copy of how much we should advance the TDMA
* producer index, now write it down to the hardware
*/
Expand Down

0 comments on commit d03825f

Please sign in to comment.