Lines Matching refs:dp_nlsk_pids
1571 struct dp_nlsk_pids *pids = ovsl_dereference(dp->upcall_portids); in ovs_dp_cmd_fill_info()
1658 struct dp_nlsk_pids *old, *dp_nlsk_pids; in ovs_dp_set_upcall_portids() local
1665 dp_nlsk_pids = kmalloc(sizeof(*dp_nlsk_pids) + nla_len(ids), in ovs_dp_set_upcall_portids()
1667 if (!dp_nlsk_pids) in ovs_dp_set_upcall_portids()
1670 dp_nlsk_pids->n_pids = nla_len(ids) / sizeof(u32); in ovs_dp_set_upcall_portids()
1671 nla_memcpy(dp_nlsk_pids->pids, ids, nla_len(ids)); in ovs_dp_set_upcall_portids()
1673 rcu_assign_pointer(dp->upcall_portids, dp_nlsk_pids); in ovs_dp_set_upcall_portids()
1682 struct dp_nlsk_pids *dp_nlsk_pids; in ovs_dp_get_upcall_portid() local
1684 dp_nlsk_pids = rcu_dereference(dp->upcall_portids); in ovs_dp_get_upcall_portid()
1686 if (dp_nlsk_pids) { in ovs_dp_get_upcall_portid()
1687 if (cpu_id < dp_nlsk_pids->n_pids) { in ovs_dp_get_upcall_portid()
1688 return dp_nlsk_pids->pids[cpu_id]; in ovs_dp_get_upcall_portid()
1689 } else if (dp_nlsk_pids->n_pids > 0 && in ovs_dp_get_upcall_portid()
1690 cpu_id >= dp_nlsk_pids->n_pids) { in ovs_dp_get_upcall_portid()
1697 return dp_nlsk_pids->pids[cpu_id % in ovs_dp_get_upcall_portid()
1698 dp_nlsk_pids->n_pids]; in ovs_dp_get_upcall_portid()