netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] devlink port attr cleanup
@ 2025-08-12  3:51 Parav Pandit
  2025-08-12  3:51 ` [PATCH net-next 1/2] devlink/port: Check attributes early and constify Parav Pandit
  2025-08-12  3:51 ` [PATCH net-next 2/2] devlink/port: Simplify return checks Parav Pandit
  0 siblings, 2 replies; 10+ messages in thread
From: Parav Pandit @ 2025-08-12  3:51 UTC (permalink / raw)
  To: davem, edumazet, kuba, pabeni, horms, netdev; +Cc: jiri, Parav Pandit

Hi,

This two small patches simplifies the devlink port attributes set
functions.

Summary:
patch-1 constifies the attributes and moves the checks early
patch-2 removes the return 0 check at several places and simplfies
caller

Please review.

Parav Pandit (2):
  devlink/port: Check attributes early and constify
  devlink/port: Simplify return checks

 include/net/devlink.h |  2 +-
 net/devlink/port.c    | 33 ++++++++-------------------------
 2 files changed, 9 insertions(+), 26 deletions(-)

-- 
2.26.2


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-08-12 16:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-12  3:51 [PATCH net-next 0/2] devlink port attr cleanup Parav Pandit
2025-08-12  3:51 ` [PATCH net-next 1/2] devlink/port: Check attributes early and constify Parav Pandit
2025-08-12 12:56   ` Vadim Fedorenko
2025-08-12 14:46   ` Jakub Kicinski
2025-08-12 16:20     ` Parav Pandit
2025-08-12  3:51 ` [PATCH net-next 2/2] devlink/port: Simplify return checks Parav Pandit
2025-08-12 12:59   ` Vadim Fedorenko
2025-08-12 13:45     ` Parav Pandit
2025-08-12 14:47       ` Jakub Kicinski
2025-08-12 16:21         ` Parav Pandit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).