Lines Matching defs:msg

78 	u32 msg_length_profile[7]; /* used for msg. length profiling */
131 * @failover_reasm_skb: saved failover msg ptr (FIXME)
150 * @bc_peer_is_up: peer has acked the bcast init msg
791 struct tipc_msg *msg;
801 msg = buf_msg(skb);
802 length = msg_size(msg);
804 if (msg_user(msg) == MSG_FRAGMENTER) {
805 if (msg_type(msg) != FIRST_FRAGMENT)
807 length = msg_size(msg_inner_hdr(msg));
904 * Create pseudo msg to send back to user when congestion abates
1059 pr_warn("Too large msg, purging xmit list %d %d %d %d %d!\n",
1067 /* Allow oversubscription of one data msg per source at congestion */
1241 pr_info("Failed msg: usr %u, typ %u, len %u, err %u\n",
1309 pr_warn("Dropping received illegal msg type\n");
1384 pr_warn_ratelimited("Unable to extract msg, defq: %d\n",
1402 pr_warn_ratelimited("Unable to reassemble tunnel msg\n");
2061 pr_warn("%sunable to frag msg: rc %d\n",
2073 pr_warn_ratelimited("%stoo large msg <%d, %d>: %d!\n",
2439 /* Open when peer acknowledges our bcast init msg (pkt #1) */
2692 int __tipc_nl_add_link(struct net *net, struct tipc_nl_msg *msg,
2701 hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family,
2706 attrs = nla_nest_start_noflag(msg->skb, TIPC_NLA_LINK);
2710 if (nla_put_string(msg->skb, TIPC_NLA_LINK_NAME, link->name))
2712 if (nla_put_u32(msg->skb, TIPC_NLA_LINK_DEST, tipc_cluster_mask(self)))
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))
2722 if (nla_put_flag(msg->skb, TIPC_NLA_LINK_UP))
2725 if (nla_put_flag(msg->skb, TIPC_NLA_LINK_ACTIVE))
2728 prop = nla_nest_start_noflag(msg->skb, TIPC_NLA_LINK_PROP);
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))
2735 if (nla_put_u32(msg->skb, TIPC_NLA_PROP_WIN,
2738 if (nla_put_u32(msg->skb, TIPC_NLA_PROP_PRIO, link->priority))
2740 nla_nest_end(msg->skb, prop);
2742 err = __tipc_nl_add_stats(msg->skb, &link->stats);
2746 nla_nest_end(msg->skb, attrs);
2747 genlmsg_end(msg->skb, hdr);
2752 nla_nest_cancel(msg->skb, prop);
2754 nla_nest_cancel(msg->skb, attrs);
2756 genlmsg_cancel(msg->skb, hdr);
2812 int tipc_nl_add_bc_link(struct net *net, struct tipc_nl_msg *msg,
2827 hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family,
2834 attrs = nla_nest_start_noflag(msg->skb, TIPC_NLA_LINK);
2839 if (nla_put_flag(msg->skb, TIPC_NLA_LINK_UP))
2842 if (nla_put_flag(msg->skb, TIPC_NLA_LINK_BROADCAST))
2844 if (nla_put_string(msg->skb, TIPC_NLA_LINK_NAME, bcl->name))
2846 if (nla_put_u32(msg->skb, TIPC_NLA_LINK_RX, 0))
2848 if (nla_put_u32(msg->skb, TIPC_NLA_LINK_TX, 0))
2851 prop = nla_nest_start_noflag(msg->skb, TIPC_NLA_LINK_PROP);
2854 if (nla_put_u32(msg->skb, TIPC_NLA_PROP_WIN, bcl->max_win))
2856 if (nla_put_u32(msg->skb, TIPC_NLA_PROP_BROADCAST, bc_mode))
2859 if (nla_put_u32(msg->skb, TIPC_NLA_PROP_BROADCAST_RATIO,
2862 nla_nest_end(msg->skb, prop);
2864 err = __tipc_nl_add_bc_link_stat(msg->skb, &bcl->stats);
2869 nla_nest_end(msg->skb, attrs);
2870 genlmsg_end(msg->skb, hdr);
2875 nla_nest_cancel(msg->skb, prop);
2877 nla_nest_cancel(msg->skb, attrs);
2880 genlmsg_cancel(msg->skb, hdr);