From cccd2064ac39c09109ea3124e55810286dc5be65 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig <hch@cloudius-systems.com> Date: Fri, 24 May 2013 05:19:38 +0200 Subject: [PATCH] netport: provide a CACHE_LINE_SIZE definition --- bsd/porting/netport.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bsd/porting/netport.h b/bsd/porting/netport.h index 9b9dc89ea..c2504c948 100644 --- a/bsd/porting/netport.h +++ b/bsd/porting/netport.h @@ -20,6 +20,9 @@ typedef unsigned char bsd_sa_family_t; #define MAXCOMLEN 19 +/* maximum common x86 L1 size */ +#define CACHE_LINE_SIZE 128 + #define __offsetof(type, field) __builtin_offsetof(type, field) #define __containerof(x, s, m) ({ \ -- GitLab