Home
last modified time | relevance | path

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

/net/netfilter/ipvs/
Dip_vs_xmit.c932 unsigned int max_headroom, __u8 *next_protocol, in ip_vs_prepare_tunneled_skb() argument
945 if (skb_headroom(skb) < max_headroom || skb_cloned(skb)) { in ip_vs_prepare_tunneled_skb()
946 new_skb = skb_realloc_headroom(skb, max_headroom); in ip_vs_prepare_tunneled_skb()
1131 unsigned int max_headroom; /* The extra header space needed */ in ip_vs_tunnel_xmit() local
1152 max_headroom = LL_RESERVED_SPACE(tdev) + sizeof(struct iphdr); in ip_vs_tunnel_xmit()
1166 max_headroom += sizeof(struct udphdr) + gue_hdrlen; in ip_vs_tunnel_xmit()
1175 max_headroom += gre_hdrlen; in ip_vs_tunnel_xmit()
1180 skb = ip_vs_prepare_tunneled_skb(skb, cp->af, max_headroom, in ip_vs_tunnel_xmit()
1275 unsigned int max_headroom; /* The extra header space needed */ in ip_vs_tunnel_xmit_v6() local
1297 max_headroom = LL_RESERVED_SPACE(tdev) + sizeof(struct ipv6hdr); in ip_vs_tunnel_xmit_v6()
[all …]
/net/bridge/
Dbr_if.c301 unsigned max_headroom = 0; in get_max_headroom() local
307 if (dev_headroom > max_headroom) in get_max_headroom()
308 max_headroom = dev_headroom; in get_max_headroom()
311 return max_headroom; in get_max_headroom()
/net/openvswitch/
Ddatapath.c2217 unsigned int dev_headroom, max_headroom = 0; in ovs_get_max_headroom() local
2227 if (dev_headroom > max_headroom) in ovs_get_max_headroom()
2228 max_headroom = dev_headroom; in ovs_get_max_headroom()
2232 return max_headroom; in ovs_get_max_headroom()
2241 dp->max_headroom = new_headroom; in ovs_update_headroom()
2325 if (new_headroom > dp->max_headroom) in ovs_vport_cmd_new()
2328 netdev_set_rx_headroom(vport->dev, dp->max_headroom); in ovs_vport_cmd_new()
2427 if (netdev_get_fwd_headroom(vport->dev) == dp->max_headroom) in ovs_vport_cmd_del()
2436 if (new_headroom < dp->max_headroom) in ovs_vport_cmd_del()
Ddatapath.h102 u32 max_headroom; member
/net/ipv6/
Dip6_tunnel.c1096 unsigned int max_headroom = psh_hlen; in ip6_tnl_xmit() local
1190 max_headroom += 8; in ip6_tnl_xmit()
1219 max_headroom += LL_RESERVED_SPACE(tdev); in ip6_tnl_xmit()
1221 if (skb_headroom(skb) < max_headroom || skb_shared(skb) || in ip6_tnl_xmit()
1225 new_skb = skb_realloc_headroom(skb, max_headroom); in ip6_tnl_xmit()
1256 max_headroom = LL_RESERVED_SPACE(dst->dev) + sizeof(struct ipv6hdr) in ip6_tnl_xmit()
1258 if (max_headroom > READ_ONCE(dev->needed_headroom)) in ip6_tnl_xmit()
1259 WRITE_ONCE(dev->needed_headroom, max_headroom); in ip6_tnl_xmit()
Dsit.c863 unsigned int max_headroom; /* The extra header space needed */ in ipip6_tunnel_xmit() local
1005 max_headroom = LL_RESERVED_SPACE(tdev) + t_hlen; in ipip6_tunnel_xmit()
1007 if (skb_headroom(skb) < max_headroom || skb_shared(skb) || in ipip6_tunnel_xmit()
1009 struct sk_buff *new_skb = skb_realloc_headroom(skb, max_headroom); in ipip6_tunnel_xmit()
/net/ipv4/
Dip_tunnel.c688 unsigned int max_headroom; /* The extra header space needed */ in ip_tunnel_xmit() local
846 max_headroom = LL_RESERVED_SPACE(rt->dst.dev) + sizeof(struct iphdr) in ip_tunnel_xmit()
849 if (skb_cow_head(skb, max_headroom)) { in ip_tunnel_xmit()
856 ip_tunnel_adj_headroom(dev, max_headroom); in ip_tunnel_xmit()