Lines Matching defs:msg
78 u32 msg_length_profile[7]; /* used for msg. length profiling */
116 * @failover_reasm_skb: saved failover msg ptr (FIXME)
135 * @bc_peer_is_up: peer has acked the bcast init msg
766 struct tipc_msg *msg;
776 msg = buf_msg(skb);
777 length = msg_size(msg);
779 if (msg_user(msg) == MSG_FRAGMENTER) {
780 if (msg_type(msg) != FIRST_FRAGMENT)
782 length = msg_size(msg_inner_hdr(msg));
879 * Create pseudo msg to send back to user when congestion abates
1034 pr_warn("Too large msg, purging xmit list %d %d %d %d %d!\n",
1042 /* Allow oversubscription of one data msg per source at congestion */
1217 pr_info("Failed msg: usr %u, typ %u, len %u, err %u\n",
1285 pr_warn("Dropping received illegal msg type\n");
1360 pr_warn_ratelimited("Unable to extract msg, defq: %d\n",
1378 pr_warn_ratelimited("Unable to reassemble tunnel msg\n");
2036 pr_warn("%sunable to frag msg: rc %d\n",
2048 pr_warn_ratelimited("%stoo large msg <%d, %d>: %d!\n",
2416 /* Open when peer acknowledges our bcast init msg (pkt #1) */
2669 int __tipc_nl_add_link(struct net *net, struct tipc_nl_msg *msg,
2678 hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family,
2683 attrs = nla_nest_start_noflag(msg->skb, TIPC_NLA_LINK);
2687 if (nla_put_string(msg->skb, TIPC_NLA_LINK_NAME, link->name))
2689 if (nla_put_u32(msg->skb, TIPC_NLA_LINK_DEST, tipc_cluster_mask(self)))
2691 if (nla_put_u32(msg->skb, TIPC_NLA_LINK_MTU, link->mtu))
2693 if (nla_put_u32(msg->skb, TIPC_NLA_LINK_RX, link->stats.recv_pkts))
2695 if (nla_put_u32(msg->skb, TIPC_NLA_LINK_TX, link->stats.sent_pkts))
2699 if (nla_put_flag(msg->skb, TIPC_NLA_LINK_UP))
2702 if (nla_put_flag(msg->skb, TIPC_NLA_LINK_ACTIVE))
2705 prop = nla_nest_start_noflag(msg->skb, TIPC_NLA_LINK_PROP);
2708 if (nla_put_u32(msg->skb, TIPC_NLA_PROP_PRIO, link->priority))
2710 if (nla_put_u32(msg->skb, TIPC_NLA_PROP_TOL, link->tolerance))
2712 if (nla_put_u32(msg->skb, TIPC_NLA_PROP_WIN,
2715 if (nla_put_u32(msg->skb, TIPC_NLA_PROP_PRIO, link->priority))
2717 nla_nest_end(msg->skb, prop);
2719 err = __tipc_nl_add_stats(msg->skb, &link->stats);
2723 nla_nest_end(msg->skb, attrs);
2724 genlmsg_end(msg->skb, hdr);
2729 nla_nest_cancel(msg->skb, prop);
2731 nla_nest_cancel(msg->skb, attrs);
2733 genlmsg_cancel(msg->skb, hdr);
2789 int tipc_nl_add_bc_link(struct net *net, struct tipc_nl_msg *msg,
2804 hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family,
2811 attrs = nla_nest_start_noflag(msg->skb, TIPC_NLA_LINK);
2816 if (nla_put_flag(msg->skb, TIPC_NLA_LINK_UP))
2819 if (nla_put_flag(msg->skb, TIPC_NLA_LINK_BROADCAST))
2821 if (nla_put_string(msg->skb, TIPC_NLA_LINK_NAME, bcl->name))
2823 if (nla_put_u32(msg->skb, TIPC_NLA_LINK_RX, 0))
2825 if (nla_put_u32(msg->skb, TIPC_NLA_LINK_TX, 0))
2828 prop = nla_nest_start_noflag(msg->skb, TIPC_NLA_LINK_PROP);
2831 if (nla_put_u32(msg->skb, TIPC_NLA_PROP_WIN, bcl->max_win))
2833 if (nla_put_u32(msg->skb, TIPC_NLA_PROP_BROADCAST, bc_mode))
2836 if (nla_put_u32(msg->skb, TIPC_NLA_PROP_BROADCAST_RATIO,
2839 nla_nest_end(msg->skb, prop);
2841 err = __tipc_nl_add_bc_link_stat(msg->skb, &bcl->stats);
2846 nla_nest_end(msg->skb, attrs);
2847 genlmsg_end(msg->skb, hdr);
2852 nla_nest_cancel(msg->skb, prop);
2854 nla_nest_cancel(msg->skb, attrs);
2857 genlmsg_cancel(msg->skb, hdr);