| /dpdk/drivers/common/cnxk/hw/ |
| H A D | sso.h | 47 #define SSO_AF_POISONX(a) (0x2100ull | (uint64_t)(a) << 3) argument 48 #define SSO_AF_POISONX_W1S(a) (0x2200ull | (uint64_t)(a) << 3) argument 67 #define SSO_AF_HWGRPX_WS_PC(a) (0x200050ull | (uint64_t)(a) << 12) argument 69 #define SSO_AF_HWGRPX_WA_PC(a) (0x200070ull | (uint64_t)(a) << 12) argument 70 #define SSO_AF_HWGRPX_TS_PC(a) (0x200080ull | (uint64_t)(a) << 12) argument 71 #define SSO_AF_HWGRPX_DS_PC(a) (0x200090ull | (uint64_t)(a) << 12) argument 72 #define SSO_AF_HWGRPX_DQ_PC(a) (0x2000A0ull | (uint64_t)(a) << 12) argument 93 #define SSO_AF_IPL_FREEX(a) (0x800000ull | (uint64_t)(a) << 3) argument 94 #define SSO_AF_IPL_IAQX(a) (0x840000ull | (uint64_t)(a) << 3) argument 96 #define SSO_AF_IPL_CONFX(a) (0x880000ull | (uint64_t)(a) << 3) argument [all …]
|
| H A D | rvu.h | 72 #define RVU_PF_VFTRPENDX(a) (0x820ull | (uint64_t)(a) << 3) argument 78 #define RVU_PF_VFFLR_INTX(a) (0x900ull | (uint64_t)(a) << 3) argument 82 #define RVU_PF_VFME_INTX(a) (0x980ull | (uint64_t)(a) << 3) argument 86 #define RVU_PF_PFAF_MBOXX(a) (0xc00ull | (uint64_t)(a) << 3) argument 94 #define RVU_VF_VFPF_MBOXX(a) (0x0ull | (uint64_t)(a) << 3) argument 177 #define TIM_AF_BAR2_ALIASX(a, b) AF_BAR2_ALIASX(a, b) argument 178 #define SSO_AF_BAR2_ALIASX(a, b) AF_BAR2_ALIASX(a, b) argument 180 #define SSOW_AF_BAR2_ALIASX(a, b) AF_BAR2_ALIASX(a, b) argument 182 #define CPT_AF_BAR2_ALIASX(a, b) AF_BAR2_ALIASX(a, b) argument 183 #define RVU_AF_BAR2_ALIASX(a, b) AF_BAR2_ALIASX(a, b) argument [all …]
|
| H A D | nix.h | 61 #define NIX_AF_RX_DEF_ETX(a) (0x1f0ull | (uint64_t)(a) << 3) argument 79 #define NIX_AF_RX_DEF_IPSECX(a) (0x2b0ull | (uint64_t)(a) << 3) argument 87 #define NIX_AF_RX_CPTX_CREDIT(a) (0x360ull | (uint64_t)(a) << 3) argument 111 #define NIX_AF_SMQX_CFG(a) (0x700ull | (uint64_t)(a) << 16) argument 112 #define NIX_AF_SMQX_HEAD(a) (0x710ull | (uint64_t)(a) << 16) argument 113 #define NIX_AF_SMQX_TAIL(a) (0x720ull | (uint64_t)(a) << 16) argument 114 #define NIX_AF_SMQX_STATUS(a) (0x730ull | (uint64_t)(a) << 16) argument 176 #define NIX_AF_TL2X_CIR(a) (0xe20ull | (uint64_t)(a) << 16) argument 177 #define NIX_AF_TL2X_PIR(a) (0xe30ull | (uint64_t)(a) << 16) argument 275 #define NIX_AF_LFX_CFG(a) (0x4000ull | (uint64_t)(a) << 17) argument [all …]
|
| H A D | npc.h | 17 #define NPC_AF_KPUX_CFG(a) (0x500ull | (uint64_t)(a) << 3) argument 23 #define NPC_AF_KEX_LDATAX_FLAGS_CFG(a) (0x800ull | (uint64_t)(a) << 3) argument 24 #define NPC_AF_INTFX_KEX_CFG(a) (0x1010ull | (uint64_t)(a) << 8) argument 25 #define NPC_AF_PKINDX_ACTION0(a) (0x80000ull | (uint64_t)(a) << 6) argument 26 #define NPC_AF_PKINDX_ACTION1(a) (0x80008ull | (uint64_t)(a) << 6) argument 39 #define NPC_AF_CPIX_CFG(a) (0x200000ull | (uint64_t)(a) << 3) argument 70 #define NPC_AF_LKUP_DATAX(a) (0x2000200ull | (uint64_t)(a) << 4) argument 71 #define NPC_AF_LKUP_RESULTX(a) (0x2000400ull | (uint64_t)(a) << 4) argument 72 #define NPC_AF_INTFX_STAT(a) (0x2000800ull | (uint64_t)(a) << 4) argument 75 #define NPC_AF_KPUX_DBG(a) (0x3000020ull | (uint64_t)(a) << 8) argument [all …]
|
| H A D | tim.h | 10 #define TIM_PRIV_LFX_CFG(a) (0x20000 | (a) << 3) argument 11 #define TIM_PRIV_LFX_INT_CFG(a) (0x24000 | (a) << 3) argument 16 #define TIM_AF_RINGX_GMCTL(a) (0x2000 | (a) << 3) argument 17 #define TIM_AF_RINGX_CTL0(a) (0x4000 | (a) << 3) argument 18 #define TIM_AF_RINGX_CTL1(a) (0x6000 | (a) << 3) argument 19 #define TIM_AF_RINGX_CTL2(a) (0x8000 | (a) << 3) argument
|
| H A D | npa.h | 51 #define NPA_AF_LFX_AURAS_CFG(a) (0x4000ull | (uint64_t)(a) << 18) argument 52 #define NPA_AF_LFX_LOC_AURAS_BASE(a) (0x4010ull | (uint64_t)(a) << 18) argument 53 #define NPA_AF_LFX_QINTS_CFG(a) (0x4100ull | (uint64_t)(a) << 18) argument 54 #define NPA_AF_LFX_QINTS_BASE(a) (0x4110ull | (uint64_t)(a) << 18) argument 56 #define NPA_PRIV_LFX_CFG(a) (0x10010ull | (uint64_t)(a) << 8) argument 57 #define NPA_PRIV_LFX_INT_CFG(a) (0x10020ull | (uint64_t)(a) << 8) argument 61 #define NPA_LF_AURA_OP_ALLOCX(a) (0x10ull | (uint64_t)(a) << 3) argument 84 #define NPA_LF_QINTX_CNT(a) (0x300ull | (uint64_t)(a) << 12) argument 85 #define NPA_LF_QINTX_INT(a) (0x310ull | (uint64_t)(a) << 12) argument 86 #define NPA_LF_QINTX_ENA_W1S(a) (0x320ull | (uint64_t)(a) << 12) argument [all …]
|
| /dpdk/lib/hash/ |
| H A D | rte_jhash.h | 49 a -= c; a ^= rot(c, 4); c += b; \ 50 b -= a; b ^= rot(a, 6); a += c; \ 52 a -= c; a ^= rot(c, 16); c += b; \ 53 b -= a; b ^= rot(a, 19); a += c; \ 59 a ^= c; a -= rot(c, 11); \ 60 b ^= a; b -= rot(a, 25); \ 62 a ^= c; a -= rot(c, 4); \ 63 b ^= a; b -= rot(a, 14); \ 84 uint32_t a, b, c; in __rte_jhash_2hashes() local 103 a += k[0]; in __rte_jhash_2hashes() [all …]
|
| /dpdk/drivers/net/bnxt/tf_core/ |
| H A D | lookup3.h | 61 (a) -= (c); (a) ^= rot((c), 4); (c) += b; \ 62 (b) -= (a); (b) ^= rot((a), 6); (a) += c; \ 64 (a) -= (c); (a) ^= rot((c), 16); (c) += b; \ 65 (b) -= (a); (b) ^= rot((a), 19); (a) += c; \ 96 (a) ^= (c); (a) -= rot((c), 11); \ 97 (b) ^= (a); (b) -= rot((a), 25); \ 99 (a) ^= (c); (a) -= rot((c), 4); \ 100 (b) ^= (a); (b) -= rot((a), 14); \ 129 b = a; in hashword() 130 c = a; in hashword() [all …]
|
| /dpdk/drivers/net/i40e/base/ |
| H A D | i40e_osdep.h | 80 #define min(a,b) RTE_MIN(a,b) argument 81 #define max(a,b) RTE_MAX(a,b) argument 164 #define I40E_WRITE_FLUSH(a) I40E_READ_REG(a, I40E_GLGEN_STAT) argument 202 #define LE16_TO_CPU(a) rte_le_to_cpu_16(a) argument 209 #define le16_to_cpu(a) rte_le_to_cpu_16(a) argument 223 #define I40E_NTOHS(a) rte_be_to_cpu_16(a) argument 224 #define I40E_NTOHL(a) rte_be_to_cpu_32(a) argument 225 #define I40E_HTONS(a) rte_cpu_to_be_16(a) argument 226 #define I40E_HTONL(a) rte_cpu_to_be_32(a) argument 228 #define i40e_memset(a, b, c, d) memset((a), (b), (c)) argument [all …]
|
| /dpdk/drivers/common/iavf/ |
| H A D | iavf_osdep.h | 67 #define min(a, b) RTE_MIN(a, b) argument 68 #define max(a, b) RTE_MAX(a, b) argument 76 #define LE16_TO_CPU(a) rte_le_to_cpu_16(a) argument 84 #define NTOHS(a) rte_be_to_cpu_16(a) argument 85 #define NTOHL(a) rte_be_to_cpu_32(a) argument 86 #define HTONS(a) rte_cpu_to_be_16(a) argument 87 #define HTONL(a) rte_cpu_to_be_32(a) argument 120 #define rd32(a, reg) readl((a)->hw_addr + (reg)) argument 122 #define rd64(a, reg) readq((a)->hw_addr + (reg)) argument 126 #define iavf_memset(a, b, c, d) memset((a), (b), (c)) argument [all …]
|
| /dpdk/drivers/common/sfc_efx/base/ |
| H A D | efx_hash.c | 94 uint32_t a; in efx_hash_dwords() local 104 a += input[0]; in efx_hash_dwords() 107 EFX_HASH_MIX(a, b, c); in efx_hash_dwords() 122 a += input[0]; in efx_hash_dwords() 123 EFX_HASH_FINALISE(a, b, c); in efx_hash_dwords() 143 uint32_t a; in efx_hash_bytes() local 155 a += ((uint32_t)input[3]); in efx_hash_bytes() 164 EFX_HASH_MIX(a, b, c); in efx_hash_bytes() 196 a += ((uint32_t)input[3]); in efx_hash_bytes() 226 uint32_t a; in efx_hash_bytes() local [all …]
|
| /dpdk/drivers/crypto/octeontx/ |
| H A D | otx_cryptodev_hw_access.h | 123 ((a) & 0x0) + 0x100000ll * (b)) 125 ((a) & 0x0) + 0x100000ll * (b)) 127 ((a) & 0x0) + 0x100000ll * (b)) 129 ((a) & 0x0) + 0x100000ll * (b)) 131 ((a) & 0x1) + 0x100000ll * (b)) 133 ((a) & 0x1) + 0x100000ll * (b)) 135 ((a) & 0x1) + 0x100000ll * (b)) 137 ((a) & 0x1) + 0x100000ll * (b)) 139 ((a) & 0x1) + 0x100000ll * (b)) 141 ((a) & 0x1) + 0x100000ll * (b)) [all …]
|
| /dpdk/examples/pipeline/examples/ |
| H A D | packet.txt | 12 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 18 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 24 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 30 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 36 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 42 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 48 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 54 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 60 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 66 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 [all …]
|
| /dpdk/lib/sched/ |
| H A D | rte_sched_common.h | 59 if (a == 0) in rte_get_gcd64() 62 return a; in rte_get_gcd64() 64 if (a < b) { in rte_get_gcd64() 65 c = a; in rte_get_gcd64() 66 a = b; in rte_get_gcd64() 71 c = a % b; in rte_get_gcd64() 72 a = b; in rte_get_gcd64() 76 return a; in rte_get_gcd64() 83 rte_get_gcd(uint32_t a, uint32_t b) in rte_get_gcd() argument 85 return rte_get_gcd64(a, b); in rte_get_gcd() [all …]
|
| /dpdk/doc/guides/prog_guide/ |
| H A D | timer_lib.rst | 29 Timers are tracked on a per-lcore basis, 30 with all pending timers for a core being maintained in order of timer expiry in a skiplist data str… 38 which is a union of a timer state (stopped, pending, running, config) and an owner (lcore id). 39 Depending on the timer state, we know if a timer is present in a list or not: 41 * STOPPED: no owner, not in a list 45 * PENDING: owned by a core, present in a list 47 * RUNNING: owned by a core, must not be modified by another core, present in a list 49 Resetting or stopping a timer while it is in a CONFIG or RUNNING state is not allowed. 50 When modifying the state of a timer, 60 a check on the value cannot be done on 32-bit platforms without using either a compare-and-swap (CA… [all …]
|
| H A D | member_lib.rst | 13 new member, delete an existing member, or query the existence of a member in a 14 given set, or a group of sets. For the case of a group of sets, the library 20 structure that provides a "set-summary" on whether a member belongs to a set, 37 include a list of elements while a complete list requires too much space 39 a lossy hash-based representation of a set of members. It can dramatically 49 There are various usages for a Membership Library in a very 54 * Sub-figure (a) 61 requested web page from a nearby proxy or from a back-end web server. 81 element of a set against the other elements in a different set, a join is done 98 a set" (with very high probability) or "definitely not in a set". [all …]
|
| H A D | stack_lib.rst | 7 DPDK's stack library provides an API for configuration and use of a bounded 12 * Create a uniquely named stack of a user-specified size and using a 19 * Free a previously created stack. 21 * Lookup a pointer to a stack by its name. 23 * Query a stack's current depth and number of free entries. 36 The lock-based stack consists of a contiguous array of pointers, a current 45 The lock-free stack consists of a linked list of elements, each containing a 46 data pointer and a next pointer, and an atomic stack depth counter. The 73 To prevent the ABA problem, this algorithm stack uses a 128-bit 75 and a modification counter. The ABA problem can occur without a modification [all …]
|
| H A D | toeplitz_hash_lib.rst | 91 - In the case of a TCP stack, a special source port could be chosen for 103 ensure a collision. 110 associated with a particular NIC or a set of NICs. It expects: 146 associated with a given context and a part of a target tuple of interest which 147 could be altered to produce a hash collision. On success it writes a specially 149 and calculates a table with values to be XORed with a subtuple. 192 a number of other functions. It alters a passed tuple to meet the above 207 there is a callback and a limit on the number of attempts to change the 228 cores. Such a situation is not ideal from a performance perspective and 253 To achieve this in a SNAT scenario it is possible to choose a source port not [all …]
|
| H A D | efd_lib.rst | 13 is a very common task. Many workloads require a deterministic 14 partitioning of a flat key space among a cluster of machines. When a 22 EFD is a distributor library that uses perfect hashing to determine a 43 function can be used to direct a certain flow to a target based on 125 The basic idea of EFD is when a given key is to be inserted, a family of 141 Intuitively, finding a hash function that maps each of a large number 209 The EFD library API is created with a very similar semantics of a 210 hash-index or a flow table. The application creates an EFD table for a 213 target values for a given individual flow key or a bulk of keys. 234 The EFD function to insert a key or update a key to a new value is [all …]
|
| /dpdk/doc/guides/howto/ |
| H A D | vfd.rst | 16 configuring a feature on a VF is that an application would call the APIs 27 VFd is a new method of controlling the features on a VF. The VF driver doesn't 28 talk directly to the PF driver when configuring a feature on the VF. When a VF 158 Run a testpmd runtime command on the PF to set the VLAN insertion for a VF 173 for a VF port:: 221 a specific VF:: 232 Run a testpmd runtime command on the PF to all queues' rate limit for a 247 a specific VF:: 258 for a specific VF:: 355 is a relative value as a percentage. The sum of all the bandwidth should [all …]
|
| /dpdk/drivers/net/ice/base/ |
| H A D | ice_osdep.h | 73 #define min(a, b) RTE_MIN(a, b) argument 74 #define max(a, b) RTE_MAX(a, b) argument 82 #define LE16_TO_CPU(a) rte_le_to_cpu_16(a) argument 91 #define NTOHS(a) rte_be_to_cpu_16(a) argument 92 #define NTOHL(a) rte_be_to_cpu_32(a) argument 93 #define HTONS(a) rte_cpu_to_be_16(a) argument 94 #define HTONL(a) rte_cpu_to_be_32(a) argument 144 #define BIT_ULL(a) (1ULL << (a)) argument 181 #define ice_flush(a) ICE_READ_REG((a), GLGEN_STAT) argument 184 #define flush(a) ICE_READ_REG((a), GLGEN_STAT) argument [all …]
|
| /dpdk/drivers/net/dpaa2/base/ |
| H A D | dpaa2_tlu_hash.c | 11 unsigned int a, b, c, d; in sbox() local 14 a = x & 0x1; in sbox() 19 oa = ((a & ~b & ~c & d) | (~a & b) | (~a & ~c & ~d) | (b & c)) & 0x1; in sbox() 20 ob = ((a & ~b & d) | (~a & c & ~d) | (b & ~c)) & 0x1; in sbox() 21 oc = ((a & ~b & c) | (a & ~b & ~d) | (~a & b & ~d) | (~a & c & ~d) | in sbox() 23 od = ((a & ~b & c) | (~a & b & ~c) | (a & b & ~d) | (~a & c & d)) & 0x1; in sbox()
|
| /dpdk/app/test/ |
| H A D | test_prefetch.c | 23 int a = 0; in test_prefetch() local 25 rte_prefetch0(&a); in test_prefetch() 26 rte_prefetch1(&a); in test_prefetch() 27 rte_prefetch2(&a); in test_prefetch() 29 rte_prefetch0_write(&a); in test_prefetch() 30 rte_prefetch1_write(&a); in test_prefetch() 31 rte_prefetch2_write(&a); in test_prefetch() 33 rte_cldemote(&a); in test_prefetch()
|
| /dpdk/lib/eal/unix/ |
| H A D | eal_firmware.c | 21 struct archive *a; member 29 ctx->a = archive_read_new(); in firmware_open() 30 if (ctx->a == NULL) in firmware_open() 32 if (archive_read_support_format_raw(ctx->a) != ARCHIVE_OK || in firmware_open() 33 archive_read_support_filter_xz(ctx->a) != ARCHIVE_OK || in firmware_open() 35 archive_read_next_header(ctx->a, &e) != ARCHIVE_OK) { in firmware_open() 36 archive_read_free(ctx->a); in firmware_open() 37 ctx->a = NULL; in firmware_open() 46 return archive_read_data(ctx->a, buf, count); in firmware_read_block() 52 archive_read_free(ctx->a); in firmware_close() [all …]
|
| /dpdk/doc/guides/sample_app_ug/ |
| H A D | cmd_line.rst | 13 The Command Line sample application is a simple application that 15 This application is a readline-like interface that can be used 16 to debug a DPDK application, in a Linux* application environment. 80 :start-after: Creating a new command line object. 8< 81 :end-before: >8 End of creating a new command line object. 87 Defining a cmdline Context 90 A cmdline context is a list of commands that are listed in a NULL-terminated table, for example: 98 It contains a pointer to a callback function that is executed when the command is parsed, 99 an opaque pointer, a help string and a list of tokens in a NULL-terminated table. 103 * String Token: Match a static string, a list of static strings or any string. [all …]
|