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 4F7BB4613A; Mon, 27 Jan 2025 19:09:24 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D2FC740BA5; Mon, 27 Jan 2025 19:09:02 +0100 (CET) Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by mails.dpdk.org (Postfix) with ESMTP id 1818240A82 for ; Mon, 27 Jan 2025 19:08:59 +0100 (CET) Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-21634338cfdso5911435ad.2 for ; Mon, 27 Jan 2025 10:08:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1738001338; x=1738606138; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=H/hCTYgU39D3VQ6P3As8/oHgUD7UAI3QNHUuRVYNtFo=; b=xioNaB4SCfWW7ReZiPxyUnAlNzrKh5+XXmghojhJTjIq2oHdyvcAMp6fP+XU9RS/nE 6MdT4Xr7AzLFGM3JdM109dGo+YS0/kt+RSbXgFXoHA5rHCY1cyAh94teybiGGkI+utLY F//81Ne7ds1LgFY+eYMqkMUBq1LQgjyLxsCPNpgJlyLxxDyxb50jdz6JnBl8L1YAp4r6 byR98wuLIxuHdgwyW/fxgk/zue2UnF54kqqUBMmU8Wb8z3vGDkt7SzDR0PIdQSjw+Juu BunjGPiWzxpjXwE/ndETAMVaX9+pCLCAKEpyrKjXKXQ6o7jARDmQ2uu+YQmORpF79K0q iesQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738001338; x=1738606138; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H/hCTYgU39D3VQ6P3As8/oHgUD7UAI3QNHUuRVYNtFo=; b=K9Bwp7De/CYAvtJl6CjTBWQcT2/EgMbukdT7xcPWfpXNJwLfKRX6/LXqnkz5Y5EFS4 bNHmpFj9gLoRjD56Ed98gFNqHi9iIlMakK7DJOWX5uVe/4LZo8CfJSLrD+RPgNp1M4AB S636HXqLSdggC/lY3p7MSD/Y0t6KNOUTVEjABNyD//dtw74NduxYj8cwqtw2LEvhkr2Y PeG8E0q0sG1hicLoVsIKF+/gHhtVxidx6jGGcqR9tWnx/RfmSrL7PU0hR/VpW1ypcMdJ Aj2cfJrxOKJhaNfa5B2ifC3yBdt3Hhf9o2vs0Lgsw9buGEupdS+clfjG7Jkmxxdf8y3H V6VQ== X-Gm-Message-State: AOJu0YzuLkYNux/fAis42Ux9qPe6u+cBu+UR/RhHzGHl0Cw7HDvj3cvR 1et9cGeJcF5t4Sepvj9P0bjlstSw/trF/MMkU5Y8/m9lPInYBbdUkTRNX2ApBKD7q4AkvKaUViF K X-Gm-Gg: ASbGnctWEcoOaeT4SbipHHP+C7P22giyllJef4Y6J+Ml1TZgIcsnlNhW/2OXDUD9/bu bDK9iHwV4oYR5XRJhsxKOH7Bukj7pM2CoOZcVshSR5qwjNovfKs9z60rkJHwWJBkz64TUB7PLKQ WkFw/00gsJxmLRRs0EpD1rVVdCUT9vpN1lOdSUe/x8r2PKyqdv/l8fHDWqzPhYco8M2e/N8cX8q jd6y2nGyWsTCF2TT8vJFAKoX1WNZ2tOPDCywtK92vAS+PQT0efDblmBsUhRsCfw7GyqD0dXqrWw etYlreBh0W3cW29xKOv2l4dUlivbGS50WqtAU/OXLUSSJF8sfLpD/67fDQ== X-Google-Smtp-Source: AGHT+IGzlIXGSN6HfLNiRbs2gg9M/PQI08lhkb1/mn/DUou++poaYa5NQFPUXbsF8/wTwNRYgNnUlw== X-Received: by 2002:a17:903:24d:b0:216:4cc0:aa4e with SMTP id d9443c01a7336-21c3578a2damr537724835ad.47.1738001337286; Mon, 27 Jan 2025 10:08:57 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21da41413absm66166665ad.123.2025.01.27.10.08.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jan 2025 10:08:56 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Vladimir Medvedkin , Ian Stokes Subject: [RFC 5/7] net/iavf: replace local version of TAILQ_FOREACH_SAFE Date: Mon, 27 Jan 2025 10:03:59 -0800 Message-ID: <20250127180842.97907-6-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20250127180842.97907-1-stephen@networkplumber.org> References: <20250127180842.97907-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Now in EAL as rte_queue.h Signed-off-by: Stephen Hemminger --- drivers/net/iavf/iavf_vchnl.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/net/iavf/iavf_vchnl.c b/drivers/net/iavf/iavf_vchnl.c index 065ab3594c..c9684ae189 100644 --- a/drivers/net/iavf/iavf_vchnl.c +++ b/drivers/net/iavf/iavf_vchnl.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -52,13 +53,6 @@ static struct iavf_event_handler event_handler = { .fd = {-1, -1}, }; -#ifndef TAILQ_FOREACH_SAFE -#define TAILQ_FOREACH_SAFE(var, head, field, tvar) \ - for ((var) = TAILQ_FIRST((head)); \ - (var) && ((tvar) = TAILQ_NEXT((var), field), 1); \ - (var) = (tvar)) -#endif - static uint32_t iavf_dev_event_handle(void *param __rte_unused) { -- 2.45.2