Skip to content

Commit

Permalink
Documentation: add a guideline for hard_start_xmit method
Browse files Browse the repository at this point in the history
Add a guideline not to modify SKBs.

Signed-off-by: Matti Linnanvuori <mattilinnanvuori@yahoo.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Matti Linnanvuori authored and Jeff Garzik committed Jan 18, 2008
1 parent be63a21 commit ce3ba13
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Documentation/networking/driver.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ Transmit path guidelines:
2) Do not forget to update netdev->trans_start to jiffies after
each new tx packet is given to the hardware.

3) Do not forget that once you return 0 from your hard_start_xmit
3) A hard_start_xmit method must not modify the shared parts of a
cloned SKB.

4) Do not forget that once you return 0 from your hard_start_xmit
method, it is your driver's responsibility to free up the SKB
and in some finite amount of time.

Expand Down

0 comments on commit ce3ba13

Please sign in to comment.