Message ID | 20210421092415.13094-1-simon.horman@netronome.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 90b669d65d99a3ee6965275269967cdee4da106e |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net] nfp: devlink: initialize the devlink port attribute "lanes" | expand |
Context | Check | Description |
---|---|---|
netdev/cover_letter | success | Link |
netdev/fixes_present | success | Link |
netdev/patch_count | success | Link |
netdev/tree_selection | success | Clearly marked for net |
netdev/subject_prefix | success | Link |
netdev/cc_maintainers | fail | 3 blamed authors not CCed: jiri@nvidia.com idosch@mellanox.com danieller@mellanox.com; 4 maintainers not CCed: jiri@nvidia.com idosch@mellanox.com danieller@mellanox.com jacob.e.keller@intel.com |
netdev/source_inline | success | Was 0 now: 0 |
netdev/verify_signedoff | success | Link |
netdev/module_param | success | Was 0 now: 0 |
netdev/build_32bit | success | Errors and warnings before: 0 this patch: 0 |
netdev/kdoc | success | Errors and warnings before: 0 this patch: 0 |
netdev/verify_fixes | success | Link |
netdev/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 7 lines checked |
netdev/build_allmodconfig_warn | success | Errors and warnings before: 0 this patch: 0 |
netdev/header_inline | success | Link |
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Wed, 21 Apr 2021 11:24:15 +0200 you wrote: > From: Yinjun Zhang <yinjun.zhang@corigine.com> > > The number of lanes of devlink port should be correctly initialized > when registering the port, so that the input check when running > "devlink port split <port> count <N>" can pass. > > Fixes: a21cf0a8330b ("devlink: Add a new devlink port lanes attribute and pass to netlink") > Signed-off-by: Yinjun Zhang <yinjun.zhang@corigine.com> > Signed-off-by: Louis Peens <louis.peens@corigine.com> > Signed-off-by: Simon Horman <simon.horman@netronome.com> > > [...] Here is the summary with links: - [net] nfp: devlink: initialize the devlink port attribute "lanes" https://git.kernel.org/netdev/net/c/90b669d65d99 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
diff --git a/drivers/net/ethernet/netronome/nfp/nfp_devlink.c b/drivers/net/ethernet/netronome/nfp/nfp_devlink.c index 713ee3041d49..bea978df7713 100644 --- a/drivers/net/ethernet/netronome/nfp/nfp_devlink.c +++ b/drivers/net/ethernet/netronome/nfp/nfp_devlink.c @@ -364,6 +364,7 @@ int nfp_devlink_port_register(struct nfp_app *app, struct nfp_port *port) attrs.split = eth_port.is_split; attrs.splittable = !attrs.split; + attrs.lanes = eth_port.port_lanes; attrs.flavour = DEVLINK_PORT_FLAVOUR_PHYSICAL; attrs.phys.port_number = eth_port.label_port; attrs.phys.split_subport_number = eth_port.label_subport;