summaryrefslogtreecommitdiffstats
path: root/src/vnet/l2/l2_output.c
AgeCommit message (Expand)AuthorFilesLines
2018-11-14Remove c-11 memcpy checks from perf-critical codeDave Barach1-3/+3
2018-11-13L2 feautre bitmaps output verbose/non-verbose modeNeale Ranns1-2/+13
2018-10-24L2-input/output: use feature enum type in flag update functionNeale Ranns1-1/+2
2018-10-15vnet: create L2 feature arc infrastructureAndrew Yourtchenko1-1/+1
2018-09-24Trivial: Clean up some typos.Paul Vinciguerra1-1/+1
2018-09-04l2_output:skip processing if no features are enabledEyal Bari1-2/+6
2018-08-13Multiarch handling in different constructor macrosDamjan Marion1-11/+5
2018-05-29Add VLIB_NODE_FN() macro to simplify multiversioning of node functionsDamjan Marion1-22/+6
2018-05-24Rewrite of l2-output nodeDamjan Marion1-332/+280
2017-07-31CLI:add l2 input/outut to "sh int features"Eyal Bari1-0/+23
2017-07-24SPAN:add l2 mirrorEyal Bari1-6/+7
2017-07-23Improve L2 Input/Output Feature Infrastructure and UsageJohn Lo1-46/+69
2017-07-13Fix crash with worker threads on 4K VXLAN/BD setup (VPP-907)John Lo1-73/+10
2017-04-06Use thread local storage for thread indexDamjan Marion1-3/+3
2017-02-21VPP-540 : pbb tag rewrite detailsPavel Kotucek1-52/+63
2017-02-17l2 input: avoid per-packet trace checks in the fast pathDave Barach1-6/+13
2016-12-28Reorganize source tree to use single autotools instanceDamjan Marion1-0/+708
http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef SRC_VPPINFRA_FLOWHASH_24_16_H_ #define SRC_VPPINFRA_FLOWHASH_24_16_H_ #ifdef __included_flowhash_template_h__ #undef __included_flowhash_template_h__ #endif #include <vppinfra/clib.h> #include <vppinfra/xxhash.h> #include <vppinfra/crc32.h> typedef struct { u64 as_u64[3]; } flowhash_skey_24_16_t; typedef struct { u64 as_u64[3]; } flowhash_lkey_24_16_t; typedef struct { u64 as_u64[2]; } flowhash_value_24_16_t; #define FLOWHASH_TYPE _24_16 #include <vppinfra/flowhash_template.h> #undef FLOWHASH_TYPE static_always_inline u32 flowhash_hash_24_16(flowhash_lkey_24_16_t *k) { #ifdef clib_crc32c_uses_intrinsics return clib_crc32c ((u8 *) &k->as_u64[0], 24); #else u64 val = 0; val ^= k->as_u64[0]; val ^= k->as_u64[1]; val ^= k->as_u64[2]; return (u32)clib_xxhash (val); #endif } static_always_inline u8 flowhash_cmp_key_24_16(flowhash_skey_24_16_t *a, flowhash_lkey_24_16_t *b) { u8 val = 0; val |= (a->as_u64[0] != b->as_u64[0]); val |= (a->as_u64[1] != b->as_u64[1]); val |= (a->as_u64[2] != b->as_u64[2]); return val; } static_always_inline void flowhash_cpy_key_24_16(flowhash_skey_24_16_t *dst, flowhash_lkey_24_16_t *src) { dst->as_u64[0] = src->as_u64[0]; dst->as_u64[1] = src->as_u64[1]; dst->as_u64[2] = src->as_u64[2]; } #endif /* SRC_VPPINFRA_FLOWHASH_24_16_H_ */