]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Extend input hdr tracing for packet type
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Tue, 26 Sep 2017 14:01:09 +0000 (07:01 -0700)
committerDoug Ledford <dledford@redhat.com>
Wed, 27 Sep 2017 15:34:13 +0000 (11:34 -0400)
commita68485e8e8af0660422e2ed0cfc52d132d4c4e0b
treedae392b9e2b4a1b9e6d68e72fd6a91287ff6a109
parent1bd5c510b6e37c7c9591928092d0afb2695392d2
IB/hfi1: Extend input hdr tracing for packet type

The etype field from the rhf can have more values than just
IB and BYPASS.

Extend the current tracing to report a symbolic for the etype
field for non-bypass packets.  Bypass packets will continue to
report the l2.

As part of this fix the etype and the l2 are added to the tracing
struct and are available for trigger and filter operations.

Fixes: Commit f71a3bfac542 ("IB/hfi1: Add 16B trace support")
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/trace.c
drivers/infiniband/hw/hfi1/trace.h
drivers/infiniband/hw/hfi1/trace_ibhdrs.h
drivers/infiniband/hw/hfi1/trace_rx.h