Lines Matching refs:skb
145 static int hsr_fill_info(struct sk_buff *skb, const struct net_device *dev)
153 if (nla_put_u32(skb, IFLA_HSR_SLAVE1, port->dev->ifindex))
159 if (nla_put_u32(skb, IFLA_HSR_SLAVE2, port->dev->ifindex))
163 if (nla_put(skb, IFLA_HSR_SUPERVISION_ADDR, ETH_ALEN,
165 nla_put_u16(skb, IFLA_HSR_SEQ_NR, hsr->sequence_nr))
169 if (nla_put_u8(skb, IFLA_HSR_PROTOCOL, proto))
213 struct sk_buff *skb;
218 skb = genlmsg_new(NLMSG_GOODSIZE, GFP_ATOMIC);
219 if (!skb)
222 msg_head = genlmsg_put(skb, 0, 0, &hsr_genl_family, 0,
227 res = nla_put(skb, HSR_A_NODE_ADDR, ETH_ALEN, addr);
231 res = nla_put_u32(skb, HSR_A_IFINDEX, port->dev->ifindex);
235 genlmsg_end(skb, msg_head);
236 genlmsg_multicast(&hsr_genl_family, skb, 0, 0, GFP_ATOMIC);
241 kfree_skb(skb);
255 struct sk_buff *skb;
260 skb = genlmsg_new(NLMSG_GOODSIZE, GFP_ATOMIC);
261 if (!skb)
264 msg_head = genlmsg_put(skb, 0, 0, &hsr_genl_family, 0, HSR_C_NODE_DOWN);
268 res = nla_put(skb, HSR_A_NODE_ADDR, ETH_ALEN, addr);
272 genlmsg_end(skb, msg_head);
273 genlmsg_multicast(&hsr_genl_family, skb, 0, 0, GFP_ATOMIC);
278 kfree_skb(skb);