Netfilter-Devel Archive on
 help / color / Atom feed
From: David Miller <>
Subject: Re: [PATCH v4 net-next] net: flow_offload: simplify hw stats check handling
Date: Fri, 22 May 2020 15:52:20 -0700 (PDT)
Message-ID: <> (raw)
In-Reply-To: <>

From: Edward Cree <>
Date: Wed, 20 May 2020 19:18:10 +0100

> Make FLOW_ACTION_HW_STATS_DONT_CARE be all bits, rather than none, so that
>  drivers and __flow_action_hw_stats_check can use simple bitwise checks.
> Pre-fill all actions with DONT_CARE in flow_rule_alloc(), rather than
>  relying on implicit semantics of zero from kzalloc, so that callers which
>  don't configure action stats themselves (i.e. netfilter) get the correct
>  behaviour by default.
> Only the kernel's internal API semantics change; the TC uAPI is unaffected.
> v4: move DONT_CARE setting to flow_rule_alloc() for robustness and simplicity.
> v3: set DONT_CARE in nft and ct offload.
> v2: rebased on net-next, removed RFC tags.
> Signed-off-by: Edward Cree <>

Applied, thanks Edward.

      reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-20 18:18 Edward Cree
2020-05-22 22:52 ` David Miller [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:

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

  git send-email \ \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Netfilter-Devel Archive on

Archives are clonable:
	git clone --mirror netfilter-devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 netfilter-devel netfilter-devel/ \
	public-inbox-index netfilter-devel

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone