From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B1E49A04DC; Sat, 31 Oct 2020 23:12:10 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 22D215AA4; Sat, 31 Oct 2020 23:12:08 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by dpdk.org (Postfix) with ESMTP id 1FFF75A0F for ; Sat, 31 Oct 2020 23:12:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1604182324; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=sTjuo5yp1Sa8qdUQiTVYQY7xT3ygQ8OXFc9ZcGR3h0o=; b=JtoqycaVtigDUNQGVgzsGhr4/cd9wqT3PlocJlyYq8V8f+O1Ey0gfsL1L/VpsXj3sBripI bbSxpFF3oX5sHjqA+9HA/Eaa++CQkxmpDlqQoVaAcYE2Z+fkQL2aM4ek2Bk6cVsJ8RW/bk Wz04VO69S24a/dAmXChc5NJB5fKAU6Y= Received: from mail-vk1-f198.google.com (mail-vk1-f198.google.com [209.85.221.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-87-zwG2xHhEMsCkk7cGLjTSdQ-1; Sat, 31 Oct 2020 18:12:02 -0400 X-MC-Unique: zwG2xHhEMsCkk7cGLjTSdQ-1 Received: by mail-vk1-f198.google.com with SMTP id t72so605285vke.4 for ; Sat, 31 Oct 2020 15:12:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sTjuo5yp1Sa8qdUQiTVYQY7xT3ygQ8OXFc9ZcGR3h0o=; b=BMb3z0Mhw0HjeC66F/brsvloSueU3jBdYBg9YnXOTRxcY/Bw6tzcjaQO/+b51peZsG Dk63gEYVGFUIa/2nf1UiB/nmt8iNvJlcbvsgZYsSyeU1ndS/GORwmVuvZxRN20ronjr8 Jafj6Ln2Z6EWcIkK6J80AQCFdbYJRObW28rNJXicPFwkUYC5j1F+44dgJlWOtSNAeaKE C2ycM8b+XCbMd/xqfeIRsDH3jLIj4haqCzbUBw4nppA60zigl+cNXRPq89XBRDZOQgWv 1aLO2RnLBrpF9/ivy1GecbtLq609na74XU7zlxNNdfHMg+KxvfpAMncpXB1RuacrULiF 02ZQ== X-Gm-Message-State: AOAM530sH3RafYM09fBl8H84eh0N9Gp46LgodnDou0Lx1QLti7DVXjB2 JdPT7xRjVuFeTiqMoofTvkvgryF+gOuR+NfiFMYBBwqoEkffunVjzQV4Kl/e2My8wriuMzLRGjx XVrs9QsSoy+XWslxOBZQ= X-Received: by 2002:a67:fd7a:: with SMTP id h26mr11577817vsa.27.1604182321833; Sat, 31 Oct 2020 15:12:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz184AcEMPq5fVR1qCQGTCIunYll+eKeq2PVYpU1ibrHviwzl76MatgKbUhAEWeDYlxc+8ciojyt+6T/61CeKA= X-Received: by 2002:a67:fd7a:: with SMTP id h26mr11577809vsa.27.1604182321639; Sat, 31 Oct 2020 15:12:01 -0700 (PDT) MIME-Version: 1.0 References: <20200612212434.6852-2-timothy.mcdaniel@intel.com> <1604168282-30079-1-git-send-email-timothy.mcdaniel@intel.com> <1604168282-30079-22-git-send-email-timothy.mcdaniel@intel.com> In-Reply-To: <1604168282-30079-22-git-send-email-timothy.mcdaniel@intel.com> From: David Marchand Date: Sat, 31 Oct 2020 23:11:50 +0100 Message-ID: To: Timothy McDaniel Cc: Jerin Jacob , dev , Erik Gabriel Carrillo , Gage Eads , Van Haaren Harry , Thomas Monjalon Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v14 21/23] event/dlb: add PMD self-tests X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Sat, Oct 31, 2020 at 7:24 PM Timothy McDaniel wrote: > +static inline int > +create_ports(int num_ports) > +{ > + int i; > + > + if (num_ports > MAX_PORTS) > + return -1; > + > + for (i = 0; i < num_ports; i++) { > + struct rte_event_port_conf conf; > + > + if (rte_event_port_default_conf_get(evdev, i, &conf)) { > + printf("%d: Error querying default port conf\n", > + __LINE__); > + return -1; > + } > + > + if (rte_event_port_setup(evdev, i, &conf) < 0) { > + printf("%d: Error setting up port %d\n", i, __LINE__); Caught while diffing the dlb and dlb2 drivers... Here, it should be __LINE__, i. > + return -1; > + } > + } > + > + return 0; > +} -- David Marchand