[PATCH 2/2] nvme: Use CNS as 8-bit field and avoid endianness conversion

Keith Busch keith.busch at intel.com
Thu Jan 26 09:09:16 PST 2017


On Thu, Jan 26, 2017 at 05:17:28PM +0200, Max Gurtovoy wrote:
> From: Parav Pandit <parav at mellanox.com>
> 
> This patch defines CNS field as 8-bit field and avoids cpu_to/from_le
> conversions.
> Also initialize nvme_command cns value explicitly to NVME_ID_CNS_NS
> for readability (don't rely on the fact that NVME_ID_CNS_NS = 0).
> 
> Reviewed-by: Max Gurtovoy <maxg at mellanox.com>
> Signed-off-by: Parav Pandit <parav at mellanox.com>

Reviewed-by: Keith Busch <keith.busch at intel.com>




More information about the Linux-nvme mailing list