History

net: sched: remove TC_MUNGED bits

Not used. pedit sets TC_MUNGED when packet content was altered, but all the core does is unset MUNGED again and then set OK2MUNGE. And the latter isn't tested anywhere. So lets remove both TC_MUNGED and TC_OK2MUNGE.

Florian Westphal committed 11 years ago

Commit 4749c3e1 parent 7eee8cd5 files · +4 −13Browse files

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

Unified · Split

include/uapi/linux/pkt_cls.h+3−0
@@ -35,6 +35,8 @@ bits 9,10,11: redirect counter - redirect TTL. Loop avoidance · 34 unmodified lines
3535 *
3636 * */
3737
38+#ifndef __KERNEL__
39+/* backwards compat for userspace only */
3840 #define TC_MUNGED _TC_MAKEMASK1(0)
3941 #define SET_TC_MUNGED(v) ( TC_MUNGED | (v & ~TC_MUNGED))
4042 #define CLR_TC_MUNGED(v) ( v & ~TC_MUNGED)
@@ -42,6 +44,7 @@ bits 9,10,11: redirect counter - redirect TTL. Loop avoidance · 1 unmodified line
4244 #define TC_OK2MUNGE _TC_MAKEMASK1(1)
4345 #define SET_TC_OK2MUNGE(v) ( TC_OK2MUNGE | (v & ~TC_OK2MUNGE))
4446 #define CLR_TC_OK2MUNGE(v) ( v & ~TC_OK2MUNGE)
47+#endif
4548
4649 #define S_TC_VERD _TC_MAKE32(2)
4750 #define M_TC_VERD _TC_MAKEMASK(4,S_TC_VERD)