diff options
author | Sebastian Sanchez <sebastian.sanchez@intel.com> | 2018-02-01 19:46:23 +0100 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-02-01 23:43:28 +0100 |
commit | 6d6b8848c882b22e3170cc9f217101773e8bd8d2 (patch) | |
tree | 4e694d7e1ac69e73dcc01d11515189991fce8f76 /drivers/infiniband/hw/hfi1/hfi.h | |
parent | IB/hfi1: Compute BTH only for RDMA_WRITE_LAST/SEND_LAST packet (diff) | |
download | linux-6d6b8848c882b22e3170cc9f217101773e8bd8d2.tar.xz linux-6d6b8848c882b22e3170cc9f217101773e8bd8d2.zip |
IB/hfi1: Optimize packet type comparison using 9B and bypass code paths
The packet type comparison used to find out if a packet is a bypass
packet in the hot path is an expensive operation as seen in a profile.
Determine packet's pkey and migration bit through the bypass and 9B
code paths instead.
Reviewed-by: Don Hiatt <don.hiatt@intel.com>
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/hfi1/hfi.h')
-rw-r--r-- | drivers/infiniband/hw/hfi1/hfi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/hfi1/hfi.h b/drivers/infiniband/hw/hfi1/hfi.h index 5757d0e3482d..2c257ac685e7 100644 --- a/drivers/infiniband/hw/hfi1/hfi.h +++ b/drivers/infiniband/hw/hfi1/hfi.h @@ -341,6 +341,7 @@ struct hfi1_packet { u32 slid; u16 tlen; s16 etail; + u16 pkey; u8 hlen; u8 numpkt; u8 rsize; @@ -353,6 +354,7 @@ struct hfi1_packet { u8 opcode; bool becn; bool fecn; + bool migrated; }; /* Packet types */ |