Agreed on both counts.
Note, however, the tc_u32_mark should die Real Soon Now given the
meta match patches that are in from Thomas.
cheers,
jamal
On Thu, 2005-03-10 at 13:42, Stephen Hemminger wrote:
> The tc_u32_mark structure is used as part of the netlink message
> from the user API to the kernel, so it needs to be moved to
> include/linux/pkt_cls.h
> and have types changed from u32 to __u32.
>
> Also, the definition of u32 performance counters doesn't need to depend
> on the config option. The definition can exist even if the code isn't
> enabled.
>
> Signed-off-by: Stephen Hemminger <shemminger@xxxxxxxx>
>
> diff -Nru a/include/linux/pkt_cls.h b/include/linux/pkt_cls.h
> --- a/include/linux/pkt_cls.h 2005-03-10 10:36:39 -08:00
> +++ b/include/linux/pkt_cls.h 2005-03-10 10:36:39 -08:00
> @@ -221,14 +221,20 @@
> struct tc_u32_key keys[0];
> };
>
> -#ifdef CONFIG_CLS_U32_PERF
> +struct tc_u32_mark
> +{
> + __u32 val;
> + __u32 mask;
> + __u32 success;
> +};
> +
> struct tc_u32_pcnt
> {
> __u64 rcnt;
> __u64 rhit;
> __u64 kcnts[0];
> };
> -#endif
> +
> /* Flags */
>
> #define TC_U32_TERMINAL 1
> diff -Nru a/net/sched/cls_u32.c b/net/sched/cls_u32.c
> --- a/net/sched/cls_u32.c 2005-03-10 10:36:39 -08:00
> +++ b/net/sched/cls_u32.c 2005-03-10 10:36:39 -08:00
> @@ -58,14 +58,6 @@
> #include <net/act_api.h>
> #include <net/pkt_cls.h>
>
> -
> -struct tc_u32_mark
> -{
> - u32 val;
> - u32 mask;
> - u32 success;
> -};
> -
> struct tc_u_knode
> {
> struct tc_u_knode *next;
|