Lines Matching refs:dp_nlsk_pids
1570 struct dp_nlsk_pids *pids = ovsl_dereference(dp->upcall_portids); in ovs_dp_cmd_fill_info()
1657 struct dp_nlsk_pids *old, *dp_nlsk_pids; in ovs_dp_set_upcall_portids() local
1664 dp_nlsk_pids = kmalloc(sizeof(*dp_nlsk_pids) + nla_len(ids), in ovs_dp_set_upcall_portids()
1666 if (!dp_nlsk_pids) in ovs_dp_set_upcall_portids()
1669 dp_nlsk_pids->n_pids = nla_len(ids) / sizeof(u32); in ovs_dp_set_upcall_portids()
1670 nla_memcpy(dp_nlsk_pids->pids, ids, nla_len(ids)); in ovs_dp_set_upcall_portids()
1672 rcu_assign_pointer(dp->upcall_portids, dp_nlsk_pids); in ovs_dp_set_upcall_portids()
1681 struct dp_nlsk_pids *dp_nlsk_pids; in ovs_dp_get_upcall_portid() local
1683 dp_nlsk_pids = rcu_dereference(dp->upcall_portids); in ovs_dp_get_upcall_portid()
1685 if (dp_nlsk_pids) { in ovs_dp_get_upcall_portid()
1686 if (cpu_id < dp_nlsk_pids->n_pids) { in ovs_dp_get_upcall_portid()
1687 return dp_nlsk_pids->pids[cpu_id]; in ovs_dp_get_upcall_portid()
1688 } else if (dp_nlsk_pids->n_pids > 0 && in ovs_dp_get_upcall_portid()
1689 cpu_id >= dp_nlsk_pids->n_pids) { in ovs_dp_get_upcall_portid()
1696 return dp_nlsk_pids->pids[cpu_id % in ovs_dp_get_upcall_portid()
1697 dp_nlsk_pids->n_pids]; in ovs_dp_get_upcall_portid()