]> git.neil.brown.name Git - history.git/commitdiff
[IPVS]: Use LL_RESERVED_SPACE() where applicable.
authorHideaki Yoshifuji <yoshfuji@linux-ipv6.org>
Mon, 9 Feb 2004 03:11:57 +0000 (19:11 -0800)
committerHideaki Yoshifuji <yoshfuji@linux-ipv6.org>
Mon, 9 Feb 2004 03:11:57 +0000 (19:11 -0800)
net/ipv4/ipvs/ip_vs_xmit.c

index 56cc2614c090b0f704360ca7ad3a7ced3e6c11c0..850e6f044f8e043a366e305a5b53a9c3bd967589 100644 (file)
@@ -370,7 +370,7 @@ ip_vs_tunnel_xmit(struct sk_buff *skb, struct ip_vs_conn *cp,
        /*
         * Okay, now see if we can stuff it in the buffer as-is.
         */
-       max_headroom = (((tdev->hard_header_len+15)&~15)+sizeof(struct iphdr));
+       max_headroom = LL_RESERVED_SPACE(tdev) + sizeof(struct iphdr);
 
        if (skb_headroom(skb) < max_headroom
            || skb_cloned(skb) || skb_shared(skb)) {