IB/hfi1: Reduce oversized fields in struct hfi1_packet
authorSebastian Sanchez <sebastian.sanchez@intel.com>
Wed, 8 Feb 2017 13:26:49 +0000 (05:26 -0800)
committerDoug Ledford <dledford@redhat.com>
Sun, 19 Feb 2017 14:18:37 +0000 (09:18 -0500)
Some fields in struct hfi1_packet are oversized.
Reduce them.

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: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/hfi.h

index 1d0873914a6fb6a1cd6eed839a66877f8c2eba35..fcfd5f1b901780b7b545b447b7f223cd5c77a446 100644 (file)
@@ -356,12 +356,11 @@ struct hfi1_packet {
        u64 rhf;
        u32 maxcnt;
        u32 rhqoff;
-       u32 hdrqtail;
-       int numpkt;
        u16 tlen;
-       u16 hlen;
        s16 etail;
-       u16 rsize;
+       u8 hlen;
+       u8 numpkt;
+       u8 rsize;
        u8 updegr;
        u8 rcv_flags;
        u8 etype;