Lines Matching refs:state
76 * Per-network device state.
129 * Used to track state of IP plumbing on network devices.
1838 struct netdev_solaris_queue_state *state;
1842 *statep = state = xmalloc(sizeof (*state));
1843 state->n_queues = hmap_count(&netdev->tc->queues);
1844 state->cur_queue = 0;
1845 state->queues =
1846 xmalloc(state->n_queues * sizeof (*state->queues));
1850 state->queues[i++] = queue->queue_id;
1870 struct netdev_solaris_queue_state *state = state_;
1872 if (!state) {
1873 VLOG_DBG("netdev_solaris_queue_dump_next %s: null state\n",
1879 ", %"PRIuSIZE, netdev_name, state->cur_queue, state->n_queues);
1881 while (state->cur_queue < state->n_queues) {
1882 unsigned int queue_id = state->queues[state->cur_queue++];
1905 struct netdev_solaris_queue_state *state = state_;
1908 if (state) {
1909 if (state->queues)
1910 free(state->queues);
1911 free(state);