[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1421949760-5705-1-git-send-email-md.jamalmohiuddin@gmail.com>
Date: Thu, 22 Jan 2015 23:32:40 +0530
From: Mohammad Jamal <md.jamalmohiuddin@...il.com>
To: davem@...emloft.net, therbert@...gle.com, edumazet@...gle.com,
viro@...iv.linux.org.uk, alexander.h.duyck@...hat.com,
willemb@...gle.com, hannes@...essinduktion.org,
linux-kernel@...r.kernel.org
Cc: Mohammad Jamal <md.jamalmohiuddin@...il.com>
Subject: [PATCH] include:linux:Optimizations to __skb_push
This patch optimizes __skb_push function
Signed-off-by: Mohammad Jamal <md.jamalmohiuddin@...il.com>
---
include/linux/skbuff.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 85ab7d7..9acffb2 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -1671,9 +1671,8 @@ static inline unsigned char *__skb_put(struct sk_buff *skb, unsigned int len)
unsigned char *skb_push(struct sk_buff *skb, unsigned int len);
static inline unsigned char *__skb_push(struct sk_buff *skb, unsigned int len)
{
- skb->data -= len;
skb->len += len;
- return skb->data;
+ return skb->data -= len;
}
unsigned char *skb_pull(struct sk_buff *skb, unsigned int len);
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists