提交 de7aca16 编写于 作者: B Ben Hutchings 提交者: David S. Miller

doc, net: Remove instruction to set net_device::trans_start

Commit 08baf561 ('net:
txq_trans_update() helper') made it unnecessary for most drivers to
set net_device::trans_start (or netdev_queue::trans_start).
Signed-off-by: NBen Hutchings <bhutchings@solarflare.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 b3cf6545
...@@ -58,13 +58,10 @@ Transmit path guidelines: ...@@ -58,13 +58,10 @@ Transmit path guidelines:
TX_BUFFS_AVAIL(dp) > 0) TX_BUFFS_AVAIL(dp) > 0)
netif_wake_queue(dp->dev); netif_wake_queue(dp->dev);
2) Do not forget to update netdev->trans_start to jiffies after 2) An ndo_start_xmit method must not modify the shared parts of a
each new tx packet is given to the hardware.
3) An ndo_start_xmit method must not modify the shared parts of a
cloned SKB. cloned SKB.
4) Do not forget that once you return 0 from your ndo_start_xmit 3) Do not forget that once you return 0 from your ndo_start_xmit
method, it is your driver's responsibility to free up the SKB method, it is your driver's responsibility to free up the SKB
and in some finite amount of time. and in some finite amount of time.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册