All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jiri Benc <jbenc@redhat.com>
To: Paul Blakey <paulb@mellanox.com>
Cc: Stephen Hemminger <stephen@networkplumber.org>,
	netdev@vger.kernel.org, Jiri Pirko <jiri@mellanox.com>,
	Or Gerlitz <ogerlitz@mellanox.com>, Roi Dayan <roid@mellanox.com>,
	Simon Horman <simon.horman@netronome.com>
Subject: Re: [PATCH net-next V4] tc: flower: Refactor matching flags to be more user friendly
Date: Thu, 19 Jan 2017 15:22:18 +0100	[thread overview]
Message-ID: <20170119152218.61aa2fc4@griffin> (raw)
In-Reply-To: <1484835468-46051-1-git-send-email-paulb@mellanox.com>

On Thu, 19 Jan 2017 16:17:48 +0200, Paul Blakey wrote:
> +	while (token) {
> +		if (!strncmp(token, "no", 2)) {
> +			no = true;
> +			token = strchr(token, '_') + 1;

This seems to still assume that "no" is followed by an underscore.
What about a simple token += 2?

 Jiri

  reply	other threads:[~2017-01-19 14:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-19 14:17 [PATCH net-next V4] tc: flower: Refactor matching flags to be more user friendly Paul Blakey
2017-01-19 14:22 ` Jiri Benc [this message]
2017-01-19 14:29   ` Paul Blakey
2017-01-20 12:27   ` David Laight
2017-01-20 16:41     ` Jiri Benc

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=20170119152218.61aa2fc4@griffin \
    --to=jbenc@redhat.com \
    --cc=jiri@mellanox.com \
    --cc=netdev@vger.kernel.org \
    --cc=ogerlitz@mellanox.com \
    --cc=paulb@mellanox.com \
    --cc=roid@mellanox.com \
    --cc=simon.horman@netronome.com \
    --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 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.