Searched refs:encap_ipv4 (Results 1 – 2 of 2) sorted by relevance
/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_tc_tunnel.c | 256 static __always_inline int encap_ipv4(struct __sk_buff *skb, __u8 encap_proto, in encap_ipv4() function 438 return encap_ipv4(skb, IPPROTO_IPIP, ETH_P_IP); in __encap_ipip_none() 447 return encap_ipv4(skb, IPPROTO_GRE, ETH_P_IP); in __encap_gre_none() 456 return encap_ipv4(skb, IPPROTO_GRE, ETH_P_MPLS_UC); in __encap_gre_mpls() 465 return encap_ipv4(skb, IPPROTO_GRE, ETH_P_TEB); in __encap_gre_eth() 474 return encap_ipv4(skb, IPPROTO_UDP, ETH_P_IP); in __encap_udp_none() 483 return encap_ipv4(skb, IPPROTO_UDP, ETH_P_MPLS_UC); in __encap_udp_mpls() 492 return encap_ipv4(skb, IPPROTO_UDP, ETH_P_TEB); in __encap_udp_eth() 512 return encap_ipv4(skb, IPPROTO_IPV6, ETH_P_IP); in __encap_sit_none()
|
/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_tc.c | 891 struct hwrm_vxlan_ipv4_hdr *encap_ipv4; in hwrm_cfa_encap_record_alloc() local 908 encap_ipv4 = (struct hwrm_vxlan_ipv4_hdr *)encap->l3; in hwrm_cfa_encap_record_alloc() 909 encap_ipv4->ver_hlen = 4 << VXLAN_IPV4_HDR_VER_HLEN_VERSION_SFT; in hwrm_cfa_encap_record_alloc() 910 encap_ipv4->ver_hlen |= 5 << VXLAN_IPV4_HDR_VER_HLEN_HEADER_LENGTH_SFT; in hwrm_cfa_encap_record_alloc() 911 encap_ipv4->ttl = encap_key->ttl; in hwrm_cfa_encap_record_alloc() 913 encap_ipv4->dest_ip_addr = encap_key->u.ipv4.dst; in hwrm_cfa_encap_record_alloc() 914 encap_ipv4->src_ip_addr = encap_key->u.ipv4.src; in hwrm_cfa_encap_record_alloc() 915 encap_ipv4->protocol = IPPROTO_UDP; in hwrm_cfa_encap_record_alloc()
|