Lines Matching refs:nl_skb
370 struct sk_buff *nl_skb; in psample_sample_packet() local
399 nl_skb = genlmsg_new(meta_len + nla_total_size(data_len), GFP_ATOMIC); in psample_sample_packet()
400 if (unlikely(!nl_skb)) in psample_sample_packet()
403 data = genlmsg_put(nl_skb, 0, 0, &psample_nl_family, 0, in psample_sample_packet()
409 ret = nla_put_u16(nl_skb, PSAMPLE_ATTR_IIFINDEX, in_ifindex); in psample_sample_packet()
415 ret = nla_put_u16(nl_skb, PSAMPLE_ATTR_OIFINDEX, out_ifindex); in psample_sample_packet()
420 ret = nla_put_u32(nl_skb, PSAMPLE_ATTR_SAMPLE_RATE, sample_rate); in psample_sample_packet()
424 ret = nla_put_u32(nl_skb, PSAMPLE_ATTR_ORIGSIZE, skb->len); in psample_sample_packet()
428 ret = nla_put_u32(nl_skb, PSAMPLE_ATTR_SAMPLE_GROUP, group->group_num); in psample_sample_packet()
432 ret = nla_put_u32(nl_skb, PSAMPLE_ATTR_GROUP_SEQ, group->seq++); in psample_sample_packet()
437 ret = nla_put_u16(nl_skb, PSAMPLE_ATTR_OUT_TC, md->out_tc); in psample_sample_packet()
443 ret = nla_put_u64_64bit(nl_skb, PSAMPLE_ATTR_OUT_TC_OCC, in psample_sample_packet()
450 ret = nla_put_u64_64bit(nl_skb, PSAMPLE_ATTR_LATENCY, in psample_sample_packet()
456 ret = nla_put_u64_64bit(nl_skb, PSAMPLE_ATTR_TIMESTAMP, in psample_sample_packet()
461 ret = nla_put_u16(nl_skb, PSAMPLE_ATTR_PROTO, in psample_sample_packet()
470 nla = skb_put(nl_skb, nla_len); in psample_sample_packet()
480 ret = psample_ip_tun_to_nlattr(nl_skb, tun_info); in psample_sample_packet()
486 genlmsg_end(nl_skb, data); in psample_sample_packet()
487 genlmsg_multicast_netns(&psample_nl_family, group->net, nl_skb, 0, in psample_sample_packet()
493 nlmsg_free(nl_skb); in psample_sample_packet()