Home
last modified time | relevance | path

Searched refs:dscpmk_data (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/uts/common/ipp/dscpmk/
H A Ddscpmkddi.c126 dscpmk_data_t *dscpmk_data; in dscpmk_create_action() local
138 if ((dscpmk_data = kmem_zalloc(DSCPMK_DATA_SZ, KM_NOSLEEP)) == NULL) { in dscpmk_create_action()
149 kmem_free(dscpmk_data, DSCPMK_DATA_SZ); in dscpmk_create_action()
153 if ((dscpmk_data->next_action = ipp_action_lookup(next_action)) in dscpmk_create_action()
158 kmem_free(dscpmk_data, DSCPMK_DATA_SZ); in dscpmk_create_action()
163 bcopy(default_dscp_map, dscpmk_data->dscp_map, in dscpmk_create_action()
173 dscpmk_data->dscp_map[cnt])) { in dscpmk_create_action()
174 dscpmk_data->dscp_map[cnt] = tbl[cnt]; in dscpmk_create_action()
183 dscpmk_data->summary_stats = B_FALSE; in dscpmk_create_action()
185 dscpmk_data->summary_stats = (bstats != 0) ? B_TRUE : B_FALSE; in dscpmk_create_action()
[all …]
H A Ddscpmk.c48 dscpmk_process(mblk_t **mpp, dscpmk_data_t *dscpmk_data, ip_proc_t proc) in dscpmk_process() argument
69 atomic_inc_64(&dscpmk_data->epackets); in dscpmk_process()
78 atomic_inc_64(&dscpmk_data->epackets); in dscpmk_process()
85 atomic_inc_64(&dscpmk_data->npackets); in dscpmk_process()
93 atomic_inc_64(&dscpmk_data->ipackets); in dscpmk_process()
112 new_dscp = dscpmk_data->dscp_map[dscp >> 2]; in dscpmk_process()
115 atomic_inc_64(&dscpmk_data->dscp_stats[new_dscp].npackets); in dscpmk_process()
122 atomic_inc_64(&dscpmk_data->unchanged); in dscpmk_process()
129 atomic_inc_64(&dscpmk_data->changed); in dscpmk_process()