From: Leon Romanovsky <leon@kernel.org>
To: Tony Nguyen <anthony.l.nguyen@intel.com>
Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com,
edumazet@google.com, netdev@vger.kernel.org,
Junfeng Guo <junfeng.guo@intel.com>,
Rafal Romanowski <rafal.romanowski@intel.com>
Subject: Re: [PATCH net 3/4] ice: add profile conflict check for AVF FDIR
Date: Wed, 29 Mar 2023 15:08:36 +0300 [thread overview]
Message-ID: <20230329120836.GS831478@unreal> (raw)
In-Reply-To: <20230328172035.3904953-4-anthony.l.nguyen@intel.com>
On Tue, Mar 28, 2023 at 10:20:34AM -0700, Tony Nguyen wrote:
> From: Junfeng Guo <junfeng.guo@intel.com>
>
> Add profile conflict check while adding some FDIR rules to avoid
> unexpected flow behavior, rules may have conflict including:
> IPv4 <---> {IPv4_UDP, IPv4_TCP, IPv4_SCTP}
> IPv6 <---> {IPv6_UDP, IPv6_TCP, IPv6_SCTP}
>
> For example, when we create an FDIR rule for IPv4, this rule will work
> on packets including IPv4, IPv4_UDP, IPv4_TCP and IPv4_SCTP. But if we
> then create an FDIR rule for IPv4_UDP and then destroy it, the first
> FDIR rule for IPv4 cannot work on pkt IPv4_UDP then.
>
> To prevent this unexpected behavior, we add restriction in software
> when creating FDIR rules by adding necessary profile conflict check.
>
> Fixes: 1f7ea1cd6a37 ("ice: Enable FDIR Configure for AVF")
> Signed-off-by: Junfeng Guo <junfeng.guo@intel.com>
> Tested-by: Rafal Romanowski <rafal.romanowski@intel.com>
> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
> ---
> .../ethernet/intel/ice/ice_virtchnl_fdir.c | 73 +++++++++++++++++++
> 1 file changed, 73 insertions(+)
>
Thanks,
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
next prev parent reply other threads:[~2023-03-29 12:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-28 17:20 [PATCH net 0/4][pull request] Intel Wired LAN Driver Updates 2023-03-28 (ice) Tony Nguyen
2023-03-28 17:20 ` [PATCH net 1/4] ice: fix W=1 headers mismatch Tony Nguyen
2023-03-29 12:06 ` Leon Romanovsky
2023-03-28 17:20 ` [PATCH net 2/4] ice: Fix ice_cfg_rdma_fltr() to only update relevant fields Tony Nguyen
2023-03-29 12:08 ` Leon Romanovsky
2023-03-28 17:20 ` [PATCH net 3/4] ice: add profile conflict check for AVF FDIR Tony Nguyen
2023-03-29 12:08 ` Leon Romanovsky [this message]
2023-03-28 17:20 ` [PATCH net 4/4] ice: fix invalid check for empty list in ice_sched_assoc_vsi_to_agg() Tony Nguyen
2023-03-29 12:08 ` Leon Romanovsky
2023-03-30 4:50 ` [PATCH net 0/4][pull request] Intel Wired LAN Driver Updates 2023-03-28 (ice) patchwork-bot+netdevbpf
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=20230329120836.GS831478@unreal \
--to=leon@kernel.org \
--cc=anthony.l.nguyen@intel.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=junfeng.guo@intel.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=rafal.romanowski@intel.com \
/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;
as well as URLs for NNTP newsgroup(s).