Lines Matching refs:ip

204 	char *ip;  in gen_eth_tnl_hdr()  local
211 ip = (char *)vlan + VLAN_HLEN; in gen_eth_tnl_hdr()
217 ip = (char *)eth + ETH_HLEN; in gen_eth_tnl_hdr()
220 return ip; in gen_eth_tnl_hdr()
234 struct iphdr *ip; in mlx5e_tc_tun_create_header_ipv4() local
286 ip = (struct iphdr *)gen_eth_tnl_hdr(encap_header, attr.route_dev, e, in mlx5e_tc_tun_create_header_ipv4()
290 ip->tos = tun_key->tos; in mlx5e_tc_tun_create_header_ipv4()
291 ip->version = 0x4; in mlx5e_tc_tun_create_header_ipv4()
292 ip->ihl = 0x5; in mlx5e_tc_tun_create_header_ipv4()
293 ip->ttl = attr.ttl; in mlx5e_tc_tun_create_header_ipv4()
294 ip->daddr = attr.fl.fl4.daddr; in mlx5e_tc_tun_create_header_ipv4()
295 ip->saddr = attr.fl.fl4.saddr; in mlx5e_tc_tun_create_header_ipv4()
298 err = mlx5e_gen_ip_tunnel_header((char *)ip + sizeof(struct iphdr), in mlx5e_tc_tun_create_header_ipv4()
299 &ip->protocol, e); in mlx5e_tc_tun_create_header_ipv4()
349 struct iphdr *ip; in mlx5e_tc_tun_update_header_ipv4() local
390 ip = (struct iphdr *)gen_eth_tnl_hdr(encap_header, attr.route_dev, e, in mlx5e_tc_tun_update_header_ipv4()
394 ip->tos = tun_key->tos; in mlx5e_tc_tun_update_header_ipv4()
395 ip->version = 0x4; in mlx5e_tc_tun_update_header_ipv4()
396 ip->ihl = 0x5; in mlx5e_tc_tun_update_header_ipv4()
397 ip->ttl = attr.ttl; in mlx5e_tc_tun_update_header_ipv4()
398 ip->daddr = attr.fl.fl4.daddr; in mlx5e_tc_tun_update_header_ipv4()
399 ip->saddr = attr.fl.fl4.saddr; in mlx5e_tc_tun_update_header_ipv4()
402 err = mlx5e_gen_ip_tunnel_header((char *)ip + sizeof(struct iphdr), in mlx5e_tc_tun_update_header_ipv4()
403 &ip->protocol, e); in mlx5e_tc_tun_update_header_ipv4()