Lines Matching refs:conf
2770 struct vxlan_config *conf) in vxlan_dev_configure() argument
2783 dst->remote_vni = conf->vni; in vxlan_dev_configure()
2785 memcpy(&dst->remote_ip, &conf->remote_ip, sizeof(conf->remote_ip)); in vxlan_dev_configure()
2799 if (conf->remote_ifindex) { in vxlan_dev_configure()
2800 lowerdev = __dev_get_by_index(src_net, conf->remote_ifindex); in vxlan_dev_configure()
2801 dst->remote_ifindex = conf->remote_ifindex; in vxlan_dev_configure()
2818 if (!conf->mtu) in vxlan_dev_configure()
2824 if (conf->mtu) { in vxlan_dev_configure()
2825 err = __vxlan_change_mtu(dev, lowerdev, dst, conf->mtu, false); in vxlan_dev_configure()
2830 if (use_ipv6 || conf->flags & VXLAN_F_COLLECT_METADATA) in vxlan_dev_configure()
2836 memcpy(&vxlan->cfg, conf, sizeof(*conf)); in vxlan_dev_configure()
2839 vxlan->flags |= conf->flags; in vxlan_dev_configure()
2845 if (tmp->cfg.vni == conf->vni && in vxlan_dev_configure()
2882 u8 name_assign_type, struct vxlan_config *conf) in vxlan_dev_create() argument
2895 err = vxlan_dev_configure(net, dev, conf); in vxlan_dev_create()
2908 struct vxlan_config conf; in vxlan_newlink() local
2911 memset(&conf, 0, sizeof(conf)); in vxlan_newlink()
2914 conf.vni = nla_get_u32(data[IFLA_VXLAN_ID]); in vxlan_newlink()
2917 conf.remote_ip.sin.sin_addr.s_addr = nla_get_in_addr(data[IFLA_VXLAN_GROUP]); in vxlan_newlink()
2922 conf.remote_ip.sin6.sin6_addr = nla_get_in6_addr(data[IFLA_VXLAN_GROUP6]); in vxlan_newlink()
2923 conf.remote_ip.sa.sa_family = AF_INET6; in vxlan_newlink()
2927 conf.saddr.sin.sin_addr.s_addr = nla_get_in_addr(data[IFLA_VXLAN_LOCAL]); in vxlan_newlink()
2928 conf.saddr.sa.sa_family = AF_INET; in vxlan_newlink()
2934 conf.saddr.sin6.sin6_addr = nla_get_in6_addr(data[IFLA_VXLAN_LOCAL6]); in vxlan_newlink()
2935 conf.saddr.sa.sa_family = AF_INET6; in vxlan_newlink()
2939 conf.remote_ifindex = nla_get_u32(data[IFLA_VXLAN_LINK]); in vxlan_newlink()
2942 conf.tos = nla_get_u8(data[IFLA_VXLAN_TOS]); in vxlan_newlink()
2945 conf.ttl = nla_get_u8(data[IFLA_VXLAN_TTL]); in vxlan_newlink()
2948 conf.flags |= VXLAN_F_LEARN; in vxlan_newlink()
2951 conf.age_interval = nla_get_u32(data[IFLA_VXLAN_AGEING]); in vxlan_newlink()
2954 conf.flags |= VXLAN_F_PROXY; in vxlan_newlink()
2957 conf.flags |= VXLAN_F_RSC; in vxlan_newlink()
2960 conf.flags |= VXLAN_F_L2MISS; in vxlan_newlink()
2963 conf.flags |= VXLAN_F_L3MISS; in vxlan_newlink()
2966 conf.addrmax = nla_get_u32(data[IFLA_VXLAN_LIMIT]); in vxlan_newlink()
2970 conf.flags |= VXLAN_F_COLLECT_METADATA; in vxlan_newlink()
2975 conf.port_min = ntohs(p->low); in vxlan_newlink()
2976 conf.port_max = ntohs(p->high); in vxlan_newlink()
2980 conf.dst_port = nla_get_be16(data[IFLA_VXLAN_PORT]); in vxlan_newlink()
2983 conf.flags |= VXLAN_F_UDP_CSUM; in vxlan_newlink()
2987 conf.flags |= VXLAN_F_UDP_ZERO_CSUM6_TX; in vxlan_newlink()
2991 conf.flags |= VXLAN_F_UDP_ZERO_CSUM6_RX; in vxlan_newlink()
2995 conf.flags |= VXLAN_F_REMCSUM_TX; in vxlan_newlink()
2999 conf.flags |= VXLAN_F_REMCSUM_RX; in vxlan_newlink()
3002 conf.flags |= VXLAN_F_GBP; in vxlan_newlink()
3005 conf.flags |= VXLAN_F_REMCSUM_NOPARTIAL; in vxlan_newlink()
3008 conf.mtu = nla_get_u32(tb[IFLA_MTU]); in vxlan_newlink()
3010 err = vxlan_dev_configure(src_net, dev, &conf); in vxlan_newlink()
3013 pr_info("ifindex %d does not exist\n", conf.remote_ifindex); in vxlan_newlink()
3021 pr_info("duplicate VNI %u\n", conf.vni); in vxlan_newlink()