[v3,00/15] add FreeBSD support to VMBUS & NetVSC PMDs
Message ID | 20220217160613.70161-1-srikanth.k@oneconvergence.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1515DA034E; Thu, 17 Feb 2022 17:10:53 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AE77140150; Thu, 17 Feb 2022 17:10:52 +0100 (CET) Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) by mails.dpdk.org (Postfix) with ESMTP id C532F40042 for <dev@dpdk.org>; Thu, 17 Feb 2022 17:06:27 +0100 (CET) Received: by mail-pf1-f170.google.com with SMTP id i6so51570pfc.9 for <dev@dpdk.org>; Thu, 17 Feb 2022 08:06:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oneconvergence.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BRu2qLPABEFbLbX/YKAj3DSdObrXiNZqatfS0Jua7zI=; b=cvAgkIiVZjX4TldAbVfEF4WS93Hk9hDPfscQzRYAfjYfjcjctvNKsRUBbZruEeQNcb K02b/Lr0TUde7E2g20maK1aUdXWNtIC7HvR7VWLd+e/rdSC4CI0qvTSBUZWz7msD/u2p DJGumH/FkfxTvq3+k07A2WO7dyXIPKzxzjSx0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BRu2qLPABEFbLbX/YKAj3DSdObrXiNZqatfS0Jua7zI=; b=FYn4hwSpEuOilEdCBBO5pK+Dr7SBo9camIrKKR6KPI+Ifg3hig8lIse9ye+b/nArQr 9Zd8PNwV508POoOROfdFSP2oQulHVASaImPUeWGdSm5Gvo3gdZJn+G/loZ19hEdA/gr0 TMxiI9ThGsu+IKClhlTUeXDhCpcUuNbBtQ+MM0dpjExCEVdSxkXS+H4II2HgO8Tw3DUc LLk/K9LORu3KFwqsIrNkz3jFvAl4//y9/pad8Xm+uhWToGe8AElm3gMTiJy6g1OQQiNU EoIpiY5lyrqozPvuHipSuYrh9ZutOcLVjED99jYlAtNo42XOHNNt/q1eYIp0ivqmB+Sd xdWw== X-Gm-Message-State: AOAM533mQ9nEzEQ+blvbJDGfJ7DjRzB2kamwm4FG1ub49EoRRWP4VKXF Y1XFn59/hjgur8GPyDoiyfwvCQ== X-Google-Smtp-Source: ABdhPJygRuivr6xh5SCiIo7L56Q3OM2zX4mWulYjQb/ksHwsGvx7utNZafvMKktOX/LmC/jiG8y5Tw== X-Received: by 2002:a05:6a00:15c9:b0:4e1:7b49:bfa9 with SMTP id o9-20020a056a0015c900b004e17b49bfa9mr3580365pfu.33.1645113986742; Thu, 17 Feb 2022 08:06:26 -0800 (PST) Received: from srikanth-ThinkPad-T450.. ([49.37.144.122]) by smtp.gmail.com with ESMTPSA id z14sm47807pfh.173.2022.02.17.08.06.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 08:06:26 -0800 (PST) From: Srikanth Kaka <srikanth.k@oneconvergence.com> To: sthemmin@microsoft.com, longli@microsoft.com Cc: dev@dpdk.org, vag.singh@oneconvergence.com, avelu@juniper.net, Srikanth Kaka <srikanth.k@oneconvergence.com> Subject: [PATCH v3 00/15] add FreeBSD support to VMBUS & NetVSC PMDs Date: Thu, 17 Feb 2022 21:35:58 +0530 Message-Id: <20220217160613.70161-1-srikanth.k@oneconvergence.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210927134231.11177-1-srikanth.k@oneconvergence.com> References: <20210927134231.11177-1-srikanth.k@oneconvergence.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Thu, 17 Feb 2022 17:10:51 +0100 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Message
Srikanth Kaka
Feb. 17, 2022, 4:05 p.m. UTC
This patch series adds support to VMBUS & NetVSC PMDs run on FreeBSD Changelog: v3: - split the patches into further logical parts - updated docs v2: - replaced strncpy with memcpy - replaced malloc.h with stdlib.h - added comment in linux/vmbus_uio.c v1: Intial release Srikanth Kaka (15): bus/vmbus: scan and get the network device bus/vmbus: handle mapping of device resources bus/vmbus: get device resource values using sysctl bus/vmbus: add resource by index net/netvsc: make event monitor OS dependent bus/vmbus: add ring mapping APIs bus/vmbus: add stub for subchannel support API bus/vmbus: open subchannels net/netvsc: make IOCTL call to open subchannels bus/vmbus: get subchannel info net/netvsc: moving hotplug retry to OS dir bus/vmbus: add meson support for FreeBSD net/netvsc: add meson support for FreeBSD bus/vmbus: add APIs to mask/unmask IRQs bus/vmbus: update MAINTAINERS and docs MAINTAINERS | 2 + doc/guides/nics/netvsc.rst | 11 + drivers/bus/vmbus/freebsd/vmbus_bus.c | 282 ++++++++++++++++ drivers/bus/vmbus/freebsd/vmbus_uio.c | 449 +++++++++++++++++++++++++ drivers/bus/vmbus/linux/vmbus_uio.c | 12 + drivers/bus/vmbus/meson.build | 6 +- drivers/bus/vmbus/private.h | 1 + drivers/bus/vmbus/rte_bus_vmbus.h | 10 + drivers/bus/vmbus/version.map | 1 + drivers/bus/vmbus/vmbus_channel.c | 5 + drivers/net/netvsc/freebsd/hn_os.c | 22 ++ drivers/net/netvsc/freebsd/meson.build | 6 + drivers/net/netvsc/hn_ethdev.c | 95 +----- drivers/net/netvsc/hn_os.h | 8 + drivers/net/netvsc/linux/hn_os.c | 111 ++++++ drivers/net/netvsc/linux/meson.build | 6 + drivers/net/netvsc/meson.build | 3 + 17 files changed, 941 insertions(+), 89 deletions(-) create mode 100644 drivers/bus/vmbus/freebsd/vmbus_bus.c create mode 100644 drivers/bus/vmbus/freebsd/vmbus_uio.c create mode 100644 drivers/net/netvsc/freebsd/hn_os.c create mode 100644 drivers/net/netvsc/freebsd/meson.build create mode 100644 drivers/net/netvsc/hn_os.h create mode 100644 drivers/net/netvsc/linux/hn_os.c create mode 100644 drivers/net/netvsc/linux/meson.build