diff options
author | Rasesh Mody <rmody@brocade.com> | 2013-12-17 17:07:31 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-18 00:30:33 -0500 |
commit | fee1253e280a6114688958f4762a838d4d9bc306 (patch) | |
tree | 11451b8b802caced2d3f8794f4c284d5a8343383 /drivers/net/ethernet/brocade/bna/bnad.c | |
parent | e3fec2f74f7f90d2149a24243a4d040caabe6f30 (diff) | |
download | op-kernel-dev-fee1253e280a6114688958f4762a838d4d9bc306.zip op-kernel-dev-fee1253e280a6114688958f4762a838d4d9bc306.tar.gz |
bna: Add software timestamping support
- Invoke skb_tx_timestamp() API just before invoking txq_doorbell()
- Add ethtool (-T) support
Signed-off-by: Rasesh Mody <rmody@brocade.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/brocade/bna/bnad.c')
-rw-r--r-- | drivers/net/ethernet/brocade/bna/bnad.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/brocade/bna/bnad.c b/drivers/net/ethernet/brocade/bna/bnad.c index f1a516b..1790959 100644 --- a/drivers/net/ethernet/brocade/bna/bnad.c +++ b/drivers/net/ethernet/brocade/bna/bnad.c @@ -2911,6 +2911,8 @@ bnad_start_xmit(struct sk_buff *skb, struct net_device *netdev) if (unlikely(!test_bit(BNAD_TXQ_TX_STARTED, &tcb->flags))) return NETDEV_TX_OK; + skb_tx_timestamp(skb); + bna_txq_prod_indx_doorbell(tcb); smp_mb(); |