Lines Matching defs:bearer
2 * net/tipc/bearer.c: TIPC bearer code
39 #include "bearer.h"
131 * bearer_name_validate - validate & (optionally) deconstruct bearer name
132 * @name: ptr to bearer name string
133 * @name_parts: ptr to area for bearer name components (or NULL if not needed)
135 * Return: 1 if bearer name is valid, otherwise 0.
146 /* copy bearer name & ensure length is OK */
150 /* ensure all component parts of bearer name are present */
159 /* validate component parts of bearer name */
164 /* return bearer name components, if necessary */
173 * tipc_bearer_find - locates bearer object with matching bearer name
175 * @name: bearer name to locate
191 /* tipc_bearer_get_name - get the bearer name from its id.
235 * tipc_enable_bearer - enable bearer with the given name
237 * @name: bearer name to enable
238 * @disc_domain: bearer domain
239 * @prio: bearer priority
280 /* Check new bearer vs existing ones and find free bearer id if any */
364 pr_info("Enabled bearer <%s>, priority %u\n", name, prio);
368 pr_warn("Enabling of bearer <%s> rejected, %s\n", name, errstr);
373 * tipc_reset_bearer - Reset all links established over this bearer
375 * @b: the target bearer
379 pr_info("Resetting bearer <%s>\n", b->name);
397 * bearer_disable - disable this bearer
399 * @b: the bearer to disable
408 pr_info("Disabling bearer <%s>\n", b->name);
453 /* Associate TIPC bearer with L2 bearer */
469 /* tipc_disable_l2_media - detach TIPC bearer from an L2 interface
470 * @b: the target bearer
472 * Mark L2 bearer as inactive so that incoming buffers are thrown away
489 * @b: the bearer through which the packet is to be sent
555 /* tipc_bearer_xmit_skb - sends buffer to destination over bearer
578 /* tipc_bearer_xmit() -send buffer to destination over bearer
818 /* Caller should hold rtnl_lock to protect the bearer */
820 struct tipc_bearer *bearer, int nlflags)
835 if (nla_put_string(msg->skb, TIPC_NLA_BEARER_NAME, bearer->name))
841 if (nla_put_u32(msg->skb, TIPC_NLA_PROP_PRIO, bearer->priority))
843 if (nla_put_u32(msg->skb, TIPC_NLA_PROP_TOL, bearer->tolerance))
845 if (nla_put_u32(msg->skb, TIPC_NLA_PROP_WIN, bearer->max_win))
847 if (bearer->media->type_id == TIPC_MEDIA_TYPE_UDP)
848 if (nla_put_u32(msg->skb, TIPC_NLA_PROP_MTU, bearer->mtu))
854 if (bearer->media->type_id == TIPC_MEDIA_TYPE_UDP) {
855 if (tipc_udp_nl_add_bearer_data(msg, bearer))
879 struct tipc_bearer *bearer;
893 bearer = rtnl_dereference(tn->bearer_list[i]);
894 if (!bearer)
897 err = __tipc_nl_add_bearer(&msg, bearer, NLM_F_MULTI);
912 struct tipc_bearer *bearer;
939 bearer = tipc_bearer_find(net, name);
940 if (!bearer) {
946 err = __tipc_nl_add_bearer(&msg, bearer, 0);
963 struct tipc_bearer *bearer;
981 bearer = tipc_bearer_find(net, name);
982 if (!bearer) {
987 bearer_disable(net, bearer);
1006 char *bearer;
1026 bearer = nla_data(attrs[TIPC_NLA_BEARER_NAME]);
1043 return tipc_enable_bearer(net, bearer, domain, prio, attrs,