ena.h (1c028d7227b2ec8a9fc4128bb10b3fb94db6a86d) | ena.h (888810f0fb0c8993c4f3f841db7ff88ebc41396c) |
---|---|
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 0 | 44#define DRV_MODULE_VER_SUBMINOR 1 |
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) --- 183 unchanged lines hidden (view full) --- 236 237struct ena_tx_buffer { 238 struct mbuf *mbuf; 239 /* # of ena desc for this specific mbuf 240 * (includes data desc and metadata desc) */ 241 unsigned int tx_descs; 242 /* # of buffers used by this mbuf */ 243 unsigned int num_of_bufs; | 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) --- 183 unchanged lines hidden (view full) --- 236 237struct ena_tx_buffer { 238 struct mbuf *mbuf; 239 /* # of ena desc for this specific mbuf 240 * (includes data desc and metadata desc) */ 241 unsigned int tx_descs; 242 /* # of buffers used by this mbuf */ 243 unsigned int num_of_bufs; |
244 bus_dmamap_t map_head; 245 bus_dmamap_t map_seg; | |
246 | 244 |
247 /* Indicate if segments of the mbuf were mapped */ 248 bool seg_mapped; 249 /* Indicate if bufs[0] maps the linear data of the mbuf */ 250 bool head_mapped; | 245 bus_dmamap_t dmamap; |
251 252 /* Used to detect missing tx packets */ 253 struct bintime timestamp; 254 bool print_once; 255 256#ifdef DEV_NETMAP 257 struct ena_netmap_tx_info nm_info; 258#endif /* DEV_NETMAP */ --- 254 unchanged lines hidden --- | 246 247 /* Used to detect missing tx packets */ 248 struct bintime timestamp; 249 bool print_once; 250 251#ifdef DEV_NETMAP 252 struct ena_netmap_tx_info nm_info; 253#endif /* DEV_NETMAP */ --- 254 unchanged lines hidden --- |