From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7BEC9A0C45; Mon, 13 Sep 2021 17:09:51 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0AC9940E28; Mon, 13 Sep 2021 17:09:51 +0200 (CEST) Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) by mails.dpdk.org (Postfix) with ESMTP id B947840151 for ; Mon, 13 Sep 2021 17:09:49 +0200 (CEST) Received: by mail-pg1-f176.google.com with SMTP id s11so9707111pgr.11 for ; Mon, 13 Sep 2021 08:09:49 -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=O0lcva5lSXuMa14iHyhdohMT9R2w7H+poHyuygr7g+g=; b=V4WTU99/G/dRAqYMoPu2rZ/0+c7rTsaMn6dDHlYDyezJFSe70Ur3flkJoUuysuJB7h 97XQq9XbVpREowZcrQqXKxz/QT/ooWAtxdfKXSxoA2ugAhNJBJkj+SS7iFeh/598qg2V B+pGP7dXe766TvizgaAao/PaoSw0pd9lVYvW2WtF3hWTC8nAbOqbIU78mwUm2fITm+N7 JmX1SSqDiVTqQpVflQ0WyTyvGHKUmsoKt48l2pGk2e30e6kPzQNfJS89UmYpBbKVmAO3 zMaJv1nNtjE6K9zOPoy2uFK+Dy6i6djXZV9bzcSBMcEpfYAZmjBztisFpYyzyxqyJWRI Xiig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=O0lcva5lSXuMa14iHyhdohMT9R2w7H+poHyuygr7g+g=; b=Vd5k6jzUg/AhVfC9QYPUU7DBDEQcoBt+e8mE3JY+q7ujbBe5Rjqvuw2UPFY0/pD9ue AzXY45cSBXGqM7bSaH6OfJ8lJPAd5h8QgE5x5wzqpqZbgudVcurUJ8D0X7KZEbq/AI0R dnH008bxbSg48pNVo+N7ZyzRv5qrTMc5Gpg1fR+/yHar3PK1ynfOaBhn+mmXBgm1fcts NLHF9zcnnFiXdhIVtznNTZgtcskGC5oFa4h/qmG61QmjO37jYGDF//92X3nCk7cBFAnX jNFUFLyJ7pmMwhz9zMiDApd5HBV96QEJHV44eOlvElNXI5psgqALBbdPzonJClMMfcCx PRLA== X-Gm-Message-State: AOAM5316+ULbLSCYP1cLmhlG+sbulusdzJvkOnpM4beDXaPx5f/rHtXg n0ndlKU4JH6sBfZeGgGNQW46TA== X-Google-Smtp-Source: ABdhPJz0Atvgwa75kN9uonG7u4zMoZbxpNGWkDRYosG5IPQyE7sMWa/i/eTIlMQnSAKFERBR27oqvw== X-Received: by 2002:a63:6ec9:: with SMTP id j192mr11613482pgc.115.1631545788793; Mon, 13 Sep 2021 08:09:48 -0700 (PDT) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id l14sm7315471pjq.13.2021.09.13.08.09.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Sep 2021 08:09:48 -0700 (PDT) Date: Mon, 13 Sep 2021 08:09:45 -0700 From: Stephen Hemminger To: Tudor Cornea Cc: ferruh.yigit@intel.com, linville@tuxdriver.com, thomas@monjalon.net, pogonarumihai@gmail.com, dev@dpdk.org Message-ID: <20210913080945.309b4c53@hermes.local> In-Reply-To: <1631542151-62895-1-git-send-email-tudor.cornea@gmail.com> References: <1631542151-62895-1-git-send-email-tudor.cornea@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] net/af_packet: remove timestamp from packet status X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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 Mon, 13 Sep 2021 17:09:11 +0300 Tudor Cornea wrote: > +static inline bool tx_ring_status_unavailable(uint32_t tp_status) > +{ > +#if KERNEL_VERSION(5, 10, 0) > LINUX_VERSION_CODE No, having kernel dependent userspace in DPDK is not good practice. Distribution vendors don't number their kernels the same as upstream. RHEL for example, keeps same version over life or release but backports many fixes. Also, the system DPDK runs on is often not the system DPDK is built on.