Lines Matching refs:tun_id
106 static void tunnel_id_to_vni(__be64 tun_id, __u8 *vni) in tunnel_id_to_vni() argument
109 vni[0] = (__force __u8)(tun_id >> 16); in tunnel_id_to_vni()
110 vni[1] = (__force __u8)(tun_id >> 8); in tunnel_id_to_vni()
111 vni[2] = (__force __u8)tun_id; in tunnel_id_to_vni()
113 vni[0] = (__force __u8)((__force u64)tun_id >> 40); in tunnel_id_to_vni()
114 vni[1] = (__force __u8)((__force u64)tun_id >> 48); in tunnel_id_to_vni()
115 vni[2] = (__force __u8)((__force u64)tun_id >> 56); in tunnel_id_to_vni()
119 static bool eq_tun_id_and_vni(u8 *tun_id, u8 *vni) in eq_tun_id_and_vni() argument
121 return !memcmp(vni, &tun_id[5], 3); in eq_tun_id_and_vni()
140 if (eq_tun_id_and_vni((u8 *)&node->geneve->cfg.info.key.tun_id, vni) && in geneve_lookup()
159 if (eq_tun_id_and_vni((u8 *)&node->geneve->cfg.info.key.tun_id, vni) && in geneve6_lookup()
682 tunnel_id_to_vni(geneve->cfg.info.key.tun_id, vni); in geneve_sock_add()
732 tunnel_id_to_vni(info->key.tun_id, geneveh->vni); in geneve_build_header()
1321 if (info->key.tun_id == geneve->cfg.info.key.tun_id && in geneve_find_dev()
1331 return !(info->key.tun_id || info->key.tun_flags || info->key.tos || in is_tnl_info_zero()
1481 if (changelink && (tunid != info->key.tun_id)) { in geneve_nl2info()
1485 info->key.tun_id = tunid; in geneve_nl2info()
1760 tunnel_id_to_vni(info->key.tun_id, tmp_vni); in geneve_fill_info()