From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by dpdk.org (Postfix) with ESMTP id 2E97A2C60 for ; Thu, 21 Mar 2019 16:30:04 +0100 (CET) Received: by mail-pf1-f196.google.com with SMTP id r15so4509834pfn.9 for ; Thu, 21 Mar 2019 08:30:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=W7i6/yyIvEdFQ1v0mtC0k7+m4jJV4pVUIqKt6dPGDsM=; b=X70IWzKkIJsODQ/2OiBubn58m1VEz/g+YH63iby5sCpeAiqOk9S5z2horFfXqoglhp Y3Hz7CQTUSaTSizMpgPBYk9F9KQCylniLvEFqKJXMv037Dtj75wbUkFW5GLn41Q1I4jj 4+QQtgkwZuaW6iFPXPW2b4zB8EqzVoSQm/yjHP6cttVn5/yajj2y/pfis1VNcoPsZNPU AqgFaeTBh46n/P4zdtPx2GkyS2yBdnuu55XoZdJWrCjEy7X+F3o2P6GH1qdUBuXYg5Lb 62d4h73lfC1kx23+CYzUxKUfHOtGkKeyqEhEwJdZ9ULJfWYofjOKLrHrP+ZX5ak7JcZV AlEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=W7i6/yyIvEdFQ1v0mtC0k7+m4jJV4pVUIqKt6dPGDsM=; b=TvvDQn3T8w2DJC50ww3R9Yid41KZ5ACd4l3IOxaux8K9EL/BkSrnA/PkecJdViuN9H e/X8fvdX4auiArzYadWgU6yRPz0mVASlrEE8DxmUOVJ7UXQGtt5k3UoRn35n0tJWH9F2 vd+UoJqWEpMc6qvCVi+7dfZG4trLr4QmkqDxpmLSXZjTCeZSmi3L1KLiJEvNIBTsAhF1 XM3/56qZy/+svAfdTJlsp/30n6GV3lQdrFmCBLJnsbdwDraEAtub+X4qZgrAv/S0VYFm fFYJEHtBR01eDEOOulbbrGabq7rkt11kIKX/wS4PPX0Vvga6D/j8M2AhdS0Z9tOZhnb5 pnZw== X-Gm-Message-State: APjAAAXJD1z8/SbzeJhoG5Q/s4XcyphjxRiq3wb4d/M/B9NPctUAuDAt uKBWumQYpxeVlgsAeMfkreDJCQ== X-Google-Smtp-Source: APXvYqzYqPI45tNL28jhNujxLXemwCbKlVY4mIT6R4BxXjWSgUWI8BKlnjecro9oiQkIlwLTXz4v4w== X-Received: by 2002:a63:5659:: with SMTP id g25mr3910650pgm.436.1553182203399; Thu, 21 Mar 2019 08:30:03 -0700 (PDT) Received: from shemminger-XPS-13-9360 (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id a24sm6646504pfn.85.2019.03.21.08.30.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Mar 2019 08:30:03 -0700 (PDT) Date: Thu, 21 Mar 2019 08:30:00 -0700 From: Stephen Hemminger To: Xiaolong Ye Cc: dev@dpdk.org, Qi Zhang , Karlsson Magnus , Topel Bjorn Message-ID: <20190321083000.5894dbf7@shemminger-XPS-13-9360> In-Reply-To: <20190321091845.78495-2-xiaolong.ye@intel.com> References: <20190301080947.91086-1-xiaolong.ye@intel.com> <20190321091845.78495-1-xiaolong.ye@intel.com> <20190321091845.78495-2-xiaolong.ye@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v3 1/5] net/af_xdp: introduce AF XDP PMD driver 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: , X-List-Received-Date: Thu, 21 Mar 2019 15:30:04 -0000 On Thu, 21 Mar 2019 17:18:41 +0800 Xiaolong Ye wrote: > + > + if (ret < 0) > + return -EINVAL; > + > + return 0; You could propogate kernel errno into DPDK? return (ret < 0) ? -errno : 0; From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id B36B4A00E6 for ; Thu, 21 Mar 2019 16:30:05 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 86E6D1B518; Thu, 21 Mar 2019 16:30:05 +0100 (CET) Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by dpdk.org (Postfix) with ESMTP id 2E97A2C60 for ; Thu, 21 Mar 2019 16:30:04 +0100 (CET) Received: by mail-pf1-f196.google.com with SMTP id r15so4509834pfn.9 for ; Thu, 21 Mar 2019 08:30:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=W7i6/yyIvEdFQ1v0mtC0k7+m4jJV4pVUIqKt6dPGDsM=; b=X70IWzKkIJsODQ/2OiBubn58m1VEz/g+YH63iby5sCpeAiqOk9S5z2horFfXqoglhp Y3Hz7CQTUSaTSizMpgPBYk9F9KQCylniLvEFqKJXMv037Dtj75wbUkFW5GLn41Q1I4jj 4+QQtgkwZuaW6iFPXPW2b4zB8EqzVoSQm/yjHP6cttVn5/yajj2y/pfis1VNcoPsZNPU AqgFaeTBh46n/P4zdtPx2GkyS2yBdnuu55XoZdJWrCjEy7X+F3o2P6GH1qdUBuXYg5Lb 62d4h73lfC1kx23+CYzUxKUfHOtGkKeyqEhEwJdZ9ULJfWYofjOKLrHrP+ZX5ak7JcZV AlEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=W7i6/yyIvEdFQ1v0mtC0k7+m4jJV4pVUIqKt6dPGDsM=; b=TvvDQn3T8w2DJC50ww3R9Yid41KZ5ACd4l3IOxaux8K9EL/BkSrnA/PkecJdViuN9H e/X8fvdX4auiArzYadWgU6yRPz0mVASlrEE8DxmUOVJ7UXQGtt5k3UoRn35n0tJWH9F2 vd+UoJqWEpMc6qvCVi+7dfZG4trLr4QmkqDxpmLSXZjTCeZSmi3L1KLiJEvNIBTsAhF1 XM3/56qZy/+svAfdTJlsp/30n6GV3lQdrFmCBLJnsbdwDraEAtub+X4qZgrAv/S0VYFm fFYJEHtBR01eDEOOulbbrGabq7rkt11kIKX/wS4PPX0Vvga6D/j8M2AhdS0Z9tOZhnb5 pnZw== X-Gm-Message-State: APjAAAXJD1z8/SbzeJhoG5Q/s4XcyphjxRiq3wb4d/M/B9NPctUAuDAt uKBWumQYpxeVlgsAeMfkreDJCQ== X-Google-Smtp-Source: APXvYqzYqPI45tNL28jhNujxLXemwCbKlVY4mIT6R4BxXjWSgUWI8BKlnjecro9oiQkIlwLTXz4v4w== X-Received: by 2002:a63:5659:: with SMTP id g25mr3910650pgm.436.1553182203399; Thu, 21 Mar 2019 08:30:03 -0700 (PDT) Received: from shemminger-XPS-13-9360 (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id a24sm6646504pfn.85.2019.03.21.08.30.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Mar 2019 08:30:03 -0700 (PDT) Date: Thu, 21 Mar 2019 08:30:00 -0700 From: Stephen Hemminger To: Xiaolong Ye Cc: dev@dpdk.org, Qi Zhang , Karlsson Magnus , Topel Bjorn Message-ID: <20190321083000.5894dbf7@shemminger-XPS-13-9360> In-Reply-To: <20190321091845.78495-2-xiaolong.ye@intel.com> References: <20190301080947.91086-1-xiaolong.ye@intel.com> <20190321091845.78495-1-xiaolong.ye@intel.com> <20190321091845.78495-2-xiaolong.ye@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v3 1/5] net/af_xdp: introduce AF XDP PMD driver 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" Message-ID: <20190321153000.pAmt2sktSnVRWGZnRrYc7GEVwZgRIx9vM4ruCkUTYv4@z> On Thu, 21 Mar 2019 17:18:41 +0800 Xiaolong Ye wrote: > + > + if (ret < 0) > + return -EINVAL; > + > + return 0; You could propogate kernel errno into DPDK? return (ret < 0) ? -errno : 0;