[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190830041035.60581-1-parav@mellanox.com>
Date: Thu, 29 Aug 2019 23:10:33 -0500
From: Parav Pandit <parav@...lanox.com>
To: linux-kernel@...r.kernel.org, jiri@...lanox.com
Cc: Parav Pandit <parav@...lanox.com>
Subject: [PATCH internal net-next 0/2] Minor refactor in devlink
Two minor refactors in devlink.
Patch-1 Explicitly defines devlink port index as unsigned int
Patch-2 Uses switch-case to handle different port flavours attributes
Parav Pandit (2):
devlink: Make port index data type as unsigned int
devlink: Use switch-case instead of if-else
include/net/devlink.h | 2 +-
net/core/devlink.c | 44 ++++++++++++++++++++++++-------------------
2 files changed, 26 insertions(+), 20 deletions(-)
--
2.19.2
Powered by blists - more mailing lists