Lines Matching defs:link

2  * net/tipc/link.c: TIPC link code
39 #include "link.h"
82 * struct tipc_link - TIPC link data structure
83 * @addr: network address of link's peer node
84 * @name: link name character string
85 * @media_addr: media address to use when sending messages over link
86 * @timer: link timer
89 * @peer_session: link session # being used by peer end of link
90 * @peer_bearer_id: bearer id used by link's peer endpoint
91 * @bearer_id: local bearer id used by link
92 * @tolerance: minimum link continuity loss needed to reset link [in ms]
93 * @abort_limit: # of unacknowledged continuity probes needed to reset link
94 * @state: current state of link FSM
97 * @proto_msg: template for control messages generated by link
99 * @priority: current link priority
100 * @net_plane: current link network plane ('A' through 'H')
101 * @mon_state: cookie with information needed by link monitor
103 * @exp_msg_count: # of tunnelled messages expected during link changeover
104 * @reset_rcv_checkpt: seq # of last acknowledged message at time of link reset
105 * @mtu: current maximum packet size for this link
106 * @advertised_mtu: advertised own mtu when link is being established
118 * @wakeupq: linked list of wakeup msgs waiting for link congestion to abate
121 * @bc_rcvr: marks that this is a broadcast receiver link
122 * @stats: collects statistics regarding link activity
123 * @session: session to be used by link
127 * @active: link is active
129 * @rst_cnt: link reset counter
133 * @transmq: the link's transmit queue
134 * @backlog: link's backlog by priority (importance)
139 * @min_win: minimal send window to be used by link
141 * @max_win: maximal send window to be used by link
147 * @bc_rcvlink: the peer specific link used for broadcast reception
148 * @bc_sndlink: the namespace global link used for broadcast sending
157 /* Management and link supervision data */
234 static const char *link_rst_msg = "Resetting link ";
288 * Simple non-static link routines (i.e. referenced outside this file)
475 * tipc_link_create - create a new link
479 * @tolerance: link tolerance to be used by link
480 * @net_plane: network plane (A,B,c..) this link belongs to
481 * @mtu: mtu to be advertised by link
482 * @priority: priority to be used by link
483 * @min_win: minimal send window to be used by link
484 * @max_win: maximal send window to be used by link
485 * @session: session to be used by link
488 * @bc_sndlink: the namespace global link used for broadcast sending
489 * @bc_rcvlink: the peer specific link used for broadcast reception
492 * @link: return value, pointer to put the created link
493 * @self: local unicast link id
496 * Return: true if link was created, otherwise false
506 struct tipc_link **link)
515 *link = l;
518 /* Set link name for unicast links only */
561 * tipc_link_bc_create - create new link to be used for broadcast
564 * @min_win: minimal send window to be used by link
565 * @max_win: maximal send window to be used by link
568 * @link: return value, pointer to put the created link
573 * @bc_sndlink: the namespace global link used for broadcast sending
575 * Return: true if link was created, otherwise false
582 struct tipc_link **link)
588 bc_sndlink, NULL, inputq, namedq, link))
591 l = *link;
598 /* Broadcast receiver link name: "broadcast-link:<peer>" */
610 /* Broadcast send link is always up */
622 * tipc_link_fsm_evt - link finite state machine
623 * @l: pointer to link
780 pr_err("Illegal FSM event %x in state %x on link %s\n",
828 * tipc_link_too_silent - check if link is "too silent"
829 * @l: tipc link to be checked
831 * Return: true if the link 'silent_intv_cnt' is about to reach the
902 * @l: congested link
927 * @l: congested link
964 * @l: link the skb will be transmitted on
1028 * @l: link to use
1070 pr_warn("%s<%s>, link overflow", link_rst_msg, l->name);
1212 * @l: tipc link sender
1213 * @r: tipc link receiver (= l in case of unicast)
1239 pr_warn("Retransmission failure on link <%s>\n", l->name);
1240 link_print(l, "State of link ");
1315 /* tipc_link_input - process packet that has passed link protocol check
1358 * inner message along with the ones in the old link's
1360 * @l: tunnel link
1432 * @l: the tipc link
1507 * @l: tipc unicast link
1524 /* Start with broadcast link first */
1531 /* Now for unicast link, but an explicit NACK only (???) */
1541 /* tipc_link_advance_transmq - advance TIPC link transmq queue by releasing
1544 * @l: tipc link with transmq queue to be advanced
1545 * @r: tipc link "receiver" i.e. in case of broadcast (= "l" if unicast)
1554 * Return: the number of packets released from the link transmq
1578 /* Determine Gap ACK blocks if any for the particular link */
1598 /* Advance the link transmq */
1707 /* tipc_link_build_state_msg: prepare link state message for transmission
1717 /* Broadcast ACK must be sent via a unicast link => defer to caller */
1723 /* Use snd_nxt to store peer's snd_nxt in broadcast rcv link */
1734 /* tipc_link_build_reset_msg: prepare link RESET or ACTIVATE message
1752 /* tipc_link_build_nack_msg: prepare link nack message for transmission
1782 * @l: the link that should handle the message
1795 /* Verify and update link state */
1871 /* Don't send protocol message during reset or link failover */
1971 * with contents of the link's transmit and backlog queues.
2047 /* Tunnel link MTU is not large enough? This could be
2107 /* Failover the link's deferdq */
2118 * tipc_link_failover_prepare() - prepare tnl for link failover
2123 * @l: failover link
2124 * @tnl: tunnel link
2134 /* This failover link endpoint was never established before,
2143 /* Initiate the link's failover deferdq */
2151 /* tipc_link_validate_msg(): validate message against current link state
2192 /* tipc_link_proto_rcv(): receive link level protocol message :
2245 /* Complete own link name with peer's interface name */
2278 /* ACTIVATE_MSG serves as PEER_RESET if link is already down */
2282 /* ACTIVATE_MSG takes up link if it was already locally reset */
2381 /* tipc_link_build_bc_init_msg() - synchronize broadcast link endpoints.
2425 /* tipc_link_bc_sync_rcv - update rcv link according to peer's send state
2568 * tipc_link_reset_stats - reset link statistics
2569 * @l: pointer to link
2588 /* Parse and validate nested (link) properties valid for media, bearer and link
2691 /* Caller should hold appropriate locks to protect the link */
2693 struct tipc_link *link, int nlflags)
2710 if (nla_put_string(msg->skb, TIPC_NLA_LINK_NAME, link->name))
2714 if (nla_put_u32(msg->skb, TIPC_NLA_LINK_MTU, link->mtu))
2716 if (nla_put_u32(msg->skb, TIPC_NLA_LINK_RX, link->stats.recv_pkts))
2718 if (nla_put_u32(msg->skb, TIPC_NLA_LINK_TX, link->stats.sent_pkts))
2721 if (tipc_link_is_up(link))
2724 if (link->active)
2731 if (nla_put_u32(msg->skb, TIPC_NLA_PROP_PRIO, link->priority))
2733 if (nla_put_u32(msg->skb, TIPC_NLA_PROP_TOL, link->tolerance))
2736 link->window))
2738 if (nla_put_u32(msg->skb, TIPC_NLA_PROP_PRIO, link->priority))
2742 err = __tipc_nl_add_stats(msg->skb, &link->stats);
2838 /* The broadcast link is always up */
2908 * tipc_link_dump - dump TIPC link data
2909 * @l: tipc link to be dumped
2910 * @dqueues: bitmask to decide if any link queue to be dumped?
2911 * - TIPC_DUMP_NONE: don't dump link queues
2912 * - TIPC_DUMP_TRANSMQ: dump link transmq queue
2913 * - TIPC_DUMP_BACKLOGQ: dump link backlog queue
2914 * - TIPC_DUMP_DEFERDQ: dump link deferd queue
2915 * - TIPC_DUMP_INPUTQ: dump link input queue
2916 * - TIPC_DUMP_WAKEUP: dump link wakeup queue
2917 * - TIPC_DUMP_ALL: dump all the link queues above
2929 i += scnprintf(buf, sz, "link data: (null)\n");
2933 i += scnprintf(buf, sz, "link data: %x", l->addr);