ixl.h (9268022b74279434ed6300244e3f977e56a8ceb5) | ixl.h (393c4bb1ba19800fe850d39efd70e9e77ebe6afd) |
---|---|
1/****************************************************************************** 2 3 Copyright (c) 2013-2014, Intel Corporation 4 All rights reserved. 5 6 Redistribution and use in source and binary forms, with or without 7 modification, are permitted provided that the following conditions are met: 8 --- 79 unchanged lines hidden (view full) --- 88#include <sys/taskqueue.h> 89#include <sys/pcpu.h> 90#include <sys/smp.h> 91#include <machine/smp.h> 92 93#include "i40e_type.h" 94#include "i40e_prototype.h" 95 | 1/****************************************************************************** 2 3 Copyright (c) 2013-2014, Intel Corporation 4 All rights reserved. 5 6 Redistribution and use in source and binary forms, with or without 7 modification, are permitted provided that the following conditions are met: 8 --- 79 unchanged lines hidden (view full) --- 88#include <sys/taskqueue.h> 89#include <sys/pcpu.h> 90#include <sys/smp.h> 91#include <machine/smp.h> 92 93#include "i40e_type.h" 94#include "i40e_prototype.h" 95 |
96#ifdef IXL_DEBUG | 96#if defined(IXL_DEBUG) || defined(IXL_DEBUG_SYSCTL) |
97#include <sys/sbuf.h> 98 99#define MAC_FORMAT "%02x:%02x:%02x:%02x:%02x:%02x" 100#define MAC_FORMAT_ARGS(mac_addr) \ 101 (mac_addr)[0], (mac_addr)[1], (mac_addr)[2], (mac_addr)[3], \ 102 (mac_addr)[4], (mac_addr)[5] 103#define ON_OFF_STR(is_set) ((is_set) ? "On" : "Off") | 97#include <sys/sbuf.h> 98 99#define MAC_FORMAT "%02x:%02x:%02x:%02x:%02x:%02x" 100#define MAC_FORMAT_ARGS(mac_addr) \ 101 (mac_addr)[0], (mac_addr)[1], (mac_addr)[2], (mac_addr)[3], \ 102 (mac_addr)[4], (mac_addr)[5] 103#define ON_OFF_STR(is_set) ((is_set) ? "On" : "Off") |
104#endif /* IXL_DEBUG || IXL_DEBUG_SYSCTL */ |
|
104 | 105 |
106#ifdef IXL_DEBUG 107/* Enable debug sysctls */ 108#ifndef IXL_DEBUG_SYSCTL 109#define IXL_DEBUG_SYSCTL 1 110#endif |
|
105 106#define _DBG_PRINTF(S, ...) printf("%s: " S "\n", __func__, ##__VA_ARGS__) 107#define _DEV_DBG_PRINTF(dev, S, ...) device_printf(dev, "%s: " S "\n", __func__, ##__VA_ARGS__) 108#define _IF_DBG_PRINTF(ifp, S, ...) if_printf(ifp, "%s: " S "\n", __func__, ##__VA_ARGS__) 109 110/* Defines for printing generic debug information */ 111#define DPRINTF(...) _DBG_PRINTF(__VA_ARGS__) 112#define DDPRINTF(...) _DEV_DBG_PRINTF(__VA_ARGS__) --- 10 unchanged lines hidden (view full) --- 123 124#define IOCTL_DEBUGOUT(...) if (DEBUG_IOCTL) _DBG_PRINTF(__VA_ARGS__) 125#define IOCTL_DBG_IF2(ifp, S, ...) if (DEBUG_IOCTL) \ 126 if_printf(ifp, S "\n", ##__VA_ARGS__) 127#define IOCTL_DBG_IF(...) if (DEBUG_IOCTL) _IF_DBG_PRINTF(__VA_ARGS__) 128 129#define HW_DEBUGOUT(...) if (DEBUG_HW) _DBG_PRINTF(__VA_ARGS__) 130 | 111 112#define _DBG_PRINTF(S, ...) printf("%s: " S "\n", __func__, ##__VA_ARGS__) 113#define _DEV_DBG_PRINTF(dev, S, ...) device_printf(dev, "%s: " S "\n", __func__, ##__VA_ARGS__) 114#define _IF_DBG_PRINTF(ifp, S, ...) if_printf(ifp, "%s: " S "\n", __func__, ##__VA_ARGS__) 115 116/* Defines for printing generic debug information */ 117#define DPRINTF(...) _DBG_PRINTF(__VA_ARGS__) 118#define DDPRINTF(...) _DEV_DBG_PRINTF(__VA_ARGS__) --- 10 unchanged lines hidden (view full) --- 129 130#define IOCTL_DEBUGOUT(...) if (DEBUG_IOCTL) _DBG_PRINTF(__VA_ARGS__) 131#define IOCTL_DBG_IF2(ifp, S, ...) if (DEBUG_IOCTL) \ 132 if_printf(ifp, S "\n", ##__VA_ARGS__) 133#define IOCTL_DBG_IF(...) if (DEBUG_IOCTL) _IF_DBG_PRINTF(__VA_ARGS__) 134 135#define HW_DEBUGOUT(...) if (DEBUG_HW) _DBG_PRINTF(__VA_ARGS__) 136 |
131#else | 137#else /* no IXL_DEBUG */ |
132#define DEBUG_INIT 0 133#define DEBUG_IOCTL 0 134#define DEBUG_HW 0 135 136#define DPRINTF(...) 137#define DDPRINTF(...) 138#define IDPRINTF(...) 139 140#define INIT_DEBUGOUT(...) 141#define INIT_DBG_DEV(...) 142#define INIT_DBG_IF(...) 143#define IOCTL_DEBUGOUT(...) 144#define IOCTL_DBG_IF2(...) 145#define IOCTL_DBG_IF(...) 146#define HW_DEBUGOUT(...) | 138#define DEBUG_INIT 0 139#define DEBUG_IOCTL 0 140#define DEBUG_HW 0 141 142#define DPRINTF(...) 143#define DDPRINTF(...) 144#define IDPRINTF(...) 145 146#define INIT_DEBUGOUT(...) 147#define INIT_DBG_DEV(...) 148#define INIT_DBG_IF(...) 149#define IOCTL_DEBUGOUT(...) 150#define IOCTL_DBG_IF2(...) 151#define IOCTL_DBG_IF(...) 152#define HW_DEBUGOUT(...) |
147#endif | 153#endif /* IXL_DEBUG */ |
148 149/* Tunables */ 150 151/* 152 * Ring Descriptors Valid Range: 32-4096 Default Value: 1024 This value is the 153 * number of tx/rx descriptors allocated by the driver. Increasing this 154 * value allows the driver to queue more operations. Each descriptor is 16 155 * or 32 bytes (configurable in FVL) --- 53 unchanged lines hidden (view full) --- 209#define IXL_TX_ITR 1 210#define IXL_ITR_NONE 3 211#define IXL_QUEUE_EOL 0x7FF 212#define IXL_MAX_FRAME 0x2600 213#define IXL_MAX_TX_SEGS 8 214#define IXL_MAX_TSO_SEGS 66 215#define IXL_SPARSE_CHAIN 6 216#define IXL_QUEUE_HUNG 0x80000000 | 154 155/* Tunables */ 156 157/* 158 * Ring Descriptors Valid Range: 32-4096 Default Value: 1024 This value is the 159 * number of tx/rx descriptors allocated by the driver. Increasing this 160 * value allows the driver to queue more operations. Each descriptor is 16 161 * or 32 bytes (configurable in FVL) --- 53 unchanged lines hidden (view full) --- 215#define IXL_TX_ITR 1 216#define IXL_ITR_NONE 3 217#define IXL_QUEUE_EOL 0x7FF 218#define IXL_MAX_FRAME 0x2600 219#define IXL_MAX_TX_SEGS 8 220#define IXL_MAX_TSO_SEGS 66 221#define IXL_SPARSE_CHAIN 6 222#define IXL_QUEUE_HUNG 0x80000000 |
223#define IXL_KEYSZ 10 |
|
217 218/* ERJ: hardware can support ~1.5k filters between all functions */ 219#define IXL_MAX_FILTERS 256 220#define IXL_MAX_TX_BUSY 10 221 222#define IXL_NVM_VERSION_LO_SHIFT 0 223#define IXL_NVM_VERSION_LO_MASK (0xff << IXL_NVM_VERSION_LO_SHIFT) 224#define IXL_NVM_VERSION_HI_SHIFT 12 --- 380 unchanged lines hidden --- | 224 225/* ERJ: hardware can support ~1.5k filters between all functions */ 226#define IXL_MAX_FILTERS 256 227#define IXL_MAX_TX_BUSY 10 228 229#define IXL_NVM_VERSION_LO_SHIFT 0 230#define IXL_NVM_VERSION_LO_MASK (0xff << IXL_NVM_VERSION_LO_SHIFT) 231#define IXL_NVM_VERSION_HI_SHIFT 12 --- 380 unchanged lines hidden --- |