summaryrefslogtreecommitdiffstats
path: root/net/atm/lec.h
diff options
context:
space:
mode:
authorPaul M Stillwell Jr <paul.m.stillwell.jr@intel.com>2023-01-23 16:57:14 -0800
committerJakub Kicinski <kuba@kernel.org>2023-01-24 18:52:15 -0800
commit418e53401e478a743cf33b1c32ea0728f0afef66 (patch)
tree88a488184ee0d9927865ddfd6d68286c6ebd8371 /net/atm/lec.h
parent458e279f861d3f61796894cd158b780765a1569f (diff)
downloadlinux-stable-418e53401e478a743cf33b1c32ea0728f0afef66.tar.gz
linux-stable-418e53401e478a743cf33b1c32ea0728f0afef66.tar.bz2
linux-stable-418e53401e478a743cf33b1c32ea0728f0afef66.zip
ice: move devlink port creation/deletion
Commit a286ba738714 ("ice: reorder PF/representor devlink port register/unregister flows") moved the code to create and destroy the devlink PF port. This was fine, but created a corner case issue in the case of ice_register_netdev() failing. In that case, the driver would end up calling ice_devlink_destroy_pf_port() twice. Additionally, it makes no sense to tie creation of the devlink PF port to the creation of the netdev so separate out the code to create/destroy the devlink PF port from the netdev code. This makes it a cleaner interface. Fixes: a286ba738714 ("ice: reorder PF/representor devlink port register/unregister flows") Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com> Tested-by: Gurucharan G <gurucharanx.g@intel.com> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> Reviewed-by: Leon Romanovsky <leonro@nvidia.com> Link: https://lore.kernel.org/r/20230124005714.3996270-1-anthony.l.nguyen@intel.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/atm/lec.h')
0 files changed, 0 insertions, 0 deletions