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
35 *35 *
36 * */36 * */
37 37
38#ifndef __KERNEL__
39/* backwards compat for userspace only */
38#define TC_MUNGED _TC_MAKEMASK1(0)40#define TC_MUNGED _TC_MAKEMASK1(0)
39#define SET_TC_MUNGED(v) ( TC_MUNGED | (v & ~TC_MUNGED))41#define SET_TC_MUNGED(v) ( TC_MUNGED | (v & ~TC_MUNGED))
40#define CLR_TC_MUNGED(v) ( v & ~TC_MUNGED)42#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
42#define TC_OK2MUNGE _TC_MAKEMASK1(1)44#define TC_OK2MUNGE _TC_MAKEMASK1(1)
43#define SET_TC_OK2MUNGE(v) ( TC_OK2MUNGE | (v & ~TC_OK2MUNGE))45#define SET_TC_OK2MUNGE(v) ( TC_OK2MUNGE | (v & ~TC_OK2MUNGE))
44#define CLR_TC_OK2MUNGE(v) ( v & ~TC_OK2MUNGE)46#define CLR_TC_OK2MUNGE(v) ( v & ~TC_OK2MUNGE)
47#endif
45 48
46#define S_TC_VERD _TC_MAKE32(2)49#define S_TC_VERD _TC_MAKE32(2)
47#define M_TC_VERD _TC_MAKEMASK(4,S_TC_VERD)50#define M_TC_VERD _TC_MAKEMASK(4,S_TC_VERD)