Home
last modified time | relevance | path

Searched refs:max_headroom (Results 1 – 7 of 7) sorted by relevance

/net/netfilter/ipvs/
Dip_vs_xmit.c954 unsigned int max_headroom, __u8 *next_protocol, in ip_vs_prepare_tunneled_skb() argument
967 if (skb_headroom(skb) < max_headroom || skb_cloned(skb)) { in ip_vs_prepare_tunneled_skb()
968 new_skb = skb_realloc_headroom(skb, max_headroom); in ip_vs_prepare_tunneled_skb()
1153 unsigned int max_headroom; /* The extra header space needed */ in ip_vs_tunnel_xmit() local
1176 max_headroom = LL_RESERVED_SPACE(tdev) + sizeof(struct iphdr); in ip_vs_tunnel_xmit()
1190 max_headroom += sizeof(struct udphdr) + gue_hdrlen; in ip_vs_tunnel_xmit()
1199 max_headroom += gre_hdrlen; in ip_vs_tunnel_xmit()
1204 skb = ip_vs_prepare_tunneled_skb(skb, cp->af, max_headroom, in ip_vs_tunnel_xmit()
1303 unsigned int max_headroom; /* The extra header space needed */ in ip_vs_tunnel_xmit_v6() local
1327 max_headroom = LL_RESERVED_SPACE(tdev) + sizeof(struct ipv6hdr); in ip_vs_tunnel_xmit_v6()
[all …]
/net/bridge/
Dbr_if.c292 unsigned max_headroom = 0; in get_max_headroom() local
298 if (dev_headroom > max_headroom) in get_max_headroom()
299 max_headroom = dev_headroom; in get_max_headroom()
302 return max_headroom; in get_max_headroom()
/net/openvswitch/
Ddatapath.c2023 unsigned int dev_headroom, max_headroom = 0; in ovs_get_max_headroom() local
2032 if (dev_headroom > max_headroom) in ovs_get_max_headroom()
2033 max_headroom = dev_headroom; in ovs_get_max_headroom()
2037 return max_headroom; in ovs_get_max_headroom()
2046 dp->max_headroom = new_headroom; in ovs_update_headroom()
2124 if (new_headroom > dp->max_headroom) in ovs_vport_cmd_new()
2127 netdev_set_rx_headroom(vport->dev, dp->max_headroom); in ovs_vport_cmd_new()
2226 if (netdev_get_fwd_headroom(vport->dev) == dp->max_headroom) in ovs_vport_cmd_del()
2235 if (new_headroom < dp->max_headroom) in ovs_vport_cmd_del()
Ddatapath.h82 u32 max_headroom; member
/net/ipv6/
Dip6_tunnel.c1053 unsigned int max_headroom = psh_hlen; in ip6_tnl_xmit() local
1136 max_headroom += 8; in ip6_tnl_xmit()
1165 max_headroom += LL_RESERVED_SPACE(tdev); in ip6_tnl_xmit()
1167 if (skb_headroom(skb) < max_headroom || skb_shared(skb) || in ip6_tnl_xmit()
1171 new_skb = skb_realloc_headroom(skb, max_headroom); in ip6_tnl_xmit()
1202 max_headroom = LL_RESERVED_SPACE(dst->dev) + sizeof(struct ipv6hdr) in ip6_tnl_xmit()
1204 if (max_headroom > READ_ONCE(dev->needed_headroom)) in ip6_tnl_xmit()
1205 WRITE_ONCE(dev->needed_headroom, max_headroom); in ip6_tnl_xmit()
Dsit.c822 unsigned int max_headroom; /* The extra header space needed */ in ipip6_tunnel_xmit() local
964 max_headroom = LL_RESERVED_SPACE(tdev) + t_hlen; in ipip6_tunnel_xmit()
966 if (skb_headroom(skb) < max_headroom || skb_shared(skb) || in ipip6_tunnel_xmit()
968 struct sk_buff *new_skb = skb_realloc_headroom(skb, max_headroom); in ipip6_tunnel_xmit()
/net/ipv4/
Dip_tunnel.c663 unsigned int max_headroom; /* The extra header space needed */ in ip_tunnel_xmit() local
819 max_headroom = LL_RESERVED_SPACE(rt->dst.dev) + sizeof(struct iphdr) in ip_tunnel_xmit()
822 if (skb_cow_head(skb, max_headroom)) { in ip_tunnel_xmit()
829 ip_tunnel_adj_headroom(dev, max_headroom); in ip_tunnel_xmit()