Skip to contentSkip to conversation

Documentation: add a guideline for hard_start_xmit method

PATCH Superseded Matti Linnanvuori 2 participants 2 messages Jan 13, 2008

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Documentation: add a guideline for hard_start_xmit method

From: Matti Linnanvuori <[email protected]>

Add a guideline for hard_start_xmit method not to
modify SKB.

---

Documentation/networking/driver.txt 2008-01-13 07:13:40.535421500 +0200 renamed from Documentation/networking/driver.txt 2008-01-13 07:14:01.608291500 +0200 +3 -1
@@ -61,7 +61,9 @@
 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 the 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.
 
      ____________________________________________________________________________________

Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping

#1 lore raw
Quoted 3 lines · Matti Linnanvuori

-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 the SKB.

Only if it's cloned.

Cheers,

Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt