From patchwork Fri Feb 28 06:07:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Kozlyuk X-Patchwork-Id: 66123 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2C8C5A0561; Fri, 28 Feb 2020 07:07:57 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B5E8F1BFF4; Fri, 28 Feb 2020 07:07:50 +0100 (CET) Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) by dpdk.org (Postfix) with ESMTP id 4FFD01BFEB for ; Fri, 28 Feb 2020 07:07:41 +0100 (CET) Received: by mail-lj1-f182.google.com with SMTP id x7so2036651ljc.1 for ; Thu, 27 Feb 2020 22:07:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZsQnD9tZH5hpy/NNgbbmzWehwBDJ08va3MBsjOMz/Vw=; b=qMjw5j8Ut+Zud3wtcNFGinCaZlIl7w9IqlganFiY64fNUWq0eM99QLXPvSmUx/tSM1 NSEO9snhSTQCtrmcsg6m3otivOrJSXb4/j6aYz0UxI1HS0GlS/4X+xKvSXowTi7uk5SO 1kG3LnaDrqix7OhpOV31B5myO/W4/GnN37kdvLKNMbEc13eVJHliKCI1n++AHeigCiy2 EPWRacHWes6i4xdg9bCRim2yt4SNTVMat3YF0ODdKOX/gNBtsYznGKLKZ4JRO+cJIjJP aUuxmpy5axr3FpoLx804ZjT4E2zn9Tfz6ygjs5wlFsP4gAu4WOkodOYln4tnOzDN6znf JzEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZsQnD9tZH5hpy/NNgbbmzWehwBDJ08va3MBsjOMz/Vw=; b=HX6QUdOboIoE8cF5BmTbj6V2xIjEO4xtYRs9B27986aRgjITJGHroXPJdx1GYyIons dMCtGG2lmiETe572rm8Fsrzu7CPUyJFlkEOj1+rZzp4qdSI0PzKM5e/GxGbr6H61idVG Xzg1V3xIaSzA+cfYC8iJms9sUJJwYHcL36CemcDHlOw6m+g3eHxG8WTE944YrLEbkIdo LB5cZPDdxkIW6WKJn0obgsjXHQoSBwcCH8chvEuGw0E7zWUdS38stSpkJilnazjOK94g qKCypeeb7gexLwRcwRBuEZKw7XbjtUgs1cghZ+ljx6o4h51P0HuMH/ydJB8/0zr0dY1l SHwg== X-Gm-Message-State: ANhLgQ20QrOISWUO89Pzvf2QDb/3vKAhYo6rIzYjdhqO/tHnczdb5xG5 sAm9Xz2uTq7dzTkpkv3cC+J5QiFB X-Google-Smtp-Source: ADFU+vuQ+lYRukF4yFjMq21DfP9WqJL3potlRs97Zju0MBSAmVqoHDcPt8HVlguWIftIx63HofCceQ== X-Received: by 2002:a05:651c:1032:: with SMTP id w18mr1760902ljm.61.1582870060452; Thu, 27 Feb 2020 22:07:40 -0800 (PST) Received: from localhost.localdomain (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.googlemail.com with ESMTPSA id r12sm4819281ljh.105.2020.02.27.22.07.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Feb 2020 22:07:39 -0800 (PST) From: Dmitry Kozlyuk To: dev@dpdk.org Cc: Dmitry Kozlyuk Date: Fri, 28 Feb 2020 09:07:24 +0300 Message-Id: <20200228060727.192491-3-dmitry.kozliuk@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200228060727.192491-1-dmitry.kozliuk@gmail.com> References: <20200227071126.75162e92@Sovereign> <20200228060727.192491-1-dmitry.kozliuk@gmail.com> MIME-Version: 1.0 Subject: [dpdk-dev] [RFC PATCH 2/5] net: add stub for RARP packet generation on Windows 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" RARP packets are optionally generated by virtio-net PMD. Signed-off-by: Dmitry Kozlyuk --- lib/librte_net/rte_net.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/librte_net/rte_net.c b/lib/librte_net/rte_net.c index 56a13e3c4..8391ceae7 100644 --- a/lib/librte_net/rte_net.c +++ b/lib/librte_net/rte_net.c @@ -487,3 +487,15 @@ uint32_t rte_net_get_ptype(const struct rte_mbuf *m, return pkt_type; } + +#ifdef _WIN64 +struct rte_mbuf * __rte_experimental +rte_net_make_rarp_packet(struct rte_mempool *mpool, + const struct ether_addr *mac) +{ + RTE_SET_USED(mpool); + RTE_SET_USED(mac); + RTE_LOG(ERR, EAL, "RARP packet creation not implemented for Windows\n"); + return NULL; +} +#endif