Skip to content

Commit 8660c12

Browse files
Tobias Klauserdavem330
authored andcommitted
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>
1 parent 79fbe13 commit 8660c12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/linux/skbuff.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,12 +1342,12 @@ static inline int skb_network_offset(const struct sk_buff *skb)
13421342
* shifting the start of the packet by 2 bytes. Drivers should do this
13431343
* with:
13441344
*
1345-
* skb_reserve(NET_IP_ALIGN);
1345+
* skb_reserve(skb, NET_IP_ALIGN);
13461346
*
13471347
* The downside to this alignment of the IP header is that the DMA is now
13481348
* unaligned. On some architectures the cost of an unaligned DMA is high
13491349
* and this cost outweighs the gains made by aligning the IP header.
1350-
*
1350+
*
13511351
* Since this trade off varies between architectures, we allow NET_IP_ALIGN
13521352
* to be overridden.
13531353
*/

0 commit comments

Comments
 (0)