From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v6 07/10] qat_crypto_pmd: Addition of a new QAT DPDK PMD. Date: Fri, 13 Nov 2015 17:00:59 +0100 Message-ID: <1834242.iLgMQtWqy4@xps13> References: <1447101259-18972-1-git-send-email-declan.doherty@intel.com> <1447176763-19303-1-git-send-email-declan.doherty@intel.com> <1447176763-19303-8-git-send-email-declan.doherty@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Declan Doherty Return-path: Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id C4BFE937C for ; Fri, 13 Nov 2015 17:02:12 +0100 (CET) Received: by wmec201 with SMTP id c201so88247593wme.0 for ; Fri, 13 Nov 2015 08:02:12 -0800 (PST) In-Reply-To: <1447176763-19303-8-git-send-email-declan.doherty@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2015-11-10 17:32, Declan Doherty: > --- a/lib/librte_mbuf_offload/rte_mbuf_offload.h > +++ b/lib/librte_mbuf_offload/rte_mbuf_offload.h > @@ -123,17 +123,10 @@ rte_pktmbuf_offload_get(struct rte_mbuf *m, enum rte_mbuf_ol_op_type type) > { > struct rte_mbuf_offload *ol = m->offload_ops; > > - if (m->offload_ops != NULL && m->offload_ops->type == type) > - return ol; > - > - ol = m->offload_ops; > - while (ol != NULL) { > + for (ol = m->offload_ops; ol != NULL; ol = ol->next) > if (ol->type == type) > return ol; > > - ol = ol->next; > - } > - > return ol; > } Strange: why changing the code of the previous patch?