All of lore.kernel.org
 help / color / mirror / Atom feed
From: frank zago <fzago-klaOcWyJdxkshyMvu7JE4pqQE7yCjDx5@public.gmane.org>
To: "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Fwd: Re: [PATCH 6/9] ocrdma: Driver for Emulex OneConnect RDMA adapter
Date: Wed, 21 Mar 2012 13:03:31 -0500	[thread overview]
Message-ID: <4F6A17F3.8010008@systemfabricworks.com> (raw)
In-Reply-To: <4F6A114A.3070802-klaOcWyJdxkshyMvu7JE4pqQE7yCjDx5@public.gmane.org>


(Resent becasue the first one got lost)

On 03/20/2012 05:39 PM, parav.pandit-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org wrote:
> +
> +int ocrdma_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr,
> +		     struct ib_send_wr **bad_wr)
> +{
> +	int status = 0;
> +	struct ocrdma_qp *qp = get_ocrdma_qp(ibqp);
> +	struct ocrdma_hdr_wqe *hdr;
> +	unsigned long flags;
> +
> +	spin_lock_irqsave(&qp->q_lock, flags);
> +	if (qp->state != OCRDMA_QPS_RTS && qp->state != OCRDMA_QPS_SQD) {
> +		spin_unlock_irqrestore(&qp->q_lock, flags);
> +		return -EINVAL;
> +	}

There, and in several places in this function, you return an error
without setting bad_wr.

Frank.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2012-03-21 18:03 UTC|newest]

Thread overview: 67+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1332283154-16369-1-git-send-email-parav.pandit@emulex.com>
     [not found] ` <1332283154-16369-1-git-send-email-parav.pandit-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>
2012-03-20 22:39   ` [PATCH 1/9] ocrdma: Driver for Emulex OneConnect RDMA adapter parav.pandit-laKkSmNT4hbQT0dZR+AlfA
     [not found]     ` <3f46a051-ee2e-4e18-becf-60f6c023c3c6-nbYkmrCdWxmgMrCBcu8zE0EOCMrvLtNR@public.gmane.org>
2012-03-21 16:14       ` Roland Dreier
2012-03-21 18:58         ` Parav.Pandit
2012-03-21 18:58           ` Parav.Pandit
2012-03-21 16:45       ` Roland Dreier
2012-03-21 17:18       ` Hefty, Sean
     [not found]         ` <1828884A29C6694DAF28B7E6B8A82373451977F5-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2012-03-22 14:27           ` Parav.Pandit-iH1Dq9VlAzfQT0dZR+AlfA
     [not found]             ` <88B766C272F2C64B944B21AD078333151C964A65C7-/SwythR3zqxVRK6PHKByhFaTQe2KTcn/@public.gmane.org>
2012-03-22 15:59               ` Roland Dreier
     [not found]                 ` <CAL1RGDUjJ-pTAobicOpXu1LFFd_zSoxrURCKjnS=mq=wXibADw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-03-22 18:59                   ` Parav.Pandit-iH1Dq9VlAzfQT0dZR+AlfA
     [not found] ` <1332283154-16369-2-git-send-email-parav.pandit@emulex.com>
     [not found]   ` <1332283154-16369-2-git-send-email-parav.pandit-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>
2012-03-20 22:39     ` [PATCH 2/9] " parav.pandit-laKkSmNT4hbQT0dZR+AlfA
     [not found]       ` <24c5b654-d6a5-418d-8187-fba4ad47a3ce-nbYkmrCdWxmgMrCBcu8zE0EOCMrvLtNR@public.gmane.org>
2012-03-21 16:20         ` Roland Dreier
     [not found]           ` <CAL1RGDVxCE--P78bk0Me5o+ekSzgBYG0UJT6y3O7cK3mUGBjuQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-03-21 16:31             ` David Laight
2012-03-21 16:31               ` David Laight
     [not found]               ` <AE90C24D6B3A694183C094C60CF0A2F6026B6EB4-CgBM+Bx2aUAnGFn1LkZF6NBPR1lH4CV8@public.gmane.org>
2012-03-22 20:52                 ` Parav.Pandit-iH1Dq9VlAzfQT0dZR+AlfA
2012-03-22 20:52                   ` Parav.Pandit-iH1Dq9VlAzfQT0dZR+AlfA
     [not found]                   ` <88B766C272F2C64B944B21AD078333151C964A66EF-/SwythR3zqxVRK6PHKByhFaTQe2KTcn/@public.gmane.org>
2012-03-22 20:58                     ` Jason Gunthorpe
     [not found]                       ` <20120322205824.GC9614-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2012-03-22 21:10                         ` Parav.Pandit-iH1Dq9VlAzfQT0dZR+AlfA
2012-03-22 21:10                           ` Parav.Pandit-iH1Dq9VlAzfQT0dZR+AlfA
     [not found]                           ` <88B766C272F2C64B944B21AD078333151C964A670B-/SwythR3zqxVRK6PHKByhFaTQe2KTcn/@public.gmane.org>
2012-03-22 21:20                             ` Parav.Pandit-iH1Dq9VlAzfQT0dZR+AlfA
2012-03-22 21:20                               ` Parav.Pandit-iH1Dq9VlAzfQT0dZR+AlfA
     [not found]                               ` <3ae9829d-f8dd-4268-918a-94616eff0915-nbYkmrCdWxmgMrCBcu8zE0EOCMrvLtNR@public.gmane.org>
2012-03-22 22:44                                 ` Jason Gunthorpe
     [not found]                                   ` <20120322224429.GA12980-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2012-03-22 23:45                                     ` Roland Dreier
2012-03-23  9:41                                     ` David Laight
2012-03-23  9:41                                       ` David Laight
2012-03-23 14:03                                     ` Parav.Pandit-iH1Dq9VlAzfQT0dZR+AlfA
2012-03-23 14:03                                       ` Parav.Pandit-iH1Dq9VlAzfQT0dZR+AlfA
     [not found]                                       ` <88B766C272F2C64B944B21AD078333151C964A67E0-/SwythR3zqxVRK6PHKByhFaTQe2KTcn/@public.gmane.org>
2012-03-23 16:54                                         ` Jason Gunthorpe
     [not found]                                           ` <20120323165414.GA15260-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2012-03-23 19:16                                             ` Parav.Pandit-iH1Dq9VlAzfQT0dZR+AlfA
2012-03-23 19:16                                               ` Parav.Pandit-iH1Dq9VlAzfQT0dZR+AlfA
2012-03-21 19:02             ` Parav.Pandit-iH1Dq9VlAzfQT0dZR+AlfA
2012-03-21 19:02               ` Parav.Pandit-iH1Dq9VlAzfQT0dZR+AlfA
2012-03-21 17:19         ` Hefty, Sean
     [not found]   ` <1332283154-16369-3-git-send-email-parav.pandit@emulex.com>
     [not found]     ` <1332283154-16369-3-git-send-email-parav.pandit-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>
2012-03-20 22:39       ` [PATCH 3/9] " parav.pandit-laKkSmNT4hbQT0dZR+AlfA
     [not found]         ` <339d9e05-38fd-45b1-83ed-f06277bd1326-nbYkmrCdWxmgMrCBcu8zE0EOCMrvLtNR@public.gmane.org>
2012-03-21 16:26           ` Roland Dreier
     [not found]             ` <CAL1RGDWnc478=ToFQEC51Usn6LLZgLen=CymFZ0C0GnRp9BAsw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-03-21 16:33               ` David Laight
2012-03-21 16:33                 ` David Laight
2012-03-21 19:04               ` Parav.Pandit-iH1Dq9VlAzfQT0dZR+AlfA
2012-03-21 19:04                 ` Parav.Pandit-iH1Dq9VlAzfQT0dZR+AlfA
     [not found]                 ` <88B766C272F2C64B944B21AD078333151C964A63F1-/SwythR3zqxVRK6PHKByhFaTQe2KTcn/@public.gmane.org>
2012-03-21 19:33                   ` Roland Dreier
     [not found]                     ` <CAL1RGDWmz4Yr8mqWMywN9X+refDEJ4W=ieBvOtZZc32qMDA5_w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-03-21 20:54                       ` Jason Gunthorpe
     [not found]     ` <1332283154-16369-4-git-send-email-parav.pandit@emulex.com>
     [not found]       ` <1332283154-16369-4-git-send-email-parav.pandit-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>
2012-03-20 22:39         ` [PATCH 4/9] " parav.pandit-laKkSmNT4hbQT0dZR+AlfA
     [not found]           ` <a5e59a7c-d6ff-4c78-89a7-fad7492260b0-nbYkmrCdWxmgMrCBcu8zE0EOCMrvLtNR@public.gmane.org>
2012-03-21 16:34             ` Roland Dreier
2012-03-21 19:09               ` Parav.Pandit
2012-03-21 19:09                 ` Parav.Pandit
     [not found]                 ` <88B766C272F2C64B944B21AD078333151C964A63FB-/SwythR3zqxVRK6PHKByhFaTQe2KTcn/@public.gmane.org>
2012-03-21 19:31                   ` Roland Dreier
     [not found]                     ` <CAL1RGDWrwP3mY2=W42_c5wpefzqx_BnXhnwfy2fPrP=12hrBOw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-03-21 19:46                       ` Parav.Pandit-iH1Dq9VlAzfQT0dZR+AlfA
2012-03-21 19:46                         ` Parav.Pandit-iH1Dq9VlAzfQT0dZR+AlfA
2012-03-21 18:16             ` frank zago
2012-03-22  0:19             ` Hefty, Sean
     [not found]               ` <1828884A29C6694DAF28B7E6B8A8237345197AC0-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2012-03-22  7:58                 ` Parav.Pandit-iH1Dq9VlAzfQT0dZR+AlfA
     [not found]                   ` <88B766C272F2C64B944B21AD078333151C964A657F-/SwythR3zqxVRK6PHKByhFaTQe2KTcn/@public.gmane.org>
2012-03-22 15:58                     ` Roland Dreier
     [not found]       ` <1332283154-16369-5-git-send-email-parav.pandit@emulex.com>
     [not found]         ` <1332283154-16369-5-git-send-email-parav.pandit-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>
2012-03-20 22:39           ` [PATCH 5/9] " parav.pandit-laKkSmNT4hbQT0dZR+AlfA
     [not found]             ` <a20fecd6-5214-4787-a974-04d61732c679-nbYkmrCdWxmgMrCBcu8zE0EOCMrvLtNR@public.gmane.org>
2012-03-22  0:44               ` Hefty, Sean
     [not found]                 ` <1828884A29C6694DAF28B7E6B8A8237345197ADB-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2012-03-22  8:12                   ` Parav.Pandit-iH1Dq9VlAzfQT0dZR+AlfA
     [not found]         ` <1332283154-16369-6-git-send-email-parav.pandit@emulex.com>
     [not found]           ` <1332283154-16369-6-git-send-email-parav.pandit-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>
2012-03-20 22:39             ` [PATCH 6/9] " parav.pandit-laKkSmNT4hbQT0dZR+AlfA
     [not found]               ` <5abe3043-81f8-448a-9e55-b29e23f4eb9a-nbYkmrCdWxmgMrCBcu8zE0EOCMrvLtNR@public.gmane.org>
2012-03-21 16:42                 ` Roland Dreier
2012-03-21 19:10                   ` Parav.Pandit-iH1Dq9VlAzfQT0dZR+AlfA
2012-03-21 19:10                     ` Parav.Pandit-iH1Dq9VlAzfQT0dZR+AlfA
2012-03-21 17:35                 ` frank zago
     [not found]                   ` <4F6A114A.3070802-klaOcWyJdxkshyMvu7JE4pqQE7yCjDx5@public.gmane.org>
2012-03-21 18:03                     ` frank zago [this message]
2012-03-21 17:42                 ` frank zago
     [not found]                   ` <4F6A130E.2030602-klaOcWyJdxkshyMvu7JE4pqQE7yCjDx5@public.gmane.org>
2012-03-21 17:56                     ` Roland Dreier
     [not found]                       ` <CAL1RGDXaV5nWoa5eHBHPCAomx04NHK2bA+yuuf4cqmF6RodrkQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-03-21 18:56                         ` Parav.Pandit-iH1Dq9VlAzfQT0dZR+AlfA
     [not found]                           ` <88B766C272F2C64B944B21AD078333151C964A63E7-/SwythR3zqxVRK6PHKByhFaTQe2KTcn/@public.gmane.org>
2012-03-21 19:27                             ` Roland Dreier
     [not found]           ` <1332283154-16369-7-git-send-email-parav.pandit@emulex.com>
     [not found]             ` <1332283154-16369-7-git-send-email-parav.pandit-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>
2012-03-20 22:39               ` [PATCH 7/9] " parav.pandit-laKkSmNT4hbQT0dZR+AlfA
     [not found]             ` <1332283154-16369-8-git-send-email-parav.pandit@emulex.com>
     [not found]               ` <1332283154-16369-8-git-send-email-parav.pandit-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>
2012-03-20 22:39                 ` [PATCH 8/9] " parav.pandit-laKkSmNT4hbQT0dZR+AlfA
     [not found]               ` <1332283154-16369-9-git-send-email-parav.pandit@emulex.com>
     [not found]                 ` <1332283154-16369-9-git-send-email-parav.pandit-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>
2012-03-20 22:39                   ` [PATCH 9/9] " parav.pandit-laKkSmNT4hbQT0dZR+AlfA

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F6A17F3.8010008@systemfabricworks.com \
    --to=fzago-klaocwyjdxkshymvu7je4pqqe7ycjdx5@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.