Skip to contentSkip to conversation

Documentation: add a guideline for hard_start_xmit method

PATCH Applied Matti Linnanvuori 2 participants 2 messages Jan 15, 2008 – Jan 18, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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

From: Matti Linnanvuori <[email protected]>

Add a guideline not to modify SKBs.

---

Documentation/networking/driver.txt 2008-01-15 16:16:14.636054000 +0200 renamed from Documentation/networking/driver.txt 2008-01-13 07:14:01.608291500 +0200 +4 -1
@@ -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.
 
      ____________________________________________________________________________________

Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs

Applied
#1 lore raw
Quoted 11 lines · Matti Linnanvuori

From: Matti Linnanvuori <[email protected]>

Add a guideline not to modify SKBs.

---

Documentation/networking/driver.txt 2008-01-15 16:16:14.636054000 +0200 Transmit path guidelines: · line 69

Quoted 10 lines
Documentation/networking/driver.txt 2008-01-15 16:16:14.636054000 +0200 renamed from Documentation/networking/driver.txt 2008-01-13 07:14:01.608291500 +0200 +4 -1
@@ -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.

applied