X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fl3fwd%2Fl3fwd.h;h=da6d3691c5ee5272e9564848c5b715e41e2d9517;hb=94c54b4158d56fb169b136d9adcc24b3b64dc4b0;hp=f450269211283976f16959465dd2da3cd0c54039;hpb=c2189745c38d944e3b0e0c99066d67d7bc7e7744;p=dpdk.git diff --git a/examples/l3fwd/l3fwd.h b/examples/l3fwd/l3fwd.h index f450269211..da6d3691c5 100644 --- a/examples/l3fwd/l3fwd.h +++ b/examples/l3fwd/l3fwd.h @@ -53,6 +53,14 @@ /* Configure how many packets ahead to prefetch, when reading packets */ #define PREFETCH_OFFSET 3 +/* Used to mark destination port as 'invalid'. */ +#define BAD_PORT ((uint16_t)-1) + +#define FWDSTEP 4 + +/* replace first 12B of the ethernet header. */ +#define MASK_ETH 0x3f + /* Hash parameters. */ #ifdef RTE_ARCH_X86_64 /* default to 4 million hash entries (approx) */