[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <adawst3f1gb.fsf@cisco.com>
Date: Wed, 31 Oct 2007 13:56:04 -0700
From: Roland Dreier <rdreier@...co.com>
To: ggrundstrom@...effect.com
Cc: ewg@...ts.openfabrics.org, general@...ts.openfabrics.org,
netdev@...r.kernel.org
Subject: Re: [PATCH 11/14 v2] nes: OpenFabrics kernel verbs
> +/**
> + * nes_post_send
> + */
> +static int nes_post_send(struct ib_qp *ibqp, struct ib_send_wr *ib_wr,
> + struct ib_send_wr **bad_wr)
> ...
> + switch (ib_wr->opcode) {
> ...
> + if (ib_wr->num_sge > nesdev->nesadapter->max_sge) {
> + err = -EINVAL;
> + break;
> + }
> ...
> + default:
> + /* error */
> + err = -EINVAL;
> + break;
looks like if you detect an error while posting a work request, you
break out of the switch statement but just continue through the while
loop going through the list of work reuqests. Which doesn't seem like
it will work very well.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists