[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250813094417.7269-1-parav@nvidia.com>
Date: Wed, 13 Aug 2025 12:44:15 +0300
From: Parav Pandit <parav@...dia.com>
To: <davem@...emloft.net>, <edumazet@...gle.com>, <kuba@...nel.org>,
<pabeni@...hat.com>, <horms@...nel.org>, <netdev@...r.kernel.org>,
<vadim.fedorenko@...ux.dev>
CC: <jiri@...nulli.us>, Parav Pandit <parav@...dia.com>
Subject: [PATCH net-next v2 0/2] devlink port attr cleanup
Hi,
This two small patches simplifies the devlink port attributes set
functions.
Summary:
patch-1 removes the return 0 check at several places and simplfies
patch-2 constifies the attributes and moves the checks early
caller
Please review.
changelog:
v1->v2:
- Addressed comments from Jakub and Vadim
- changed patch order
- replaced dl_port_attrs to attrs that matches implementation API
declaration
Parav Pandit (2):
devlink/port: Simplify return checks
devlink/port: Check attributes early and constify
include/net/devlink.h | 2 +-
net/devlink/port.c | 33 ++++++++-------------------------
2 files changed, 9 insertions(+), 26 deletions(-)
--
2.26.2
Powered by blists - more mailing lists