]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jul 2014 01:57:27 +0000 (18:57 -0700)
commitd7b861cc493177194d909af54e27b1b0c37ea5c5
treea4b53cc02c5a92310a9b2527a8262704c1f2d4f6
parentaf8eeb27ebc33289ec68c8a2c8445a6833f5b111
IB/ipath: Translate legacy diagpkt into newer extended diagpkt

commit 7e6d3e5c70f13874fb06e6b67696ed90ce79bd48 upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/ipath/ipath_diag.c