瀏覽代碼

skbuff.h: Fix comment for NET_IP_ALIGN

Use the correct function call for skb_reserve in the comment for
NET_IP_ALIGN.

Signed-off-by: Tobias Klauser <klto@zhaw.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Tobias Klauser 16 年之前
父節點
當前提交
8660c1240e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      include/linux/skbuff.h

+ 2 - 2
include/linux/skbuff.h

@@ -1342,12 +1342,12 @@ static inline int skb_network_offset(const struct sk_buff *skb)
  * shifting the start of the packet by 2 bytes. Drivers should do this
  * shifting the start of the packet by 2 bytes. Drivers should do this
  * with:
  * with:
  *
  *
- * skb_reserve(NET_IP_ALIGN);
+ * skb_reserve(skb, NET_IP_ALIGN);
  *
  *
  * The downside to this alignment of the IP header is that the DMA is now
  * The downside to this alignment of the IP header is that the DMA is now
  * unaligned. On some architectures the cost of an unaligned DMA is high
  * unaligned. On some architectures the cost of an unaligned DMA is high
  * and this cost outweighs the gains made by aligning the IP header.
  * and this cost outweighs the gains made by aligning the IP header.
- * 
+ *
  * Since this trade off varies between architectures, we allow NET_IP_ALIGN
  * Since this trade off varies between architectures, we allow NET_IP_ALIGN
  * to be overridden.
  * to be overridden.
  */
  */