Re: [RFC net-next 3/3] drivers/vdpa: add NFP devices vDPA driver

2024-08-05 Thread Louis Peens
On Tue, Aug 06, 2024 at 12:35:44PM +0800, Jason Wang wrote: > On Fri, Aug 2, 2024 at 6:00 PM Louis Peens wrote: > > > > From: Kyle Xu > > > > Add a new kernel module ‘nfp_vdpa’ for the NFP vDPA networking driver. > > > > The vDPA driver initializes the necessary resources on the VF and the > > da

Re: [RFC net-next 3/3] drivers/vdpa: add NFP devices vDPA driver

2024-08-05 Thread Jason Wang
On Fri, Aug 2, 2024 at 6:00 PM Louis Peens wrote: > > From: Kyle Xu > > Add a new kernel module ‘nfp_vdpa’ for the NFP vDPA networking driver. > > The vDPA driver initializes the necessary resources on the VF and the > data path will be offloaded. It also implements the ‘vdpa_config_ops’ > and th

[PATCH net-next V6 3/4] virtio-net: synchronize operstate with admin state on up/down

2024-08-05 Thread Jason Wang
This patch synchronizes operstate with admin state per RFC2863. This is done by trying to toggle the carrier upon open/close and synchronize with the config change work. This allows to propagate status correctly to stacked devices like: ip link add link enp0s3 macvlan0 type macvlan ip link set li

[PATCH net-next V6 4/4] virtio-net: synchronize probe with ndo_set_features

2024-08-05 Thread Jason Wang
We calculate guest offloads during probe without the protection of rtnl_lock. This lead to race between probe and ndo_set_features. Fix this by moving the calculation under the rtnl_lock. Signed-off-by: Jason Wang --- drivers/net/virtio_net.c | 10 +- 1 file changed, 5 insertions(+), 5 d

[PATCH net-next V6 2/4] virtio: allow driver to disable the configure change notification

2024-08-05 Thread Jason Wang
Sometime, it would be useful to disable the configure change notification from the driver. So this patch allows this by introducing a variable config_change_driver_disabled and only allow the configure change notification callback to be triggered when it is allowed by both the virtio core and the d

[PATCH net-next V6 1/4] virtio: rename virtio_config_enabled to virtio_config_core_enabled

2024-08-05 Thread Jason Wang
Following patch will allow the config interrupt to be disabled by a specific driver via another boolean. So this patch renames virtio_config_enabled and relevant helpers to virtio_config_core_enabled. Cc: Venkat Venkatsubra Cc: Gia-Khanh Nguyen Signed-off-by: Jason Wang --- drivers/virtio/virt

[PATCH net-next V6 0/4] virtio-net: synchronize op/admin state

2024-08-05 Thread Jason Wang
Hi All: This series tries to synchronize the operstate with the admin state which allows the lower virtio-net to propagate the link status to the upper devices like macvlan. This is done by toggling carrier during ndo_open/stop while doing other necessary serialization about the carrier settings