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 117C0A00C4; Tue, 26 Apr 2022 10:32:52 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 53843427FD; Tue, 26 Apr 2022 10:32:38 +0200 (CEST) Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by mails.dpdk.org (Postfix) with ESMTP id 768414003F for ; Sat, 23 Apr 2022 06:29:47 +0200 (CEST) Received: by mail-pf1-f193.google.com with SMTP id y14so9029020pfe.10 for ; Fri, 22 Apr 2022 21:29:47 -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=cuUNvDcu+Z5uwCsEzxRJ6pmq/+CqTEiBCUGSMw3np1A=; b=QYV6cKFHMrX6ED1u6PtGEzKBZgOUBfmAs2dQ2NEvOdggZU96RPuBChJVW98N/XKZiu GnlWmqFdgPJgpGDIvx+dvKTnCaXrZ5Clz/wpFJZaMUlWAChacWGjfHoSgDBgqxik6qhW esjX1C11IA8mSmV+NV4neesGpiDuBkuKBTS9M= 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=cuUNvDcu+Z5uwCsEzxRJ6pmq/+CqTEiBCUGSMw3np1A=; b=A1ueuCM7w45Rs8KHeTc6v/fredodn1rL4LGhzDXo3E15ox+mqJ2oJwD6I9b0HI3e+f xPTMeoQ0Ikdvn0Cpv01USjaUHHvql3zlFWyUf5E5kFhyPZtbZ4564BQ1zCSd6L64PfLB 9Owy+1gC+q3XSRW3E+BXhKaE6jog15SueKbZYQGxCioh4olNiY8vnMaFlMJ8A9cpdFfu RDFIAMObkaypMnjTMsZ4BY2wQBAzyNMCXux7dx/bTomQGYGILTKNTMgw6pD4ItEdK4/R dFqfQdQZTgG1RY0aDjhTwuHfNEbZ56d6fvCvZo1T/4kECmkio0EFek/S1Ao6Lk8sCh8N 67/w== X-Gm-Message-State: AOAM53373R/ch73cbOQJmHw/XjPvOujENfXV9jDmGuhsJloPyrWGQDth 2Qx/hNp9RpTzMniXBISyRt5EQw== X-Google-Smtp-Source: ABdhPJzPFplJ1Jvd4tf8E08xQvizb4CITsvw/0xOOMnQjX33HWgmA5ocn+p6VmyG1+zfAxC/QYq3fg== X-Received: by 2002:a63:b20a:0:b0:398:9e3e:d581 with SMTP id x10-20020a63b20a000000b003989e3ed581mr6853387pge.236.1650688186455; Fri, 22 Apr 2022 21:29:46 -0700 (PDT) Received: from home-desktop.localdomain ([49.37.158.191]) by smtp.gmail.com with ESMTPSA id g6-20020a17090a714600b001d7f3bb11d7sm4056438pjs.53.2022.04.22.21.29.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 21:29:45 -0700 (PDT) From: Srikanth Kaka To: Stephen Hemminger , Long Li Cc: dev@dpdk.org, Vag Singh , Anand Thulasiram , Srikanth Kaka Subject: [PATCH v5 00/14] add FreeBSD support to VMBUS & NetVSC PMDs Date: Sat, 23 Apr 2022 09:58:35 +0530 Message-Id: <20220423042849.7718-1-srikanth.k@oneconvergence.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220418042915.5765-1-srikanth.k@oneconvergence.com> References: <20220418042915.5765-1-srikanth.k@oneconvergence.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Tue, 26 Apr 2022 10:32:34 +0200 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 This patchset requires FreeBSD VMBus kernel changes and HV_UIO driver. Both are currently under review at https://reviews.freebsd.org/D32184 Changelog: v5: - renamed dir osi to unix - marked a newly added API as experimental - removed camel case variables 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/private.h | 1 + drivers/bus/vmbus/rte_bus_vmbus.h | 11 ++ drivers/bus/vmbus/unix/vmbus_unix.h | 27 +++ drivers/bus/vmbus/unix/vmbus_unix_bus.c | 37 ++++ drivers/bus/vmbus/unix/vmbus_unix_uio.c | 310 +++++++++++++++++++++++++++++++ drivers/bus/vmbus/version.map | 6 + 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, 1164 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/unix/vmbus_unix.h create mode 100644 drivers/bus/vmbus/unix/vmbus_unix_bus.c create mode 100644 drivers/bus/vmbus/unix/vmbus_unix_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 -- 1.8.3.1