IB/ipath: Translate legacy diagpkt into newer extended diagpkt
authorDennis Dalessandro <dennis.dalessandro@intel.com>
Fri, 2 May 2014 15:40:17 +0000 (11:40 -0400)
committerRoland Dreier <roland@purestorage.com>
Tue, 27 May 2014 20:21:04 +0000 (13:21 -0700)
commit7e6d3e5c70f13874fb06e6b67696ed90ce79bd48
treee5f6f57a020473ff4ad1d9e003216b804e218add
parent911eccd284d13d78c92ec4f1f1092c03457d732a
IB/ipath: Translate legacy diagpkt into newer extended diagpkt

This patch addresses an issue where the legacy diagpacket is sent in
from the user, but the driver operates on only the extended
diagpkt. This patch specifically initializes the extended diagpkt
based on the legacy packet.

Cc: <stable@vger.kernel.org>
Reported-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/ipath/ipath_diag.c