[PATCH net-next v1 2/4] virtio_net: big mode skip the unmap check

2024-10-29 Thread Xuan Zhuo
The virtio-net big mode did not enable premapped mode, so we did not need to check the unmap. And the subsequent commit will remove the failover code for failing enable premapped for merge and small mode. So we need to remove the checking do_dma code in the big mode path. Tested-by: Darren Kenny

[PATCH 3/5] virtio_net: big mode skip the unmap check

2024-10-13 Thread Xuan Zhuo
The virtio-net big mode did not enable premapped mode, so we did not need to check the unmap. And the subsequent commit will remove the failover code for failing enable premapped for merge and small mode. So we need to remove the checking do_dma code in the big mode path. Signed-off-by: Xuan Zhuo

[PATCH 2/3] Revert "virtio_net: big mode skip the unmap check"

2024-09-06 Thread Xuan Zhuo
This reverts commit a377ae542d8d0a20a3173da3bbba72e045bea7a9. Signed-off-by: Xuan Zhuo --- drivers/net/virtio_net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 36a7781979b7..b68e64e8c7b6 100644 --- a/drivers/ne

Re: [PATCH net v4 1/2] virtio-net: check feature before configuring the vq coalescing command

2024-08-01 Thread Jason Wang
t; So we add the feature negotiation check to > virtnet_send_{r,t}x_ctrl_coal_vq_cmd as a basis for the next bugfix patch. > > Suggested-by: Michael S. Tsirkin > Signed-off-by: Heng Qi > --- Acked-by: Jason Wang Thanks

[PATCH net v4 1/2] virtio-net: check feature before configuring the vq coalescing command

2024-08-01 Thread Heng Qi
Virtio spec says: The driver MUST have negotiated the VIRTIO_NET_F_VQ_NOTF_COAL feature when issuing commands VIRTIO_NET_CTRL_NOTF_COAL_VQ_SET and VIRTIO_NET_CTRL_NOTF_COAL_VQ_GET. So we add the feature negotiation check to virtnet_send_{r,t}x_ctrl_coal_vq_cmd as a basis

[PATCH net v3 1/2] virtio-net: check feature before configuring the vq coalescing command

2024-08-01 Thread Heng Qi
Virtio spec says: The driver MUST have negotiated the VIRTIO_NET_F_VQ_NOTF_COAL feature when issuing commands VIRTIO_NET_CTRL_NOTF_COAL_VQ_SET and VIRTIO_NET_CTRL_NOTF_COAL_VQ_GET. So we add the feature negotiation check to virtnet_send_{r,t}x_ctrl_coal_vq_cmd as a basis

[PATCH net-next v5 2/4] virtio_net: big mode skip the unmap check

2024-05-10 Thread Xuan Zhuo
The virtio-net big mode did not enable premapped mode, so we did not need to check the unmap. And the subsequent commit will remove the failover code for failing enable premapped for merge and small mode. So we need to remove the checking do_dma code in the big mode path. Signed-off-by: Xuan Zhuo

[PATCH net-next v4 2/4] virtio_net: big mode skip the unmap check

2024-05-07 Thread Xuan Zhuo
The virtio-net big mode did not enable premapped mode, so we did not need to check the unmap. And the subsequent commit will remove the failover code for failing enable premapped for merge and small mode. So we need to remove the checking do_dma code in the big mode path. Signed-off-by: Xuan Zhuo

Re: [PATCH vhost v3 2/4] virtio_net: big mode skip the unmap check

2024-04-24 Thread Jason Wang
On Thu, Apr 25, 2024 at 10:37 AM Xuan Zhuo wrote: > > On Thu, 25 Apr 2024 10:11:55 +0800, Jason Wang wrote: > > On Wed, Apr 24, 2024 at 4:17 PM Xuan Zhuo > > wrote: > > > > > > The virtio-net big mode did not enable premapped mode, > > > s

Re: [PATCH vhost v3 2/4] virtio_net: big mode skip the unmap check

2024-04-24 Thread Xuan Zhuo
On Thu, 25 Apr 2024 10:11:55 +0800, Jason Wang wrote: > On Wed, Apr 24, 2024 at 4:17 PM Xuan Zhuo wrote: > > > > The virtio-net big mode did not enable premapped mode, > > so we did not need to check the unmap. And the subsequent > > commit will remove the failo

Re: [PATCH vhost v3 2/4] virtio_net: big mode skip the unmap check

2024-04-24 Thread Jason Wang
On Wed, Apr 24, 2024 at 4:17 PM Xuan Zhuo wrote: > > The virtio-net big mode did not enable premapped mode, > so we did not need to check the unmap. And the subsequent > commit will remove the failover code for failing enable > premapped for merge and small mode. So we need

[PATCH vhost v3 2/4] virtio_net: big mode skip the unmap check

2024-04-24 Thread Xuan Zhuo
The virtio-net big mode did not enable premapped mode, so we did not need to check the unmap. And the subsequent commit will remove the failover code for failing enable premapped for merge and small mode. So we need to remove the checking do_dma code in the big mode path. Signed-off-by: Xuan Zhuo

Re: [patch net-next v4 2/6] selftests: forwarding: move initial root check to the beginning

2024-04-19 Thread Jiri Pirko
Thu, Apr 18, 2024 at 08:48:20PM CEST, benjamin.poir...@gmail.com wrote: >On 2024-04-18 18:08 +0200, Jiri Pirko wrote: >> From: Jiri Pirko >> >> This check can be done at the very beginning of the script. >> As the follow up patch needs to add early code that needs

Re: [patch net-next v4 2/6] selftests: forwarding: move initial root check to the beginning

2024-04-18 Thread Benjamin Poirier
On 2024-04-18 18:08 +0200, Jiri Pirko wrote: > From: Jiri Pirko > > This check can be done at the very beginning of the script. > As the follow up patch needs to add early code that needs to be executed > after the check, move it. > > Signed-off-by: Jiri Pirko > -

Re: [patch net-next v4 2/6] selftests: forwarding: move initial root check to the beginning

2024-04-18 Thread Petr Machata
Jiri Pirko writes: > From: Jiri Pirko > > This check can be done at the very beginning of the script. > As the follow up patch needs to add early code that needs to be executed > after the check, move it. > > Signed-off-by: Jiri Pirko Reviewed-by: Petr Machata

[patch net-next v4 2/6] selftests: forwarding: move initial root check to the beginning

2024-04-18 Thread Jiri Pirko
From: Jiri Pirko This check can be done at the very beginning of the script. As the follow up patch needs to add early code that needs to be executed after the check, move it. Signed-off-by: Jiri Pirko --- v3->v4: - removed NUM_NETIFS mode, rephrased the patch subject and descript

Re: [patch net-next v3 2/6] selftests: forwarding: move couple of initial check to the beginning

2024-04-17 Thread Jiri Pirko
Wed, Apr 17, 2024 at 08:58:27PM CEST, benjamin.poir...@gmail.com wrote: >On 2024-04-17 18:45 +0200, Jiri Pirko wrote: >> From: Jiri Pirko >> >> These two check can be done at he very beginning of the script. >> As the follow up patch needs to add early code that needs

Re: [patch net-next v3 2/6] selftests: forwarding: move couple of initial check to the beginning

2024-04-17 Thread Benjamin Poirier
On 2024-04-17 18:45 +0200, Jiri Pirko wrote: > From: Jiri Pirko > > These two check can be done at he very beginning of the script. > As the follow up patch needs to add early code that needs to be executed > after the checks, move them. > > Signed-off-by: Jiri Pirko &

[patch net-next v3 2/6] selftests: forwarding: move couple of initial check to the beginning

2024-04-17 Thread Jiri Pirko
From: Jiri Pirko These two check can be done at he very beginning of the script. As the follow up patch needs to add early code that needs to be executed after the checks, move them. Signed-off-by: Jiri Pirko --- tools/testing/selftests/net/forwarding/lib.sh | 15 ++- 1 file

[patch net-next v2 2/6] selftests: forwarding: move couple of initial check to the beginning

2024-04-15 Thread Jiri Pirko
From: Jiri Pirko These two check can be done at he very beginning of the script. As the follow up patch needs to add early code that needs to be executed after the checks, move them. Signed-off-by: Jiri Pirko --- tools/testing/selftests/net/forwarding/lib.sh | 20 +-- 1 file

[patch net-next 2/6] selftests: forwarding: move couple of initial check to the beginning

2024-04-12 Thread Jiri Pirko
From: Jiri Pirko These two check can be done at he very beginning of the script. As the follow up patch needs to add early code that needs to be executed after the checks, move them. Signed-off-by: Jiri Pirko --- tools/testing/selftests/net/forwarding/lib.sh | 20 +-- 1 file

Re: [PATCH vhost v6 02/10] virtio_ring: packed: remove double check of the unmap ops

2024-03-28 Thread Jason Wang
it is > > > > > INDIRECT. > > > > > > > > > > These two functions are usually called in a loop, and we should put > > > > > the > > > > > check outside the loop. > > > > > > > > > > And we unmap the desc

Re: [PATCH vhost v6 02/10] virtio_ring: packed: remove double check of the unmap ops

2024-03-28 Thread Xuan Zhuo
; > > In the functions vring_unmap_extra_packed and vring_unmap_desc_packed, > > > > multiple checks are made whether unmap is performed and whether it is > > > > INDIRECT. > > > > > > > > These two functions are usually called in

Re: [PATCH vhost v6 02/10] virtio_ring: packed: remove double check of the unmap ops

2024-03-28 Thread Jason Wang
gt; multiple checks are made whether unmap is performed and whether it is > > > INDIRECT. > > > > > > These two functions are usually called in a loop, and we should put the > > > check outside the loop. > > > > > > And we unmap the descs with

Re: [PATCH vhost v6 02/10] virtio_ring: packed: remove double check of the unmap ops

2024-03-28 Thread Xuan Zhuo
INDIRECT. > > > > These two functions are usually called in a loop, and we should put the > > check outside the loop. > > > > And we unmap the descs with VRING_DESC_F_INDIRECT on the same path with > > other descs, that make the thing more complex. If we distinguish th

Re: [PATCH vhost v6 02/10] virtio_ring: packed: remove double check of the unmap ops

2024-03-27 Thread Jason Wang
On Wed, Mar 27, 2024 at 7:14 PM Xuan Zhuo wrote: > > In the functions vring_unmap_extra_packed and vring_unmap_desc_packed, > multiple checks are made whether unmap is performed and whether it is > INDIRECT. > > These two functions are usually called in a loop, and we shou

[PATCH vhost v6 04/10] virtio_ring: split: remove double check of the unmap ops

2024-03-27 Thread Xuan Zhuo
In the functions vring_unmap_one_split and vring_unmap_one_split_indirect, multiple checks are made whether unmap is performed and whether it is INDIRECT. These two functions are usually called in a loop, and we should put the check outside the loop. And we unmap the descs with

[PATCH vhost v6 02/10] virtio_ring: packed: remove double check of the unmap ops

2024-03-27 Thread Xuan Zhuo
In the functions vring_unmap_extra_packed and vring_unmap_desc_packed, multiple checks are made whether unmap is performed and whether it is INDIRECT. These two functions are usually called in a loop, and we should put the check outside the loop. And we unmap the descs with VRING_DESC_F_INDIRECT

Re: [PATCH vhost v4 02/10] virtio_ring: packed: remove double check of the unmap ops

2024-03-27 Thread Xuan Zhuo
ote: > > > > > > > > In the functions vring_unmap_extra_packed and vring_unmap_desc_packed, > > > > multiple checks are made whether unmap is performed and whether it is > > > > INDIRECT. > > > > > > > > These two functions are usually called

Re: [PATCH vhost v4 02/10] virtio_ring: packed: remove double check of the unmap ops

2024-03-26 Thread Michael S. Tsirkin
> > multiple checks are made whether unmap is performed and whether it is > > > INDIRECT. > > > > > > These two functions are usually called in a loop, and we should put the > > > check outside the loop. > > > > > > And we unmap the de

[PATCH vhost v5 02/10] virtio_ring: packed: remove double check of the unmap ops

2024-03-25 Thread Xuan Zhuo
In the functions vring_unmap_extra_packed and vring_unmap_desc_packed, multiple checks are made whether unmap is performed and whether it is INDIRECT. These two functions are usually called in a loop, and we should put the check outside the loop. And we unmap the descs with VRING_DESC_F_INDIRECT

[PATCH vhost v5 04/10] virtio_ring: split: remove double check of the unmap ops

2024-03-25 Thread Xuan Zhuo
In the functions vring_unmap_one_split and vring_unmap_one_split_indirect, multiple checks are made whether unmap is performed and whether it is INDIRECT. These two functions are usually called in a loop, and we should put the check outside the loop. And we unmap the descs with

Re: [PATCH vhost v4 02/10] virtio_ring: packed: remove double check of the unmap ops

2024-03-21 Thread Jason Wang
; > multiple checks are made whether unmap is performed and whether it is > > > INDIRECT. > > > > > > These two functions are usually called in a loop, and we should put the > > > check outside the loop. > > > > > > And we unmap the descs with

Re: [PATCH vhost v4 02/10] virtio_ring: packed: remove double check of the unmap ops

2024-03-21 Thread Xuan Zhuo
INDIRECT. > > > > These two functions are usually called in a loop, and we should put the > > check outside the loop. > > > > And we unmap the descs with VRING_DESC_F_INDIRECT on the same path with > > other descs, that make the thing more complex. If we distinguish th

Re: [PATCH vhost v4 02/10] virtio_ring: packed: remove double check of the unmap ops

2024-03-20 Thread Jason Wang
On Tue, Mar 12, 2024 at 11:36 AM Xuan Zhuo wrote: > > In the functions vring_unmap_extra_packed and vring_unmap_desc_packed, > multiple checks are made whether unmap is performed and whether it is > INDIRECT. > > These two functions are usually called in a loop, and we shou

[PATCH vhost v4 02/10] virtio_ring: packed: remove double check of the unmap ops

2024-03-11 Thread Xuan Zhuo
In the functions vring_unmap_extra_packed and vring_unmap_desc_packed, multiple checks are made whether unmap is performed and whether it is INDIRECT. These two functions are usually called in a loop, and we should put the check outside the loop. And we unmap the descs with VRING_DESC_F_INDIRECT

[PATCH vhost v4 04/10] virtio_ring: split: remove double check of the unmap ops

2024-03-11 Thread Xuan Zhuo
In the functions vring_unmap_one_split and vring_unmap_one_split_indirect, multiple checks are made whether unmap is performed and whether it is INDIRECT. These two functions are usually called in a loop, and we should put the check outside the loop. And we unmap the descs with

RE: [Intel-wired-lan] [PATCH V2 net] ice: Re-organizes reqstd/avail {R, T}XQ check/code for efficiency+readability

2021-04-20 Thread Salil Mehta
> Cc: salil.me...@huawei.com; linux...@openeuler.org; > > netdev@vger.kernel.org; linux...@huawei.com; linux- > > ker...@vger.kernel.org; Jeff Kirsher ; intel- > > wired-...@lists.osuosl.org > > Subject: [Intel-wired-lan] [PATCH V2 net] ice: Re-organizes reqstd/avail {R, > > T}XQ

RE: [Intel-wired-lan] [PATCH V2 net] ice: Re-organizes reqstd/avail {R, T}XQ check/code for efficiency+readability

2021-04-20 Thread Brelinski, TonyX
; ker...@vger.kernel.org; Jeff Kirsher ; intel- > wired-...@lists.osuosl.org > Subject: [Intel-wired-lan] [PATCH V2 net] ice: Re-organizes reqstd/avail {R, > T}XQ check/code for efficiency+readability > > If user has explicitly requested the number of {R,T}XQs, then it is > unneces

Re: [PATCH] SUNRPC: Add a check for gss_release_msg

2021-04-20 Thread J. Bruce Fields
On Tue, Apr 20, 2021 at 09:15:23AM +0200, Greg KH wrote: > If you look at the code, this is impossible to have happen. > > Please stop submitting known-invalid patches. Your professor is playing > around with the review process in order to achieve a paper in some > strange and bizarre way. > > T

Re: [PATCH net-next 2/6] igb: Add double-check MTA_REGISTER for i210 and i211

2021-04-20 Thread Nguyen, Anthony L
On Fri, 2021-04-16 at 14:12 -0700, Jakub Kicinski wrote: > On Fri, 16 Apr 2021 13:44:56 -0700 Tony Nguyen wrote: > > + bool is_failed; > > + int i; > > + > > + do { > > + is_failed = false; > > + for (i = hw->mac.mta_reg_count - 1; i >= 0; i--) { > > + if

Re: [PATCH] SUNRPC: Add a check for gss_release_msg

2021-04-20 Thread Greg KH
On Tue, Apr 06, 2021 at 07:16:56PM -0500, Aditya Pakki wrote: > In gss_pipe_destroy_msg(), in case of error in msg, gss_release_msg > deletes gss_msg. The patch adds a check to avoid a potential double > free. > > Signed-off-by: Aditya Pakki > --- > net/sunrpc/auth_gss/au

[PATCH AUTOSEL 4.4 3/7] xen-netback: Check for hotplug-status existence before watching

2021-04-19 Thread Sasha Levin
From: Michael Brown [ Upstream commit 2afeec08ab5c86ae21952151f726bfe184f6b23d ] The logic in connect() is currently written with the assumption that xenbus_watch_pathfmt() will return an error for a node that does not exist. This assumption is incorrect: xenstore does allow a watch to be regis

[PATCH AUTOSEL 4.9 4/8] xen-netback: Check for hotplug-status existence before watching

2021-04-19 Thread Sasha Levin
From: Michael Brown [ Upstream commit 2afeec08ab5c86ae21952151f726bfe184f6b23d ] The logic in connect() is currently written with the assumption that xenbus_watch_pathfmt() will return an error for a node that does not exist. This assumption is incorrect: xenstore does allow a watch to be regis

[PATCH AUTOSEL 4.14 06/11] xen-netback: Check for hotplug-status existence before watching

2021-04-19 Thread Sasha Levin
From: Michael Brown [ Upstream commit 2afeec08ab5c86ae21952151f726bfe184f6b23d ] The logic in connect() is currently written with the assumption that xenbus_watch_pathfmt() will return an error for a node that does not exist. This assumption is incorrect: xenstore does allow a watch to be regis

[PATCH AUTOSEL 4.14 04/11] net: geneve: check skb is large enough for IPv4/IPv6 header

2021-04-19 Thread Sasha Levin
From: Phillip Potter [ Upstream commit 6628ddfec7580882f11fdc5c194a8ea781fdadfa ] Check within geneve_xmit_skb/geneve6_xmit_skb that sk_buff structure is large enough to include IPv4 or IPv6 header, and reject if not. The geneve_xmit_skb portion and overall idea was contributed by Eric Dumazet

[PATCH AUTOSEL 4.19 07/12] xen-netback: Check for hotplug-status existence before watching

2021-04-19 Thread Sasha Levin
From: Michael Brown [ Upstream commit 2afeec08ab5c86ae21952151f726bfe184f6b23d ] The logic in connect() is currently written with the assumption that xenbus_watch_pathfmt() will return an error for a node that does not exist. This assumption is incorrect: xenstore does allow a watch to be regis

[PATCH AUTOSEL 4.19 05/12] net: geneve: check skb is large enough for IPv4/IPv6 header

2021-04-19 Thread Sasha Levin
From: Phillip Potter [ Upstream commit 6628ddfec7580882f11fdc5c194a8ea781fdadfa ] Check within geneve_xmit_skb/geneve6_xmit_skb that sk_buff structure is large enough to include IPv4 or IPv6 header, and reject if not. The geneve_xmit_skb portion and overall idea was contributed by Eric Dumazet

[PATCH AUTOSEL 5.4 07/14] xen-netback: Check for hotplug-status existence before watching

2021-04-19 Thread Sasha Levin
From: Michael Brown [ Upstream commit 2afeec08ab5c86ae21952151f726bfe184f6b23d ] The logic in connect() is currently written with the assumption that xenbus_watch_pathfmt() will return an error for a node that does not exist. This assumption is incorrect: xenstore does allow a watch to be regis

[PATCH AUTOSEL 5.4 05/14] net: geneve: check skb is large enough for IPv4/IPv6 header

2021-04-19 Thread Sasha Levin
From: Phillip Potter [ Upstream commit 6628ddfec7580882f11fdc5c194a8ea781fdadfa ] Check within geneve_xmit_skb/geneve6_xmit_skb that sk_buff structure is large enough to include IPv4 or IPv6 header, and reject if not. The geneve_xmit_skb portion and overall idea was contributed by Eric Dumazet

[PATCH AUTOSEL 5.10 13/21] xen-netback: Check for hotplug-status existence before watching

2021-04-19 Thread Sasha Levin
From: Michael Brown [ Upstream commit 2afeec08ab5c86ae21952151f726bfe184f6b23d ] The logic in connect() is currently written with the assumption that xenbus_watch_pathfmt() will return an error for a node that does not exist. This assumption is incorrect: xenstore does allow a watch to be regis

[PATCH AUTOSEL 5.10 09/21] net: geneve: check skb is large enough for IPv4/IPv6 header

2021-04-19 Thread Sasha Levin
From: Phillip Potter [ Upstream commit 6628ddfec7580882f11fdc5c194a8ea781fdadfa ] Check within geneve_xmit_skb/geneve6_xmit_skb that sk_buff structure is large enough to include IPv4 or IPv6 header, and reject if not. The geneve_xmit_skb portion and overall idea was contributed by Eric Dumazet

[PATCH AUTOSEL 5.11 15/23] xen-netback: Check for hotplug-status existence before watching

2021-04-19 Thread Sasha Levin
From: Michael Brown [ Upstream commit 2afeec08ab5c86ae21952151f726bfe184f6b23d ] The logic in connect() is currently written with the assumption that xenbus_watch_pathfmt() will return an error for a node that does not exist. This assumption is incorrect: xenstore does allow a watch to be regis

[PATCH AUTOSEL 5.11 11/23] net: geneve: check skb is large enough for IPv4/IPv6 header

2021-04-19 Thread Sasha Levin
From: Phillip Potter [ Upstream commit 6628ddfec7580882f11fdc5c194a8ea781fdadfa ] Check within geneve_xmit_skb/geneve6_xmit_skb that sk_buff structure is large enough to include IPv4 or IPv6 header, and reject if not. The geneve_xmit_skb portion and overall idea was contributed by Eric Dumazet

Re: [PATCH v8 net-next 1/2] hv_netvsc: Make netvsc/VF binding check both MAC and serial number

2021-04-19 Thread Stephen Hemminger
d has > its unique MAC address) which are backed by the same VF PCI device, so > the binding logic should check both the MAC address and the PCI serial > number. > > The change should not break any other existing VF drivers, because > Hyper-V NIC SR-IOV implementation requires t

[PATCH v2 net] gro: fix napi_gro_frags() Fast GRO breakage due to IP alignment check

2021-04-19 Thread Alexander Lobakin
Commit 38ec4944b593 ("gro: ensure frag0 meets IP header alignment") did the right thing, but missed the fact that napi_gro_frags() logics calls for skb_gro_reset_offset() *before* pulling Ethernet header to the skb linear space. That said, the introduced check for frag0 address being al

Re: [PATCH net] gro: fix napi_gro_frags() Fast GRO breakage due to IP alignment check

2021-04-19 Thread Alexander Lobakin
ro_frags() logics > > calls for skb_gro_reset_offset() *before* pulling Ethernet header > > to the skb linear space. > > That said, the introduced check for frag0 address being aligned to 4 > > always fails for it as Ethernet header is obviously 14 bytes long, > > and in case with NE

[PATCH net] gro: fix napi_gro_frags() Fast GRO breakage due to IP alignment check

2021-04-18 Thread Alexander Lobakin
Commit 38ec4944b593 ("gro: ensure frag0 meets IP header alignment") did the right thing, but missed the fact that napi_gro_frags() logics calls for skb_gro_reset_offset() *before* pulling Ethernet header to the skb linear space. That said, the introduced check for frag0 address being al

Re: [PATCH net-next] veth: check for NAPI instead of xdp_prog before xmit of XDP frame

2021-04-16 Thread patchwork-bot+netdevbpf
ut an XDP program needing to be loaded on the peer > device. However, the patch adding this extra NAPI mode didn't actually > change the check in veth_xdp_xmit() to also look at the new NAPI pointer, > so let's fix that. > > [...] Here is the summary with links: - [net-nex

Re: [PATCH net-next 2/6] igb: Add double-check MTA_REGISTER for i210 and i211

2021-04-16 Thread Jakub Kicinski
On Fri, 16 Apr 2021 13:44:56 -0700 Tony Nguyen wrote: > + bool is_failed; > + int i; > + > + do { > + is_failed = false; > + for (i = hw->mac.mta_reg_count - 1; i >= 0; i--) { > + if (array_rd32(E1000_MTA, i) != hw->mac.mta_shadow[i]) { > +

[PATCH net-next 2/6] igb: Add double-check MTA_REGISTER for i210 and i211

2021-04-16 Thread Tony Nguyen
From: Grzegorz Siwik Add new function which checks MTA_REGISTER if its filled correctly. If not then writes again to same register. There is possibility that i210 and i211 could not accept MTA_REGISTER settings, specially when you add and remove many of multicast addresses in short time. Without

[PATCH v8 net-next 1/2] hv_netvsc: Make netvsc/VF binding check both MAC and serial number

2021-04-16 Thread Dexuan Cui
he binding logic should check both the MAC address and the PCI serial number. The change should not break any other existing VF drivers, because Hyper-V NIC SR-IOV implementation requires the netvsc network interface and the VF network interface have the same MAC address. Co-developed-by: Hai

[net-next 03/14] net/mlx5e: TX, Inline TLS skb check

2021-04-16 Thread Saeed Mahameed
From: Tariq Toukan When TLS is supported and enabled, every transmitted packet is tested to identify if TLS offload is required. Take the early-return condition into an inline function, to save the overhead of a function call for non-TLS packets. Signed-off-by: Tariq Toukan Signed-off-by: Saee

Re: [PATCH net-next] veth: check for NAPI instead of xdp_prog before xmit of XDP frame

2021-04-16 Thread Paolo Abeni
ice. However, the patch adding this extra NAPI mode didn't actually > change the check in veth_xdp_xmit() to also look at the new NAPI pointer, > so let's fix that. > > Fixes: 6788fa154546 ("veth: allow enabling NAPI even without XDP") > Signed-off-by: Toke Høi

Re: [PATCH net-next] veth: check for NAPI instead of xdp_prog before xmit of XDP frame

2021-04-16 Thread Jesper Dangaard Brouer
ice. However, the patch adding this extra NAPI mode didn't actually > change the check in veth_xdp_xmit() to also look at the new NAPI pointer, > so let's fix that. > > Fixes: 6788fa154546 ("veth: allow enabling NAPI even without XDP") > Signed-off-by: Toke Høi

[PATCH net-next] veth: check for NAPI instead of xdp_prog before xmit of XDP frame

2021-04-16 Thread Toke Høiland-Jørgensen
The recent patch that tied enabling of veth NAPI to the GRO flag also has the nice side effect that a veth device can be the target of an XDP_REDIRECT without an XDP program needing to be loaded on the peer device. However, the patch adding this extra NAPI mode didn't actually change the che

RE: [PATCH net v2]bonding: check port and aggregator when select

2021-04-15 Thread liaichun
> > Aichun Li wrote: > > > > >When the network service is repeatedly restarted in 802.3ad, there is > > >a low probability that oops occurs. > > >Test commands:systemctl restart network > > > > > >1.crash: __enable_port():port->slave is NULL > > [...] > > > PC: 00e2fcd0 [ad_agg_sel

Re: [PATCH][next] can: etas_es58x: Fix missing null check on netdev pointer

2021-04-15 Thread Marc Kleine-Budde
t is can potentially be null but the >^^ > Typo: that is can -> that can Fixed. > > > null check is checking netdev and not *netdev as intended. Fix this by > > > adding in the missing * operator. > > > > > > Addresses-Coverity: ("Derefer

Re: [PATCH][next] can: etas_es58x: Fix missing null check on netdev pointer

2021-04-15 Thread Vincent MAILHOL
-> that can > > null check is checking netdev and not *netdev as intended. Fix this by > > adding in the missing * operator. > > > > Addresses-Coverity: ("Dereference before null check") > > Fixes: 8537257874e9 ("can: etas_es58x: add core support for E

Re: [PATCH][next] can: etas_es58x: Fix missing null check on netdev pointer

2021-04-15 Thread Marc Kleine-Budde
On 15.04.2021 09:47:23, Colin King wrote: > From: Colin Ian King > > There is an assignment to *netdev that is can potentially be null but the > null check is checking netdev and not *netdev as intended. Fix this by > adding in the missing * operator. > > Addresses-Co

[PATCH][next] can: etas_es58x: Fix missing null check on netdev pointer

2021-04-15 Thread Colin King
From: Colin Ian King There is an assignment to *netdev that is can potentially be null but the null check is checking netdev and not *netdev as intended. Fix this by adding in the missing * operator. Addresses-Coverity: ("Dereference before null check") Fixes: 8537257874e9 ("

[net 3/3] net/mlx5e: fix ingress_ifindex check in mlx5e_flower_parse_meta

2021-04-14 Thread Saeed Mahameed
From: wenxu In the nft_offload there is the mate flow_dissector with no ingress_ifindex but with ingress_iftype that only be used in the software. So if the mask of ingress_ifindex in meta is 0, this meta check should be bypass. Fixes: 6d65bc64e232 ("net/mlx5e: Add mlx5e_flower_parse

Re: [PATCH] net/mlx5e: fix ingress_ifindex check in mlx5e_flower_parse_meta

2021-04-14 Thread Saeed Mahameed
On Fri, 2021-04-09 at 13:33 +0800, we...@ucloud.cn wrote: > From: wenxu > > In the nft_offload there is the mate flow_dissector with no > ingress_ifindex but with ingress_iftype that only be used > in the software. So if the mask of ingress_ifindex in meta is > 0, this me

Re: [PATCH net-next v4 07/10] virtio-net: virtnet_poll_tx support budget check

2021-04-13 Thread Jason Wang
在 2021/4/13 上午11:15, Xuan Zhuo 写道: virtnet_poll_tx() check the work done like other network card drivers. When work < budget, napi_poll() in dev.c will exit directly. And virtqueue_napi_complete() will be called to close napi. If closing napi fails or there is still data to be proces

[PATCH iproute2] q_cake: remove useless check on argv

2021-04-13 Thread Andrea Claudi
In cake_parse_opt(), *argv is checked not to be null when parsing for overhead and mpu parameters. However this is useless, since *argv matches right before for "overhead" or "mpu". Signed-off-by: Andrea Claudi --- tc/q_cake.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --gi

[PATCH iproute2] devlink: always check strslashrsplit() return value

2021-04-13 Thread Andrea Claudi
strslashrsplit() return value is not checked in __dl_argv_handle(), despite the fact that it can return EINVAL. This commit fix it and make __dl_argv_handle() return error if strslashrsplit() return an error code. Fixes: 2f85a9c53587 ("devlink: allow to parse both devlink and port handle in the

[PATCH V2 net] ice: Re-organizes reqstd/avail {R,T}XQ check/code for efficiency+readability

2021-04-13 Thread Salil Mehta
If user has explicitly requested the number of {R,T}XQs, then it is unnecessary to get the count of already available {R,T}XQs from the PF avail_{r,t}xqs bitmap. This value will get overridden by user specified value in any case. This patch does minor re-organization of the code for improving the

Re: [PATCH] xen-netback: Check for hotplug-status existence before watching

2021-04-13 Thread patchwork-bot+netdevbpf
into Connected state, the > hotplug_status_changed() callback will therefore never be invoked, and > so the backend will remain stuck in InitWait. > > [...] Here is the summary with links: - xen-netback: Check for hotplug-status existence before watching https://git.kernel.org/n

[PATCH net-next 2/3] net: stmmac: dwmac-rk: Check platform-specific ops

2021-04-13 Thread Ezequiel Garcia
From: David Wu Add a check for non-null struct rk_gmac_ops for the configured PHY interface mode, failing if unsupported. Signed-off-by: David Wu [Ezequiel: Refactor so it fails if unsupported] Signed-off-by: Ezequiel Garcia --- .../net/ethernet/stmicro/stmmac/dwmac-rk.c| 31

[PATCH net-next v2 1/3] net: phy: marvell-88x2222: check that link is operational

2021-04-13 Thread Ivan Bornyakov
Some SFP modules uses RX_LOS for link indication. In such cases link will be always up, even without cable connected. RX_LOS changes will trigger link_up()/link_down() upstream operations. Thus, check that SFP link is operational before actual read link status. If there is no SFP cage connected

Re: [PATCH] xen-netback: Check for hotplug-status existence before watching

2021-04-13 Thread Paul Durrant
On 13/04/2021 16:25, Michael Brown wrote: The logic in connect() is currently written with the assumption that xenbus_watch_pathfmt() will return an error for a node that does not exist. This assumption is incorrect: xenstore does allow a watch to be registered for a nonexistent node (and will s

[PATCH] xen-netback: Check for hotplug-status existence before watching

2021-04-13 Thread Michael Brown
The logic in connect() is currently written with the assumption that xenbus_watch_pathfmt() will return an error for a node that does not exist. This assumption is incorrect: xenstore does allow a watch to be registered for a nonexistent node (and will send notifications should the node be subsequ

Re: [PATCH net-next 1/2] net: phy: marvell-88x2222: check that link is operational

2021-04-13 Thread Russell King - ARM Linux admin
Hi Andrew, On Tue, Apr 13, 2021 at 03:12:05PM +0200, Andrew Lunn wrote: > Is there something like this in the marvell10 driver? No, it doesn't seem to be necessary there - I haven't seen spontaneous link-ups with the 88x3310 there. Even if we did, that would cause other issues beyond a nusience l

Re: [PATCH net-next 1/2] net: phy: marvell-88x2222: check that link is operational

2021-04-13 Thread Andrew Lunn
> Indeed - it should be a logical and operation - there is light present > _and_ the PHY recognises the signal. This is what the commit achieves, > although (iirc) doesn't cater for the case where there is no SFP cage > attached. Hi Russell Is there something like this in the marvell10 driver? A

Re: [PATCH net-next 1/2] net: phy: marvell-88x2222: check that link is operational

2021-04-13 Thread Andrew Lunn
s link > > > will be always up, even without cable connected. RX_LOS changes will > > > trigger link_up()/link_down() upstream operations. Thus, check that SFP > > > link is operational before actual read link status. > > > > > > Signed-off-

Re: [PATCH net-next 1/2] net: phy: marvell-88x2222: check that link is operational

2021-04-13 Thread Ivan Bornyakov
: > > > > Some SFP modules uses RX_LOS for link indication. In such cases link > > > > will be always up, even without cable connected. RX_LOS changes will > > > > trigger link_up()/link_down() upstream operations. Thus, check that SFP > > > > link is o

[net-next 10/14] can: peak_usb: pcan_usb_{,pro}_get_device_id(): remove unneeded check for device_id

2021-04-13 Thread Marc Kleine-Budde
The callback struct peak_usb_adapter::dev_get_device_id, which is implemented by the functions pcan_usb_{,pro}_get_device_id() is only ever called with a valid device_id pointer. This patch removes the unneeded check if the device_id pointer is valid. Link: https://lore.kernel.org/r

Re: [PATCH net-next 1/2] net: phy: marvell-88x2222: check that link is operational

2021-04-13 Thread Russell King - ARM Linux admin
> > will be always up, even without cable connected. RX_LOS changes will > > > trigger link_up()/link_down() upstream operations. Thus, check that SFP > > > link is operational before actual read link status. > > > > Sorry, but this is not making much sense to me.

RE: [PATCH net] ice: Re-organizes reqstd/avail {R,T}XQ check/code for efficiency+readability

2021-04-13 Thread Salil Mehta
.@openeuler.org; Tieman, Henry W > ; Linuxarm > Subject: Re: [PATCH net] ice: Re-organizes reqstd/avail {R,T}XQ check/code for > efficiency+readability > > On Sun, 2021-04-11 at 02:45 +0100, Salil Mehta wrote: > > If user has explicitly requested the number of {R,T}XQs, then

Re: [PATCH net-next 1/2] net: phy: marvell-88x2222: check that link is operational

2021-04-13 Thread Ivan Bornyakov
> trigger link_up()/link_down() upstream operations. Thus, check that SFP > > link is operational before actual read link status. > > Sorry, but this is not making much sense to me. > > LOS just indicates some sort of light is coming into the device. You > have no idea what so

Re: [PATCH net-next 1/2] net: phy: marvell-88x2222: check that link is operational

2021-04-13 Thread Ivan Bornyakov
l > > trigger link_up()/link_down() upstream operations. Thus, check that SFP > > link is operational before actual read link status. > > > > Signed-off-by: Ivan Bornyakov > > --- > > drivers/net/phy/marvell-88x.c | 26 ++ > > 1 file

[PATCH net-next v4 07/10] virtio-net: virtnet_poll_tx support budget check

2021-04-12 Thread Xuan Zhuo
virtnet_poll_tx() check the work done like other network card drivers. When work < budget, napi_poll() in dev.c will exit directly. And virtqueue_napi_complete() will be called to close napi. If closing napi fails or there is still data to be processed, virtqueue_napi_complete() will make n

Re: [PATCH net-next 1/2] net: phy: marvell-88x2222: check that link is operational

2021-04-12 Thread Andrew Lunn
On Mon, Apr 12, 2021 at 03:16:59PM +0300, Ivan Bornyakov wrote: > Some SFP modules uses RX_LOS for link indication. In such cases link > will be always up, even without cable connected. RX_LOS changes will > trigger link_up()/link_down() upstream operations. Thus, check that SFP

Re: [PATCH net-next 1/2] net: phy: marvell-88x2222: check that link is operational

2021-04-12 Thread Marek Behún
On Mon, 12 Apr 2021 15:16:59 +0300 Ivan Bornyakov wrote: > Some SFP modules uses RX_LOS for link indication. In such cases link > will be always up, even without cable connected. RX_LOS changes will > trigger link_up()/link_down() upstream operations. Thus, check that SFP > link is

Re: [PATCH net] ice: Re-organizes reqstd/avail {R,T}XQ check/code for efficiency+readability

2021-04-12 Thread Nguyen, Anthony L
On Sun, 2021-04-11 at 02:45 +0100, Salil Mehta wrote: > If user has explicitly requested the number of {R,T}XQs, then it is > unnecessary > to get the count of already available {R,T}XQs from the PF > avail_{r,t}xqs > bitmap. This value will get overriden by user specified value in any s/override

[PATCH AUTOSEL 4.4 01/23] net: ieee802154: nl-mac: fix check on panid

2021-04-12 Thread Sasha Levin
From: Alexander Aring [ Upstream commit 6f7f657f24405f426212c09260bf7fe8a52cef33 ] This patch fixes a null pointer derefence for panid handle by move the check for the netlink variable directly before accessing them. Reported-by: syzbot+d4c07de0144f6f63b...@syzkaller.appspotmail.com Signed-off

[PATCH AUTOSEL 4.14 01/25] net: ieee802154: nl-mac: fix check on panid

2021-04-12 Thread Sasha Levin
From: Alexander Aring [ Upstream commit 6f7f657f24405f426212c09260bf7fe8a52cef33 ] This patch fixes a null pointer derefence for panid handle by move the check for the netlink variable directly before accessing them. Reported-by: syzbot+d4c07de0144f6f63b...@syzkaller.appspotmail.com Signed-off

[PATCH AUTOSEL 4.9 01/23] net: ieee802154: nl-mac: fix check on panid

2021-04-12 Thread Sasha Levin
From: Alexander Aring [ Upstream commit 6f7f657f24405f426212c09260bf7fe8a52cef33 ] This patch fixes a null pointer derefence for panid handle by move the check for the netlink variable directly before accessing them. Reported-by: syzbot+d4c07de0144f6f63b...@syzkaller.appspotmail.com Signed-off

[PATCH AUTOSEL 4.19 01/28] net: ieee802154: nl-mac: fix check on panid

2021-04-12 Thread Sasha Levin
From: Alexander Aring [ Upstream commit 6f7f657f24405f426212c09260bf7fe8a52cef33 ] This patch fixes a null pointer derefence for panid handle by move the check for the netlink variable directly before accessing them. Reported-by: syzbot+d4c07de0144f6f63b...@syzkaller.appspotmail.com Signed-off

[PATCH AUTOSEL 5.4 05/39] net: ieee802154: nl-mac: fix check on panid

2021-04-12 Thread Sasha Levin
From: Alexander Aring [ Upstream commit 6f7f657f24405f426212c09260bf7fe8a52cef33 ] This patch fixes a null pointer derefence for panid handle by move the check for the netlink variable directly before accessing them. Reported-by: syzbot+d4c07de0144f6f63b...@syzkaller.appspotmail.com Signed-off

  1   2   3   4   5   6   7   8   9   10   >