staging/rdma/hfi1: Fix snoop packet length calculation
authorDean Luick <dean.luick@intel.com>
Wed, 3 Feb 2016 22:36:22 +0000 (14:36 -0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 11 Mar 2016 01:37:58 +0000 (20:37 -0500)
commit2ef907b80d1cc289a4352287bbb9fc5a19eed212
tree7a81558f42cad3625c80564083b22a127e7740c5
parentcfe3e656d8cd5ff03b8f0ce24f920f306313b013
staging/rdma/hfi1: Fix snoop packet length calculation

The LRH has a 12 bit packet length field, not 11 bit. This caused a
snoop packet length miscalculation leading to a crash when sending a
large ping over IPoIB while running opapacketcapture.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Jubin John <jubin.john@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/diag.c