mbox series

[v2,net-next,0/2] *nfp: VF rate limit support

Message ID 20220511113932.92114-1-simon.horman@corigine.com (mailing list archive)
Headers show
Series *nfp: VF rate limit support | expand

Message

Simon Horman May 11, 2022, 11:39 a.m. UTC
Hi,

this short series adds VF rate limiting to the NFP driver.

The first patch, as suggested by Jakub Kicinski, adds a helper
to check that ndo_set_vf_rate() rate parameters are sane.
It also provides a place for further parameter checking to live,
if needed in future.

The second patch adds VF rate limit support to the NFP driver.
It addresses several comments made on v1, including removing
the parameter check that is now provided by the helper added
in the first patch.

Bin Chen (2):
  rtnetlink: verify rate parameters for calls to ndo_set_vf_rate
  nfp: VF rate limit support

 .../ethernet/netronome/nfp/nfp_net_common.c   |  1 +
 .../ethernet/netronome/nfp/nfp_net_sriov.c    | 48 ++++++++++++++++++-
 .../ethernet/netronome/nfp/nfp_net_sriov.h    |  9 ++++
 net/core/rtnetlink.c                          | 28 +++++++----
 4 files changed, 74 insertions(+), 12 deletions(-)

Comments

Jakub Kicinski May 11, 2022, 11:49 p.m. UTC | #1
On Wed, 11 May 2022 13:39:30 +0200 Simon Horman wrote:
> this short series adds VF rate limiting to the NFP driver.
> 
> The first patch, as suggested by Jakub Kicinski, adds a helper
> to check that ndo_set_vf_rate() rate parameters are sane.
> It also provides a place for further parameter checking to live,
> if needed in future.
> 
> The second patch adds VF rate limit support to the NFP driver.
> It addresses several comments made on v1, including removing
> the parameter check that is now provided by the helper added
> in the first patch.

Reviewed-by: Jakub Kicinski <kuba@kernel.org>
patchwork-bot+netdevbpf@kernel.org May 12, 2022, 1:10 p.m. UTC | #2
Hello:

This series was applied to netdev/net-next.git (master)
by Paolo Abeni <pabeni@redhat.com>:

On Wed, 11 May 2022 13:39:30 +0200 you wrote:
> Hi,
> 
> this short series adds VF rate limiting to the NFP driver.
> 
> The first patch, as suggested by Jakub Kicinski, adds a helper
> to check that ndo_set_vf_rate() rate parameters are sane.
> It also provides a place for further parameter checking to live,
> if needed in future.
> 
> [...]

Here is the summary with links:
  - [v2,net-next,1/2] rtnetlink: verify rate parameters for calls to ndo_set_vf_rate
    https://git.kernel.org/netdev/net-next/c/a14857c27a50
  - [v2,net-next,2/2] nfp: VF rate limit support
    https://git.kernel.org/netdev/net-next/c/e0d0e1fdf1ed

You are awesome, thank you!