From: Victor Nogueira <victor@mojatatu.com>
To: David Ahern <dsahern@kernel.org>,
stephen@networkplumber.org, netdev@vger.kernel.org
Cc: kernel@mojatatu.com
Subject: Re: [PATCH iproute2-next] m_mirred: Allow mirred to block
Date: Tue, 23 Jan 2024 18:41:01 -0300 [thread overview]
Message-ID: <afb9ea78-9d9a-4ab3-bee4-a1da3175cdba@mojatatu.com> (raw)
In-Reply-To: <158eaf99-1018-4ef6-bfdf-5f86464aae83@kernel.org>
On 23/01/2024 15:17, David Ahern wrote:
> On 1/23/24 9:11 AM, Victor Nogueira wrote:
>> ---
>> tc/m_mirred.c | 60 +++++++++++++++++++++++++++++++++++++++++----------
>
> missing the man page update
>
>> [...]
>> diff --git a/tc/m_mirred.c b/tc/m_mirred.c
>> index e5653e67f..db847b1a3 100644
>> --- a/tc/m_mirred.c
>> +++ b/tc/m_mirred.c
>> @@ -162,15 +167,38 @@ parse_direction(struct action_util *a, int *argc_p, char ***argv_p,
>> TCA_INGRESS_REDIR;
>> p.action = TC_ACT_STOLEN;
>> ok++;
>> - } else if ((redir || mirror) &&
>> - matches(*argv, "dev") == 0) {
>> - NEXT_ARG();
>> - if (strlen(d))
>> - duparg("dev", *argv);
>> -
>> - strncpy(d, *argv, sizeof(d)-1);
>> - argc--;
>> - argv++;
>> + } else if ((redir || mirror)) {
>> + if (matches(*argv, "blockid") == 0) {
>
> Not accepting any more uses of matches.
> [...]
Thank you for the catches.
Sent a v2 fixing these issues.
cheers,
Victor
prev parent reply other threads:[~2024-01-23 21:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-23 16:11 [PATCH iproute2-next] m_mirred: Allow mirred to block Victor Nogueira
2024-01-23 17:18 ` Stephen Hemminger
2024-01-23 17:32 ` Victor Nogueira
2024-01-23 18:17 ` David Ahern
2024-01-23 21:41 ` Victor Nogueira [this message]
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=afb9ea78-9d9a-4ab3-bee4-a1da3175cdba@mojatatu.com \
--to=victor@mojatatu.com \
--cc=dsahern@kernel.org \
--cc=kernel@mojatatu.com \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox