]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Fix output trace issues from 16B change
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Mon, 2 Oct 2017 18:04:11 +0000 (11:04 -0700)
committerDoug Ledford <dledford@redhat.com>
Wed, 4 Oct 2017 19:39:44 +0000 (15:39 -0400)
commit54239330b01be4fb6f033ea00758a6d4d136b5d3
tree3a0b0d5a1d1cf945df56ffb17aec9c8d46e5f44c
parent36a107597ade94535b83d7e7f4394bc418e318e9
IB/hfi1: Fix output trace issues from 16B change

The 16B changes to the output side of the header trace introduced
two issues:

1. An uninitialized field "l4" for 9B packets

   This field needs to be given a value of 0 for 9B
   packets to insure a correct 9B trace.

   The fix adds a new define to insure that there is a dummy
   default for 9B packets to insure the correct string
   is decoded.

2. Use of entry vs. __entry in field references

Fixes: Commit f71a3bfac542 ("IB/hfi1: Add 16B trace support")
Reported-by: Kaike Wan <kaike.wan@intel.com>
Reviewed-by: Don Hiatt <don.hiatt@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/hfi.h
drivers/infiniband/hw/hfi1/trace_ibhdrs.h