Commit fee1253e authored by Rasesh Mody's avatar Rasesh Mody Committed by David S. Miller

bna: Add software timestamping support

- Invoke skb_tx_timestamp() API just before invoking txq_doorbell()
 - Add ethtool (-T) support
Signed-off-by: default avatarRasesh Mody <rmody@brocade.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e3fec2f7
...@@ -2911,6 +2911,8 @@ bnad_start_xmit(struct sk_buff *skb, struct net_device *netdev) ...@@ -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))) if (unlikely(!test_bit(BNAD_TXQ_TX_STARTED, &tcb->flags)))
return NETDEV_TX_OK; return NETDEV_TX_OK;
skb_tx_timestamp(skb);
bna_txq_prod_indx_doorbell(tcb); bna_txq_prod_indx_doorbell(tcb);
smp_mb(); smp_mb();
......
...@@ -1131,6 +1131,7 @@ static const struct ethtool_ops bnad_ethtool_ops = { ...@@ -1131,6 +1131,7 @@ static const struct ethtool_ops bnad_ethtool_ops = {
.get_eeprom = bnad_get_eeprom, .get_eeprom = bnad_get_eeprom,
.set_eeprom = bnad_set_eeprom, .set_eeprom = bnad_set_eeprom,
.flash_device = bnad_flash_device, .flash_device = bnad_flash_device,
.get_ts_info = ethtool_op_get_ts_info,
}; };
void void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment