diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2012-04-05 10:40:06 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-06 02:43:13 -0400 |
commit | de7aca16fd6c32719b6a7d4480b8f4685f69f7ff (patch) | |
tree | e0e0607284f69688c6f5584e79e2b5a4653add00 /Documentation | |
parent | b3cf65457fc0c8d183bdb9bc4358e5706aa63cc5 (diff) |
doc, net: Remove instruction to set net_device::trans_start
Commit 08baf561083bc27a953aa087dd8a664bb2b88e8e ('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: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/networking/driver.txt | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Documentation/networking/driver.txt b/Documentation/networking/driver.txt index 83ce06080ceb..2128e4169c5b 100644 --- a/Documentation/networking/driver.txt +++ b/Documentation/networking/driver.txt | |||
@@ -58,13 +58,10 @@ Transmit path guidelines: | |||
58 | TX_BUFFS_AVAIL(dp) > 0) | 58 | TX_BUFFS_AVAIL(dp) > 0) |
59 | netif_wake_queue(dp->dev); | 59 | netif_wake_queue(dp->dev); |
60 | 60 | ||
61 | 2) Do not forget to update netdev->trans_start to jiffies after | 61 | 2) An ndo_start_xmit method must not modify the shared parts of a |
62 | each new tx packet is given to the hardware. | ||
63 | |||
64 | 3) An ndo_start_xmit method must not modify the shared parts of a | ||
65 | cloned SKB. | 62 | cloned SKB. |
66 | 63 | ||
67 | 4) Do not forget that once you return 0 from your ndo_start_xmit | 64 | 3) Do not forget that once you return 0 from your ndo_start_xmit |
68 | method, it is your driver's responsibility to free up the SKB | 65 | method, it is your driver's responsibility to free up the SKB |
69 | and in some finite amount of time. | 66 | and in some finite amount of time. |
70 | 67 | ||