Lines Matching refs:nl_skb

374 	struct sk_buff *nl_skb;  in psample_sample_packet()  local
411 nl_skb = genlmsg_new(meta_len + nla_total_size(data_len), GFP_ATOMIC); in psample_sample_packet()
412 if (unlikely(!nl_skb)) in psample_sample_packet()
415 data = genlmsg_put(nl_skb, 0, 0, &psample_nl_family, 0, in psample_sample_packet()
421 ret = nla_put_u16(nl_skb, PSAMPLE_ATTR_IIFINDEX, in_ifindex); in psample_sample_packet()
427 ret = nla_put_u16(nl_skb, PSAMPLE_ATTR_OIFINDEX, out_ifindex); in psample_sample_packet()
432 ret = nla_put_u32(nl_skb, PSAMPLE_ATTR_SAMPLE_RATE, sample_rate); in psample_sample_packet()
436 ret = nla_put_u32(nl_skb, PSAMPLE_ATTR_ORIGSIZE, skb->len); in psample_sample_packet()
440 ret = nla_put_u32(nl_skb, PSAMPLE_ATTR_SAMPLE_GROUP, group->group_num); in psample_sample_packet()
444 ret = nla_put_u32(nl_skb, PSAMPLE_ATTR_GROUP_SEQ, group->seq++); in psample_sample_packet()
449 ret = nla_put_u16(nl_skb, PSAMPLE_ATTR_OUT_TC, md->out_tc); in psample_sample_packet()
455 ret = nla_put_u64_64bit(nl_skb, PSAMPLE_ATTR_OUT_TC_OCC, in psample_sample_packet()
462 ret = nla_put_u64_64bit(nl_skb, PSAMPLE_ATTR_LATENCY, in psample_sample_packet()
468 ret = nla_put_u64_64bit(nl_skb, PSAMPLE_ATTR_TIMESTAMP, in psample_sample_packet()
473 ret = nla_put_u16(nl_skb, PSAMPLE_ATTR_PROTO, in psample_sample_packet()
482 nla = skb_put(nl_skb, nla_len); in psample_sample_packet()
492 ret = psample_ip_tun_to_nlattr(nl_skb, tun_info); in psample_sample_packet()
499 nla_put(nl_skb, PSAMPLE_ATTR_USER_COOKIE, md->user_cookie_len, in psample_sample_packet()
504 nla_put_flag(nl_skb, PSAMPLE_ATTR_SAMPLE_PROBABILITY)) in psample_sample_packet()
507 genlmsg_end(nl_skb, data); in psample_sample_packet()
508 genlmsg_multicast_netns(&psample_nl_family, group->net, nl_skb, 0, in psample_sample_packet()
514 nlmsg_free(nl_skb); in psample_sample_packet()