OSDN Git Service

batman-adv: avoid skb_linearise() if not needed
authorAntonio Quartulli <ordex@autistici.org>
Fri, 16 Mar 2012 10:52:31 +0000 (11:52 +0100)
committerAntonio Quartulli <ordex@autistici.org>
Sun, 13 May 2012 16:24:37 +0000 (18:24 +0200)
commit8710e2613a4819aac44f4aed7e29027ac3eeb683
tree52a61a7ad228152e6c62111b6472b51bbecaf90c
parentf96a8a0b78548c0ec06b0b4b438db6ee895d67e9
batman-adv: avoid skb_linearise() if not needed

Whenever we want to access headers only, we do not need to linearise the whole
packet. Instead we can use pskb_may_pull()

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
net/batman-adv/routing.c