diff options
author | Konstantin Ananyev <konstantin.ananyev@intel.com> | 2016-07-07 20:24:24 +0100 |
---|---|---|
committer | Konstantin Ananyev <konstantin.ananyev@intel.com> | 2016-07-07 23:41:30 +0100 |
commit | 8efc4c11464fd76db6c2a145664aa047615b749e (patch) | |
tree | 3061254b813f3c5592d7f92788f7abe2f155f791 /lib/libtle_udp/osdep.h | |
parent | a633eec74619a96925285ac4dcf0154fbfafb855 (diff) |
Change libtle_udp to use dring.
Right now didn't see any noticeable performance boost with these changes.
Though it allowed to get rid of using locks at UDP TX code-path
and simplify the code quite a lot.
Change-Id: If865abd3db9127f510df670d9a8edb168b915770
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Diffstat (limited to 'lib/libtle_udp/osdep.h')
-rw-r--r-- | lib/libtle_udp/osdep.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/libtle_udp/osdep.h b/lib/libtle_udp/osdep.h index 6161242..8e91964 100644 --- a/lib/libtle_udp/osdep.h +++ b/lib/libtle_udp/osdep.h @@ -23,6 +23,17 @@ extern "C" { #endif +/* + * internal defines. + */ +#define MAX_PKT_BURST 0x20 + +#define MAX_DRB_BURST 4 + +/* + * logging related macros. + */ + #define UDP_LOG(lvl, fmt, args...) RTE_LOG(lvl, USER1, fmt, ##args) /* |