[v4,00/14] add FreeBSD support to VMBUS & NetVSC PMDs
Message ID | 20220418042915.5765-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 D90C4A00BE; Tue, 19 Apr 2022 11:33:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7A674427EA; Tue, 19 Apr 2022 11:33:39 +0200 (CEST) Received: from mail-pj1-f67.google.com (mail-pj1-f67.google.com [209.85.216.67]) by mails.dpdk.org (Postfix) with ESMTP id 1DA6B40141 for <dev@dpdk.org>; Mon, 18 Apr 2022 06:29:29 +0200 (CEST) Received: by mail-pj1-f67.google.com with SMTP id bg24so12076868pjb.1 for <dev@dpdk.org>; Sun, 17 Apr 2022 21:29:29 -0700 (PDT) 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=3VOKy+5VLRnyRtPGvcj0EGLbFuAj2L3L9dQK8ijErJY=; b=O1o6kN/yYqsYWKeJloSqtXfXtQUMOv9UgoI3vLlaP2nrmcpIbPyOgKRJA0A5O2zTLr laXQPPa3/DYxWQAewC6DaBmvVtaphdLjSZvOMq9A9/P9GhC1y9gxjeRZ5gkUbpCabTcj o2h42fc/ncfiCIwqAlPL3XEQ/Uf6VK3EYrNi4= 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=3VOKy+5VLRnyRtPGvcj0EGLbFuAj2L3L9dQK8ijErJY=; b=CdPWwpl2DEaYlbkajaAonVU5NGBd6DJ5Thvr6kfI0avzqhYVFpGeq5Ka/cMij4yanp gwAM5BTHimhmseUKqRo6xc8egnTwT+BSLie++4rCCP4NLuxAVOMyR5wFV9M6DfjWP9nf HMpLVk0EOdcYeEZAuywzPMLPFpqI2roLsO6HUyrFhLqelC2M3AMM30YJS4rjwbjv9fna PFMuHrgVm85tLHHuXmeJ5tO6RFweE8JXANbd83Rq5gy1WNjw4Iu730VpDQV629SKNCi+ GXUk9z1JGw9+/YR7NZFAAZZOzuoclaWxerI49S3IWRme5bS5hbeNudAvvtTcEFo21NFO 5sPA== X-Gm-Message-State: AOAM531IR56Wl/qiBFs0eNZwPDJEtjoGJXxHEgXCwRLjC3Hhalzjrf49 Tf7rx3pYT4IY3ZCeFvk3vPyCjw== X-Google-Smtp-Source: ABdhPJyHwCrHHYdoMvizh+r0Sc1X96UZaRfXpIa9NuIFbzlwf8RguTrQxcVVYgReZmyINxELpaxmYA== X-Received: by 2002:a17:902:f70b:b0:14d:643d:9c99 with SMTP id h11-20020a170902f70b00b0014d643d9c99mr9483475plo.18.1650256168987; Sun, 17 Apr 2022 21:29:28 -0700 (PDT) Received: from srikanth-ThinkPad-T450.. ([49.37.158.191]) by smtp.gmail.com with ESMTPSA id e14-20020aa78c4e000000b00506475da4cesm10377577pfd.49.2022.04.17.21.29.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Apr 2022 21:29:28 -0700 (PDT) From: Srikanth Kaka <srikanth.k@oneconvergence.com> To: Stephen Hemminger <sthemmin@microsoft.com>, Long Li <longli@microsoft.com> Cc: dev@dpdk.org, Vag Singh <vag.singh@oneconvergence.com>, Anand Thulasiram <avelu@juniper.net>, Srikanth Kaka <srikanth.k@oneconvergence.com> Subject: [PATCH v4 00/14] add FreeBSD support to VMBUS & NetVSC PMDs Date: Mon, 18 Apr 2022 09:59:01 +0530 Message-Id: <20220418042915.5765-1-srikanth.k@oneconvergence.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220217160613.70161-16-srikanth.k@oneconvergence.com> References: <20220217160613.70161-16-srikanth.k@oneconvergence.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Tue, 19 Apr 2022 11:33:36 +0200 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
April 18, 2022, 4:29 a.m. UTC
This patchset requires FreeBSD VMBus kernel changes and HV_UIO driver. Both are currently under review at https://reviews.freebsd.org/D32184 Changelog: v4: - moved OS independent code out of Linux 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 (14): bus/vmbus: move independent code from Linux bus/vmbus: move independent bus functions bus/vmbus: move OS independent UIO functions bus/vmbus: scan and get the network device on FreeBSD bus/vmbus: handle mapping of device resources bus/vmbus: get device resource values using sysctl net/netvsc: make event monitor OS dependent bus/vmbus: add sub-channel mapping support 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 bus/vmbus: update MAINTAINERS and docs MAINTAINERS | 2 + doc/guides/nics/netvsc.rst | 11 + drivers/bus/vmbus/freebsd/vmbus_bus.c | 286 ++++++++++++++++++++++ drivers/bus/vmbus/freebsd/vmbus_uio.c | 256 ++++++++++++++++++++ drivers/bus/vmbus/linux/vmbus_bus.c | 28 +-- drivers/bus/vmbus/linux/vmbus_uio.c | 320 +++---------------------- drivers/bus/vmbus/meson.build | 12 +- drivers/bus/vmbus/osi/vmbus_osi.h | 27 +++ drivers/bus/vmbus/osi/vmbus_osi_bus.c | 37 +++ drivers/bus/vmbus/osi/vmbus_osi_uio.c | 310 ++++++++++++++++++++++++ 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 | 21 ++ 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 + 21 files changed, 1158 insertions(+), 398 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/bus/vmbus/osi/vmbus_osi.h create mode 100644 drivers/bus/vmbus/osi/vmbus_osi_bus.c create mode 100644 drivers/bus/vmbus/osi/vmbus_osi_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