ena.h (c2c014f24c10f90d85126ac5fbd4d8524de32b1c) ena.h (43fefd1629ab1100a0c6fedec684b9c2aa7c1c6e)
1/*-
2 * BSD LICENSE
3 *
4 * Copyright (c) 2015-2017 Amazon.com, Inc. or its affiliates.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 228 unchanged lines hidden (view full) ---

237 counter_u64_t bad_csum;
238 /* Not counted */
239 counter_u64_t page_alloc_fail;
240 counter_u64_t mbuf_alloc_fail;
241 counter_u64_t dma_mapping_err;
242 counter_u64_t bad_desc_num;
243 /* Not counted */
244 counter_u64_t small_copy_len_pkt;
1/*-
2 * BSD LICENSE
3 *
4 * Copyright (c) 2015-2017 Amazon.com, Inc. or its affiliates.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 228 unchanged lines hidden (view full) ---

237 counter_u64_t bad_csum;
238 /* Not counted */
239 counter_u64_t page_alloc_fail;
240 counter_u64_t mbuf_alloc_fail;
241 counter_u64_t dma_mapping_err;
242 counter_u64_t bad_desc_num;
243 /* Not counted */
244 counter_u64_t small_copy_len_pkt;
245 counter_u64_t bad_req_id;
246 counter_u64_t empty_rx_ring;
245};
246
247
248struct ena_ring {
247};
248
249
250struct ena_ring {
249 /* Holds the empty requests for TX out of order completions */
250 uint16_t *free_tx_ids;
251 /* Holds the empty requests for TX/RX out of order completions */
252 union {
253 uint16_t *free_tx_ids;
254 uint16_t *free_rx_ids;
255 };
251 struct ena_com_dev *ena_dev;
252 struct ena_adapter *adapter;
253 struct ena_com_io_cq *ena_com_io_cq;
254 struct ena_com_io_sq *ena_com_io_sq;
255
256 /* The maximum length the driver can push to the device (For LLQ) */
257 enum ena_admin_placement_policy_type tx_mem_queue_type;
258 uint16_t rx_small_copy_len;

--- 178 unchanged lines hidden ---
256 struct ena_com_dev *ena_dev;
257 struct ena_adapter *adapter;
258 struct ena_com_io_cq *ena_com_io_cq;
259 struct ena_com_io_sq *ena_com_io_sq;
260
261 /* The maximum length the driver can push to the device (For LLQ) */
262 enum ena_admin_placement_policy_type tx_mem_queue_type;
263 uint16_t rx_small_copy_len;

--- 178 unchanged lines hidden ---