ena.h (75dfc66c1b2b44609e5a7c3e1d6a751be4922689) ena.h (04cf2b885d7dc385ed8e48df1d0218b5e4162869)
1/*-
2 * BSD LICENSE
3 *
4 * Copyright (c) 2015-2019 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

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

36
37#include <sys/types.h>
38
39#include "ena-com/ena_com.h"
40#include "ena-com/ena_eth_com.h"
41
42#define DRV_MODULE_VER_MAJOR 2
43#define DRV_MODULE_VER_MINOR 1
1/*-
2 * BSD LICENSE
3 *
4 * Copyright (c) 2015-2019 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

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

36
37#include <sys/types.h>
38
39#include "ena-com/ena_com.h"
40#include "ena-com/ena_eth_com.h"
41
42#define DRV_MODULE_VER_MAJOR 2
43#define DRV_MODULE_VER_MINOR 1
44#define DRV_MODULE_VER_SUBMINOR 1
44#define DRV_MODULE_VER_SUBMINOR 2
45
46#define DRV_MODULE_NAME "ena"
47
48#ifndef DRV_MODULE_VERSION
49#define DRV_MODULE_VERSION \
50 __XSTRING(DRV_MODULE_VER_MAJOR) "." \
51 __XSTRING(DRV_MODULE_VER_MINOR) "." \
52 __XSTRING(DRV_MODULE_VER_SUBMINOR)

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

302 struct ena_adapter *adapter;
303 struct ena_com_io_cq *ena_com_io_cq;
304 struct ena_com_io_sq *ena_com_io_sq;
305
306 uint16_t qid;
307
308 /* Determines if device will use LLQ or normal mode for TX */
309 enum ena_admin_placement_policy_type tx_mem_queue_type;
45
46#define DRV_MODULE_NAME "ena"
47
48#ifndef DRV_MODULE_VERSION
49#define DRV_MODULE_VERSION \
50 __XSTRING(DRV_MODULE_VER_MAJOR) "." \
51 __XSTRING(DRV_MODULE_VER_MINOR) "." \
52 __XSTRING(DRV_MODULE_VER_SUBMINOR)

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

302 struct ena_adapter *adapter;
303 struct ena_com_io_cq *ena_com_io_cq;
304 struct ena_com_io_sq *ena_com_io_sq;
305
306 uint16_t qid;
307
308 /* Determines if device will use LLQ or normal mode for TX */
309 enum ena_admin_placement_policy_type tx_mem_queue_type;
310 /* The maximum length the driver can push to the device (For LLQ) */
311 uint8_t tx_max_header_size;
310 union {
311 /* The maximum length the driver can push to the device (For LLQ) */
312 uint8_t tx_max_header_size;
313 /* The maximum (and default) mbuf size for the Rx descriptor. */
314 uint16_t rx_mbuf_sz;
312
315
316 };
317
313 bool first_interrupt;
314 uint16_t no_interrupt_event_cnt;
315
316 struct ena_com_rx_buf_info ena_bufs[ENA_PKT_MAX_BUFS];
317
318 /*
319 * Fields used for Adaptive Interrupt Modulation - to be implemented in
320 * the future releases

--- 187 unchanged lines hidden ---
318 bool first_interrupt;
319 uint16_t no_interrupt_event_cnt;
320
321 struct ena_com_rx_buf_info ena_bufs[ENA_PKT_MAX_BUFS];
322
323 /*
324 * Fields used for Adaptive Interrupt Modulation - to be implemented in
325 * the future releases

--- 187 unchanged lines hidden ---