History

tc: remove unused redirect ttl

improves ingress+u32 performance from 22.4 Mpps to 22.9 Mpps

Jamal Hadi Salim committed 11 years ago

Commit c19ae861 parent 4256af62 files · +2 −9Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/pkt_cls.h+2−0
@@ -65,11 +65,13 @@ bits 9,10,11: redirect counter - redirect TTL. Loop avoidance · 64 unmodified lines
6565 #define SET_TC_NCLS(v) ( TC_NCLS | (v & ~TC_NCLS))
6666 #define CLR_TC_NCLS(v) ( v & ~TC_NCLS)
6767
68+#ifndef __KERNEL__
6869 #define S_TC_RTTL _TC_MAKE32(9)
6970 #define M_TC_RTTL _TC_MAKEMASK(3,S_TC_RTTL)
7071 #define G_TC_RTTL(x) _TC_GETVALUE(x,S_TC_RTTL,M_TC_RTTL)
7172 #define V_TC_RTTL(x) _TC_MAKEVALUE(x,S_TC_RTTL)
7273 #define SET_TC_RTTL(v,n) ((V_TC_RTTL(n)) | (v & ~M_TC_RTTL))
74+#endif
7375
7476 #define S_TC_AT _TC_MAKE32(12)
7577 #define M_TC_AT _TC_MAKEMASK(2,S_TC_AT)