Commit e9e8089c authored by Hideaki Yoshifuji's avatar Hideaki Yoshifuji

[IPVS]: Use LL_RESERVED_SPACE() where applicable.

parent 6411e71a
...@@ -370,7 +370,7 @@ ip_vs_tunnel_xmit(struct sk_buff *skb, struct ip_vs_conn *cp, ...@@ -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. * 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 if (skb_headroom(skb) < max_headroom
|| skb_cloned(skb) || skb_shared(skb)) { || skb_cloned(skb) || skb_shared(skb)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment