]> www.infradead.org Git - linux-platform-drivers-x86.git/commit
nfp: devlink: initialize the devlink port attribute "lanes"
authorYinjun Zhang <yinjun.zhang@corigine.com>
Wed, 21 Apr 2021 09:24:15 +0000 (11:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Apr 2021 17:26:35 +0000 (10:26 -0700)
commit90b669d65d99a3ee6965275269967cdee4da106e
tree11a180fb554e6c4c612e633dec2e18c5d9d7ab9a
parent542c40957c0557f0b3ec326579a57c143412d0e4
nfp: devlink: initialize the devlink port attribute "lanes"

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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_devlink.c