• Home
  • Raw
  • Download

Lines Matching refs:attr

327 	struct nlattr *attr;  in net_dm_hw_entry_put()  local
329 attr = nla_nest_start(msg, NET_DM_ATTR_HW_ENTRY); in net_dm_hw_entry_put()
330 if (!attr) in net_dm_hw_entry_put()
339 nla_nest_end(msg, attr); in net_dm_hw_entry_put()
344 nla_nest_cancel(msg, attr); in net_dm_hw_entry_put()
351 struct nlattr *attr; in net_dm_hw_entries_put() local
354 attr = nla_nest_start(msg, NET_DM_ATTR_HW_ENTRIES); in net_dm_hw_entries_put()
355 if (!attr) in net_dm_hw_entries_put()
366 nla_nest_end(msg, attr); in net_dm_hw_entries_put()
371 nla_nest_cancel(msg, attr); in net_dm_hw_entries_put()
587 struct nlattr *attr; in net_dm_packet_report_in_port_put() local
589 attr = nla_nest_start(msg, NET_DM_ATTR_IN_PORT); in net_dm_packet_report_in_port_put()
590 if (!attr) in net_dm_packet_report_in_port_put()
600 nla_nest_end(msg, attr); in net_dm_packet_report_in_port_put()
605 nla_nest_cancel(msg, attr); in net_dm_packet_report_in_port_put()
616 struct nlattr *attr; in net_dm_packet_report_fill() local
672 attr = skb_put(msg, nla_total_size(payload_len)); in net_dm_packet_report_fill()
673 attr->nla_type = NET_DM_ATTR_PAYLOAD; in net_dm_packet_report_fill()
674 attr->nla_len = nla_attr_size(payload_len); in net_dm_packet_report_fill()
675 if (skb_copy_bits(skb, 0, nla_data(attr), payload_len)) in net_dm_packet_report_fill()
782 struct nlattr *attr; in net_dm_hw_packet_report_fill() local
832 attr = skb_put(msg, nla_total_size(payload_len)); in net_dm_hw_packet_report_fill()
833 attr->nla_type = NET_DM_ATTR_PAYLOAD; in net_dm_hw_packet_report_fill()
834 attr->nla_len = nla_attr_size(payload_len); in net_dm_hw_packet_report_fill()
835 if (skb_copy_bits(skb, 0, nla_data(attr), payload_len)) in net_dm_hw_packet_report_fill()
1461 struct nlattr *attr; in net_dm_stats_put() local
1465 attr = nla_nest_start(msg, NET_DM_ATTR_STATS); in net_dm_stats_put()
1466 if (!attr) in net_dm_stats_put()
1473 nla_nest_end(msg, attr); in net_dm_stats_put()
1478 nla_nest_cancel(msg, attr); in net_dm_stats_put()
1505 struct nlattr *attr; in net_dm_hw_stats_put() local
1509 attr = nla_nest_start(msg, NET_DM_ATTR_HW_STATS); in net_dm_hw_stats_put()
1510 if (!attr) in net_dm_hw_stats_put()
1517 nla_nest_end(msg, attr); in net_dm_hw_stats_put()
1522 nla_nest_cancel(msg, attr); in net_dm_hw_stats_put()