From: Jacob Keller <jacob.e.keller@intel.com>
To: Simon Horman <horms@kernel.org>
Cc: <mheib@redhat.com>, <intel-wired-lan@lists.osuosl.org>,
<przemyslawx.patynowski@intel.com>, <jiri@resnulli.us>,
<netdev@vger.kernel.org>, <aleksandr.loktionov@intel.com>,
<anthony.l.nguyen@intel.com>, <przemyslaw.kitszel@intel.com>
Subject: Re: [Intel-wired-lan] [PATCH net-next, v3, 2/2] i40e: support generic devlink param "max_mac_per_vf"
Date: Fri, 5 Sep 2025 16:29:33 -0700 [thread overview]
Message-ID: <5dce7d9f-d5e9-4ea9-8a72-ed8e52d62e71@intel.com> (raw)
In-Reply-To: <20250905114642.GA551420@horms.kernel.org>
[-- Attachment #1.1: Type: text/plain, Size: 1108 bytes --]
On 9/5/2025 4:46 AM, Simon Horman wrote:
> On Wed, Sep 03, 2025 at 03:25:40PM -0700, Jacob Keller wrote:
>> We didn't rate limit it before. I am not sure how fast the VF can
>> actually send messages, so I'm not sure if that change would be required.
>>
>> You could optionally also report the mac_add_max for the untrusted
>> message as well, but I think its fine to leave as-is in that case as well.
>
> I'm not sure either. I'm more used to rate limits in the datapath,
> where network traffic can result in a log.
>
> I think that if we want to go down the path you suggest then we should
> look at what other logs fall into the same category: generated by VM admin
> actions. And perhaps start by looking in the i40e driver for such cases.
>
> Just my 2c worth on this one.
>
I noticed that a VF can cause this message to be spammed indefinitely at
whatever rate the PF processes the virtchnl message, once its MAC cap is
hit. I don't think we really protect against that in any virtchnl
message, so that makes me think its likely not been considered a problem
thus far.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Jacob Keller <jacob.e.keller@intel.com>
To: Simon Horman <horms@kernel.org>
Cc: <mheib@redhat.com>, <intel-wired-lan@lists.osuosl.org>,
<przemyslawx.patynowski@intel.com>, <jiri@resnulli.us>,
<netdev@vger.kernel.org>, <aleksandr.loktionov@intel.com>,
<anthony.l.nguyen@intel.com>, <przemyslaw.kitszel@intel.com>
Subject: Re: [PATCH net-next,v3,2/2] i40e: support generic devlink param "max_mac_per_vf"
Date: Fri, 5 Sep 2025 16:29:33 -0700 [thread overview]
Message-ID: <5dce7d9f-d5e9-4ea9-8a72-ed8e52d62e71@intel.com> (raw)
In-Reply-To: <20250905114642.GA551420@horms.kernel.org>
[-- Attachment #1.1: Type: text/plain, Size: 1108 bytes --]
On 9/5/2025 4:46 AM, Simon Horman wrote:
> On Wed, Sep 03, 2025 at 03:25:40PM -0700, Jacob Keller wrote:
>> We didn't rate limit it before. I am not sure how fast the VF can
>> actually send messages, so I'm not sure if that change would be required.
>>
>> You could optionally also report the mac_add_max for the untrusted
>> message as well, but I think its fine to leave as-is in that case as well.
>
> I'm not sure either. I'm more used to rate limits in the datapath,
> where network traffic can result in a log.
>
> I think that if we want to go down the path you suggest then we should
> look at what other logs fall into the same category: generated by VM admin
> actions. And perhaps start by looking in the i40e driver for such cases.
>
> Just my 2c worth on this one.
>
I noticed that a VF can cause this message to be spammed indefinitely at
whatever rate the PF processes the virtchnl message, once its MAC cap is
hit. I don't think we really protect against that in any virtchnl
message, so that makes me think its likely not been considered a problem
thus far.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
next prev parent reply other threads:[~2025-09-05 23:29 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-03 21:43 [Intel-wired-lan] [PATCH net-next, v3, 1/2] devlink: Add new "max_mac_per_vf" generic device param mheib
2025-09-03 21:43 ` [PATCH net-next,v3,1/2] " mheib
2025-09-03 21:43 ` [Intel-wired-lan] [PATCH net-next, v3, 2/2] i40e: support generic devlink param "max_mac_per_vf" mheib
2025-09-03 21:43 ` [PATCH net-next,v3,2/2] " mheib
2025-09-03 22:25 ` [Intel-wired-lan] [PATCH net-next, v3, 2/2] " Jacob Keller
2025-09-03 22:25 ` [PATCH net-next,v3,2/2] " Jacob Keller
2025-09-05 11:46 ` [Intel-wired-lan] [PATCH net-next, v3, 2/2] " Simon Horman
2025-09-05 11:46 ` [PATCH net-next,v3,2/2] " Simon Horman
2025-09-05 23:29 ` Jacob Keller [this message]
2025-09-05 23:29 ` Jacob Keller
2025-09-07 10:10 ` [Intel-wired-lan] [PATCH net-next, v3, 2/2] " mohammad heib
2025-09-07 10:10 ` [PATCH net-next,v3,2/2] " mohammad heib
2025-09-04 6:04 ` [Intel-wired-lan] [PATCH net-next, v3, 2/2] " Loktionov, Aleksandr
2025-09-04 6:04 ` [PATCH net-next,v3,2/2] " Loktionov, Aleksandr
2025-09-05 12:25 ` [Intel-wired-lan] [PATCH net-next, v3, 2/2] " Simon Horman
2025-09-05 12:25 ` [PATCH net-next,v3,2/2] " Simon Horman
2025-09-07 10:07 ` [Intel-wired-lan] [PATCH net-next, v3, 2/2] " mohammad heib
2025-09-07 10:07 ` [PATCH net-next,v3,2/2] " mohammad heib
2025-09-05 12:22 ` [Intel-wired-lan] [PATCH net-next, v3, 1/2] devlink: Add new "max_mac_per_vf" generic device param Simon Horman
2025-09-05 12:22 ` [PATCH net-next,v3,1/2] " Simon Horman
2025-09-07 9:07 ` [Intel-wired-lan] [PATCH net-next, v3, 1/2] " mohammad heib
2025-09-07 9:07 ` [PATCH net-next,v3,1/2] " mohammad heib
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=5dce7d9f-d5e9-4ea9-8a72-ed8e52d62e71@intel.com \
--to=jacob.e.keller@intel.com \
--cc=aleksandr.loktionov@intel.com \
--cc=anthony.l.nguyen@intel.com \
--cc=horms@kernel.org \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=jiri@resnulli.us \
--cc=mheib@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=przemyslaw.kitszel@intel.com \
--cc=przemyslawx.patynowski@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 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.