Searched refs:encap_ipv4 (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_tc_tunnel.c | 253 static __always_inline int encap_ipv4(struct __sk_buff *skb, __u8 encap_proto, in encap_ipv4() function 435 return encap_ipv4(skb, IPPROTO_IPIP, ETH_P_IP); in __encap_ipip_none() 444 return encap_ipv4(skb, IPPROTO_GRE, ETH_P_IP); in __encap_gre_none() 453 return encap_ipv4(skb, IPPROTO_GRE, ETH_P_MPLS_UC); in __encap_gre_mpls() 462 return encap_ipv4(skb, IPPROTO_GRE, ETH_P_TEB); in __encap_gre_eth() 471 return encap_ipv4(skb, IPPROTO_UDP, ETH_P_IP); in __encap_udp_none() 480 return encap_ipv4(skb, IPPROTO_UDP, ETH_P_MPLS_UC); in __encap_udp_mpls() 489 return encap_ipv4(skb, IPPROTO_UDP, ETH_P_TEB); in __encap_udp_eth() 509 return encap_ipv4(skb, IPPROTO_IPV6, ETH_P_IP); in __encap_sit_none()
|
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_tc.c | 887 struct hwrm_vxlan_ipv4_hdr *encap_ipv4; in hwrm_cfa_encap_record_alloc() local 904 encap_ipv4 = (struct hwrm_vxlan_ipv4_hdr *)encap->l3; in hwrm_cfa_encap_record_alloc() 905 encap_ipv4->ver_hlen = 4 << VXLAN_IPV4_HDR_VER_HLEN_VERSION_SFT; in hwrm_cfa_encap_record_alloc() 906 encap_ipv4->ver_hlen |= 5 << VXLAN_IPV4_HDR_VER_HLEN_HEADER_LENGTH_SFT; in hwrm_cfa_encap_record_alloc() 907 encap_ipv4->ttl = encap_key->ttl; in hwrm_cfa_encap_record_alloc() 909 encap_ipv4->dest_ip_addr = encap_key->u.ipv4.dst; in hwrm_cfa_encap_record_alloc() 910 encap_ipv4->src_ip_addr = encap_key->u.ipv4.src; in hwrm_cfa_encap_record_alloc() 911 encap_ipv4->protocol = IPPROTO_UDP; in hwrm_cfa_encap_record_alloc()
|