![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 */ 0002 /* 0003 * This file is based on code from OCTEON SDK by Cavium Networks. 0004 * 0005 * Copyright (c) 2003-2007 Cavium Networks 0006 */ 0007 0008 /* 0009 * A few defines are used to control the operation of this driver: 0010 * USE_ASYNC_IOBDMA 0011 * Use asynchronous IO access to hardware. This uses Octeon's asynchronous 0012 * IOBDMAs to issue IO accesses without stalling. Set this to zero 0013 * to disable this. Note that IOBDMAs require CVMSEG. 0014 * REUSE_SKBUFFS_WITHOUT_FREE 0015 * Allows the TX path to free an skbuff into the FPA hardware pool. This 0016 * can significantly improve performance for forwarding and bridging, but 0017 * may be somewhat dangerous. Checks are made, but if any buffer is reused 0018 * without the proper Linux cleanup, the networking stack may have very 0019 * bizarre bugs. 0020 */ 0021 #ifndef __ETHERNET_DEFINES_H__ 0022 #define __ETHERNET_DEFINES_H__ 0023 0024 #ifdef CONFIG_NETFILTER 0025 #define REUSE_SKBUFFS_WITHOUT_FREE 0 0026 #else 0027 #define REUSE_SKBUFFS_WITHOUT_FREE 1 0028 #endif 0029 0030 #define USE_ASYNC_IOBDMA (CONFIG_CAVIUM_OCTEON_CVMSEG_SIZE > 0) 0031 0032 /* Maximum number of SKBs to try to free per xmit packet. */ 0033 #define MAX_OUT_QUEUE_DEPTH 1000 0034 0035 #define FAU_TOTAL_TX_TO_CLEAN (CVMX_FAU_REG_END - sizeof(u32)) 0036 #define FAU_NUM_PACKET_BUFFERS_TO_FREE (FAU_TOTAL_TX_TO_CLEAN - sizeof(u32)) 0037 0038 #define TOTAL_NUMBER_OF_PORTS (CVMX_PIP_NUM_INPUT_PORTS + 1) 0039 0040 #endif /* __ETHERNET_DEFINES_H__ */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |