Re: [PATCH net-next] net: mana: Enable debugfs files for MANA device

2024-10-03 Thread Jakub Kicinski
On Mon, 30 Sep 2024 20:40:41 -0700 Shradha Gupta wrote: > @@ -1516,6 +1519,13 @@ static int mana_gd_probe(struct pci_dev *pdev, const > struct pci_device_id *ent) > gc->bar0_va = bar0_va; > gc->dev = &pdev->dev; > > + if (gc->is_pf) { > + gc->mana_pci_debugfs = debugf

[PATCH 3/5] hyperv: Add new Hyper-V headers

2024-10-03 Thread Nuno Das Neves
Add definitions needed for privileged Hyper-V partitions. These files are derived from headers exported from the hypervisor code. This is a step toward importing headers directly, similar to Xen public files in include/xen/interface/. Signed-off-by: Nuno Das Neves --- include/hyperv/hvgdk.h

[PATCH 5/5] hyperv: Use hvhdk.h instead of hyperv-tlfs.h in Hyper-V code

2024-10-03 Thread Nuno Das Neves
To move toward importing headers from Hyper-V directly, switch to using hvhdk.h in all Hyper-V code. KVM code that uses Hyper-V definitions from hyperv-tlfs.h remains untouched. Add HYPERV_NONTLFS_HEADERS everywhere mshyperv.h, asm/svm.h, clocksource/hyperv_timer.h is included in Hyper-V code. Re

[PATCH 2/5] hyperv: Remove unnecessary #includes

2024-10-03 Thread Nuno Das Neves
asm/hyperv-tlfs.h is already included implicitly wherever mshyperv.h or linux/hyperv.h is included. Remove those redundancies. Remove includes of linux/hyperv.h and mshyperv.h where they are not needed. Signed-off-by: Nuno Das Neves --- arch/arm64/hyperv/hv_core.c| 2 -- arch/x86/hyperv

[PATCH 0/5] Add new headers for Hyper-V Dom0

2024-10-03 Thread Nuno Das Neves
To support Hyper-V Dom0 (aka Linux as root partition), many new definitions are required. The plan going forward is to directly import headers from Hyper-V. This is a more maintainable way to import definitions rather than via the TLFS doc. This patch series introduces new headers (hvhdk.h, hvgdk.

[PATCH 4/5] hyperv: Add hv_defs.h to conditionally include hyperv-tlfs.h or hvhdk.h

2024-10-03 Thread Nuno Das Neves
Include one or the other depending on whether HYPERV_NONTLFS_HEADERS is defined. This will allow Hyper-V code to use the new headers while other code can continue using hyperv-tlfs.h which is only for Hyper-V guests. Replace hyperv-tlfs.h in shared headers with hv_defs.h These headers are shared

[PATCH 1/5] hyperv: Move hv_connection_id to hyperv-tlfs.h

2024-10-03 Thread Nuno Das Neves
This definition is in the wrong file; it is part of the TLFS doc. Signed-off-by: Nuno Das Neves --- include/asm-generic/hyperv-tlfs.h | 9 + include/linux/hyperv.h| 9 - 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/asm-generic/hyperv-tlfs.h

RE: [PATCH net] hv_netvsc: Fix VF namespace also in netvsc_open

2024-10-03 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger > Sent: Thursday, October 3, 2024 11:49 AM > To: Paolo Abeni > Cc: Haiyang Zhang ; linux-hyperv@vger.kernel.org; > net...@vger.kernel.org; KY Srinivasan ; > wei@kernel.org; Dexuan Cui ; > eduma...@google.com; k...@kernel.org; da...@dav

Re: [PATCH net] hv_netvsc: Fix VF namespace also in netvsc_open

2024-10-03 Thread Stephen Hemminger
On Thu, 3 Oct 2024 11:34:49 +0200 Paolo Abeni wrote: > On 9/27/24 22:54, Haiyang Zhang wrote: > > The existing code moves VF to the same namespace as the synthetic device > > during netvsc_register_vf(). But, if the synthetic device is moved to a > > new namespace after the VF registration, the V

RE: [PATCH net] hv_netvsc: Fix VF namespace also in netvsc_open

2024-10-03 Thread Haiyang Zhang
> -Original Message- > From: Paolo Abeni > Sent: Thursday, October 3, 2024 5:35 AM > To: Haiyang Zhang ; linux-hyperv@vger.kernel.org; > net...@vger.kernel.org > Cc: KY Srinivasan ; wei@kernel.org; Dexuan Cui > ; eduma...@google.com; k...@kernel.org; > step...@networkplumber.org; da.

Re: [PATCH net-next v2] net: mana: Add get_link and get_link_ksettings in ethtool

2024-10-03 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (main) by Paolo Abeni : On Sun, 29 Sep 2024 22:42:14 -0700 you wrote: > Add support for the ethtool get_link and get_link_ksettings > operations. Display standard port information using ethtool. > > Before the change: > $ethtool enP30832s1 > >

Re: [PATCH net-next RESEND] net: mana: Increase the DEF_RX_BUFFERS_PER_QUEUE to 1024

2024-10-03 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (main) by Paolo Abeni : On Sun, 29 Sep 2024 20:44:35 -0700 you wrote: > Through some experiments, we found out that increasing the default > RX buffers count from 512 to 1024, gives slightly better throughput > and significantly reduces the no_

Re: [PATCH net] hv_netvsc: Fix VF namespace also in netvsc_open

2024-10-03 Thread Paolo Abeni
On 9/27/24 22:54, Haiyang Zhang wrote: The existing code moves VF to the same namespace as the synthetic device during netvsc_register_vf(). But, if the synthetic device is moved to a new namespace after the VF registration, the VF won't be moved together. To make the behavior more consistent, a