All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: Andrea Cervesato <andrea.cervesato@suse.de>
Cc: Linux Test Project <ltp@lists.linux.it>
Subject: Re: [LTP] [PATCH v3 1/4] lapi: Add pkt_cls.h fallback
Date: Wed, 8 Jul 2026 13:48:50 +0200	[thread overview]
Message-ID: <20260708114850.GB812068@pevik> (raw)
In-Reply-To: <20260707-cve-2026-46331-v3-1-3f6f1d697eec@suse.com>

Hi Andrea,

> +#include <linux/pkt_cls.h>
> +
> +#ifndef TC_ACT_PIPE
> +# define TC_ACT_PIPE	3
> +#endif
> +
> +#ifndef TCA_MATCHALL_ACT
> +# define TCA_MATCHALL_ACT	2
> +#endif

include/uapi/linux/pkt_cls.h defines it as enum:

enum {
	TCA_MATCHALL_UNSPEC,
	TCA_MATCHALL_CLASSID,
	TCA_MATCHALL_ACT,
	TCA_MATCHALL_FLAGS,
	TCA_MATCHALL_PCNT,
	TCA_MATCHALL_PAD,
	__TCA_MATCHALL_MAX,
};

But it should be safe to define it as you did (there is no reason the value
would change because kernel folks add new members at the end).

Reviewed-by: Petr Vorel <pvorel@suse.cz>

Kind regards,
Petr

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  parent reply	other threads:[~2026-07-08 11:49 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-07 13:42 [LTP] [PATCH v3 0/4] Reproducer for cve-2026-46331 Andrea Cervesato
2026-07-07 13:42 ` [LTP] [PATCH v3 1/4] lapi: Add pkt_cls.h fallback Andrea Cervesato
2026-07-07 14:28   ` [LTP] " linuxtestproject.agent
2026-07-07 14:53     ` Cyril Hrubis
2026-07-08 11:48   ` Petr Vorel [this message]
2026-07-07 13:42 ` [LTP] [PATCH v3 2/4] lapi: Add pkt_sched.h fallback Andrea Cervesato
2026-07-08 13:31   ` Petr Vorel
2026-07-07 13:42 ` [LTP] [PATCH v3 3/4] lapi: Add tc_pedit.h fallback Andrea Cervesato
2026-07-07 13:42 ` [LTP] [PATCH v3 4/4] cve: Add act_pedit page-cache corruption test Andrea Cervesato
2026-07-07 14:23   ` Cyril Hrubis
2026-07-08 11:41     ` Petr Vorel
2026-07-13 12:34       ` Andrea Cervesato via ltp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260708114850.GB812068@pevik \
    --to=pvorel@suse.cz \
    --cc=andrea.cervesato@suse.de \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.