flow.h (23dabf88abb48a866fdb19ee08ebcf1ddd9b1840) | flow.h (63e7959c4b9bd6f791061c460a22d9ee32ae2240) |
---|---|
1/* 2 * Copyright (c) 2007-2013 Nicira, Inc. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of version 2 of the GNU General Public 6 * License as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, but --- 145 unchanged lines hidden (view full) --- 154 spinlock_t lock; /* Lock for atomic stats update. */ 155 __be16 tcp_flags; /* Union of seen TCP flags. */ 156}; 157 158struct sw_flow { 159 struct rcu_head rcu; 160 struct hlist_node hash_node[2]; 161 u32 hash; | 1/* 2 * Copyright (c) 2007-2013 Nicira, Inc. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of version 2 of the GNU General Public 6 * License as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, but --- 145 unchanged lines hidden (view full) --- 154 spinlock_t lock; /* Lock for atomic stats update. */ 155 __be16 tcp_flags; /* Union of seen TCP flags. */ 156}; 157 158struct sw_flow { 159 struct rcu_head rcu; 160 struct hlist_node hash_node[2]; 161 u32 hash; |
162 | 162 int stats_last_writer; /* NUMA-node id of the last writer on 163 * 'stats[0]'. 164 */ |
163 struct sw_flow_key key; 164 struct sw_flow_key unmasked_key; 165 struct sw_flow_mask *mask; 166 struct sw_flow_actions __rcu *sf_acts; | 165 struct sw_flow_key key; 166 struct sw_flow_key unmasked_key; 167 struct sw_flow_mask *mask; 168 struct sw_flow_actions __rcu *sf_acts; |
167 struct flow_stats __percpu *stats; | 169 struct flow_stats __rcu *stats[]; /* One for each NUMA node. First one 170 * is allocated at flow creation time, 171 * the rest are allocated on demand 172 * while holding the 'stats[0].lock'. 173 */ |
168}; 169 170struct arp_eth_header { 171 __be16 ar_hrd; /* format of hardware address */ 172 __be16 ar_pro; /* format of protocol address */ 173 unsigned char ar_hln; /* length of hardware address */ 174 unsigned char ar_pln; /* length of protocol address */ 175 __be16 ar_op; /* ARP opcode (command) */ --- 17 unchanged lines hidden --- | 174}; 175 176struct arp_eth_header { 177 __be16 ar_hrd; /* format of hardware address */ 178 __be16 ar_pro; /* format of protocol address */ 179 unsigned char ar_hln; /* length of hardware address */ 180 unsigned char ar_pln; /* length of protocol address */ 181 __be16 ar_op; /* ARP opcode (command) */ --- 17 unchanged lines hidden --- |