Lines Matching defs:conf
574 static int bareudp2info(struct nlattr *data[], struct bareudp_conf *conf,
577 memset(conf, 0, sizeof(*conf));
588 conf->port = nla_get_u16(data[IFLA_BAREUDP_PORT]);
589 conf->ethertype = nla_get_u16(data[IFLA_BAREUDP_ETHERTYPE]);
592 conf->sport_min = nla_get_u16(data[IFLA_BAREUDP_SRCPORT_MIN]);
595 conf->multi_proto_mode = true;
601 const struct bareudp_conf *conf)
606 if (conf->port == bareudp->port)
613 struct bareudp_conf *conf,
622 t = bareudp_find_dev(bn, conf);
628 if (conf->multi_proto_mode &&
629 (conf->ethertype != htons(ETH_P_MPLS_UC) &&
630 conf->ethertype != htons(ETH_P_IP))) {
635 bareudp->port = conf->port;
636 bareudp->ethertype = conf->ethertype;
637 bareudp->sport_min = conf->sport_min;
638 bareudp->multi_proto_mode = conf->multi_proto_mode;
673 struct bareudp_conf conf;
676 err = bareudp2info(data, &conf, extack);
680 err = bareudp_configure(net, dev, &conf, extack);