RE: [PATCH rdma-next 31/31] IB/cm: Refactor to avoid setting path record software only fields

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> -----Original Message-----
> From: Or Gerlitz [mailto:gerlitz.or@xxxxxxxxx]
> Sent: Tuesday, November 14, 2017 3:13 PM
> To: Parav Pandit <parav@xxxxxxxxxxxx>
> Cc: Doug Ledford <dledford@xxxxxxxxxx>; linux-rdma@xxxxxxxxxxxxxxx; Hefty,
> Sean <sean.hefty@xxxxxxxxx>; Leon Romanovsky <leonro@xxxxxxxxxxxx>
> Subject: Re: [PATCH rdma-next 31/31] IB/cm: Refactor to avoid setting path
> record software only fields
> 
> On Tue, Nov 14, 2017 at 2:52 PM, Leon Romanovsky <leon@xxxxxxxxxx> wrote:
> > From: Parav Pandit <parav@xxxxxxxxxxxx>
> >
> > When path ah_attr initialization from path record fails,
> > ib_cm_send_rej() uses av.ah_attr fields to send out reject message. In
> > such cases initialization of path record software fields is not
> > needed. Code is simplified for same.
> 
> is "Code is simplified for same"  cut in the middle, I fail to understand the
> sentence.
> 
Code is simplified to avoid such initialization.

> 
> > Additionally in current code in cm_req_handler, when ib_get_cached_gid
> > fails for a given sgid_index of the GID of the GRH of the incoming CM
> > MAD, error code 12 is sent. This error code refers to primary GID in
> > incoming CM REQ and not for the GID in in MAD packet.
> > Therefore code is refactored to send code 5 (unsupported request) for
> > such error.
> 
> You do two logical changes in one patch, doesn't seem right to me.
Both logical changes are in same function few lines apart around GID check.
So Hal and I continued to have in one patch.
��.n��������+%������w��{.n�����{���fk��ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux