All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: Li Wang <liwang@redhat.com>
Cc: jhs@mojatatu.com, ltp@lists.linux.it
Subject: Re: [LTP] [PATCH] tcindex01: fix compilation errors due to missing TCA_TCINDEX_ constants
Date: Tue, 16 Jan 2024 13:12:35 +0100	[thread overview]
Message-ID: <20240116121235.GA2582913@pevik> (raw)
In-Reply-To: <20240116031728.2500892-1-liwang@redhat.com>

Hi Li,,

> The change addresses compilation errors encountered in the tcindex01.c
> test when compiled against kernel-6.7 and above.

"against kernel-6.7". But 82b2545ed9a will be released in 6.8, right?

>   tcindex01.c:67:4: error: ‘TCA_TCINDEX_MASK’ undeclared here (not in a function);
>      did you mean ‘TCA_CODEL_MAX’?
>      {TCA_TCINDEX_MASK, &mask, sizeof(mask), NULL},
>       ^~~~~~~~~~~~~~~~
>       TCA_CODEL_MAX
>   tcindex01.c:68:4: error: ‘TCA_TCINDEX_SHIFT’ undeclared here (not in a function);
>      did you mean ‘TCA_FLOW_RSHIFT’?
>      {TCA_TCINDEX_SHIFT, &shift, sizeof(shift), NULL},
>       ^~~~~~~~~~~~~~~~~
>       TCA_FLOW_RSHIFT
>   CC testcases/cve/cve-2016-7117
>   CC utils/sctp/func_tests/test_getname_v6.o
>   tcindex01.c:69:4: error: ‘TCA_TCINDEX_CLASSID’ undeclared here (not in a function);
>      did you mean ‘TCA_FLOWER_CLASSID’?
>      {TCA_TCINDEX_CLASSID, &clsid, sizeof(clsid), NULL},
>       ^~~~~~~~~~~~~~~~~~~
>       TCA_FLOWER_CLASSID

> The errors were due to the removal of certain TCA_TCINDEX_ constants
> from the kernel's user API (uapi), as indicated by the kernel commit.

>   commit 82b2545ed9a (net/sched: Remove uapi support for tcindex classifier)

> The reason why I didn't add this into LTP library is that the defines
> have been dropped we just need to satisfy this one case.

+1 for adding enum here instead of writing m4 autotools check.

> Notes:
>     We need to merge this patch before the new release.
+1

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

Kind regards,
Petr

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

  reply	other threads:[~2024-01-16 12:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-16  3:17 [LTP] [PATCH] tcindex01: fix compilation errors due to missing TCA_TCINDEX_ constants Li Wang
2024-01-16 12:12 ` Petr Vorel [this message]
2024-01-17  1:42   ` Li Wang
2024-01-17  9:08     ` Petr Vorel
2024-01-16 12:38 ` Martin Doucha
2024-01-16 16:10   ` Petr Vorel
2024-01-17 15:52 ` Jamal Hadi Salim
2024-01-18  0:48   ` Li Wang
2024-01-21 17:24     ` Jamal Hadi Salim

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=20240116121235.GA2582913@pevik \
    --to=pvorel@suse.cz \
    --cc=jhs@mojatatu.com \
    --cc=liwang@redhat.com \
    --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.