[PATCH v3] virtio_net: Fix missed rtnl_unlock

2024-05-15 Thread Daniel Jurgens
7fhc8d60gv-65ad...@mail.gmail.com/ Signed-off-by: Daniel Jurgens --- v3: - Changed to promisc_allmulti alloc to GPF_KERNEL v2: - Added fixes tag. --- drivers/net/virtio_net.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/virtio_net.c b/d

[PATCH v2] virtio_net: Fix missed rtnl_unlock

2024-05-15 Thread Daniel Jurgens
ned-off-by: Daniel Jurgens --- 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 19a9b50646c7..e2b7488f375e 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -2902,14 +2902,14

[PATCH] virtio_net: Fix missed rtnl_unlock

2024-05-15 Thread Daniel Jurgens
The rtnl_lock would stay locked if allocating promisc_allmulti failed. Reported-by: Eric Dumazet Link: https://lore.kernel.org/netdev/cann89ilazvaucvhpm6rpjj0owra_ofnx7fhc8d60gv-65ad...@mail.gmail.com/ Signed-off-by: Daniel Jurgens --- drivers/net/virtio_net.c | 4 ++-- 1 file changed, 2

[PATCH net-next v2 2/2] virtio_net: Add TX stopped and wake counters

2024-05-10 Thread Daniel Jurgens
x', 'tx-bytes': 14756682850, 'tx-packets': 226465, 'tx-stop': 113208, 'tx-wake': 113208}, {'ifindex': 13, 'queue-id': 1, 'queue-type': 'tx', 'tx-bytes': 1816767

[PATCH net-next v2 1/2] netdev: Add queue stats for TX stop and wake

2024-05-10 Thread Daniel Jurgens
TX queue stop and wake are counted by some drivers. Support reporting these via netdev-genl queue stats. Signed-off-by: Daniel Jurgens Reviewed-by: Jiri Pirko --- Documentation/netlink/specs/netdev.yaml | 14 ++ include/net/netdev_queues.h | 3 +++ include/uapi/linux

[PATCH net-next 0/2] Add TX stop/wake counters

2024-05-10 Thread Daniel Jurgens
Several drivers provide TX stop and wake counters via ethtool stats. Add those to the netdev queue stats, and use them in virtio_net. v2: - Fixed an accidental line deletion - Enhanced documentation Daniel Jurgens (2): netdev: Add queue stats for TX stop and wake virtio_net

[PATCH] virtio_net: Fix memory leak in virtnet_rx_mod_work

2024-05-09 Thread Daniel Jurgens
The pointer delcaration was missing the __free(kfree). Fixes: ff7c7d9f5261 ("virtio_net: Remove command data from control_buf") Reported-by: Jens Axboe Closes: https://lore.kernel.org/netdev/0674ca1b-020f-4f93-94d0-104964566...@kernel.dk/ Signed-off-by: Daniel Jurgens --- d

[PATCH net-next 1/2] netdev: Add queue stats for TX stop and wake

2024-05-09 Thread Daniel Jurgens
TX queue stop and wake are counted by some drivers. Support reporting these via netdev-genl queue stats. Signed-off-by: Daniel Jurgens Reviewed-by: Jiri Pirko --- Documentation/netlink/specs/netdev.yaml | 10 ++ include/net/netdev_queues.h | 3 +++ include/uapi/linux

[PATCH net-next 2/2] virtio_net: Add TX stopped and wake counters

2024-05-09 Thread Daniel Jurgens
x', 'tx-bytes': 14756682850, 'tx-packets': 226465, 'tx-stop': 113208, 'tx-wake': 113208}, {'ifindex': 13, 'queue-id': 1, 'queue-type': 'tx', 'tx-bytes': 1816767

[PATCH net-next 0/2] Add TX stop/wake counters

2024-05-09 Thread Daniel Jurgens
Several drivers provide TX stop and wake counters via ethtool stats. Add those to the netdev queue stats, and use them in virtio_net. Daniel Jurgens (2): netdev: Add queue stats for TX stop and wake virtio_net: Add TX stopped and wake counters Documentation/netlink/specs/netdev.yaml | 10

[PATCH net-next v6 6/6] virtio_net: Remove rtnl lock protection of command buffers

2024-05-03 Thread Daniel Jurgens
The rtnl lock is no longer needed to protect the control buffer and command VQ. Signed-off-by: Daniel Jurgens Reviewed-by: Jiri Pirko --- drivers/net/virtio_net.c | 24 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers

[PATCH net-next v6 5/6] virtio_net: Add a lock for per queue RX coalesce

2024-05-03 Thread Daniel Jurgens
Once the RTNL locking around the control buffer is removed there can be contention on the per queue RX interrupt coalescing data. Use a mutex per queue. A mutex is required because virtnet_send_command can sleep. Signed-off-by: Daniel Jurgens --- drivers/net/virtio_net.c | 53

[PATCH net-next v6 4/6] virtio_net: Do DIM update for specified queue only

2024-05-03 Thread Daniel Jurgens
Since we no longer have to hold the RTNL lock here just do updates for the specified queue. Signed-off-by: Daniel Jurgens --- drivers/net/virtio_net.c | 40 +++- 1 file changed, 15 insertions(+), 25 deletions(-) diff --git a/drivers/net/virtio_net.c b

[PATCH net-next v6 3/6] virtio_net: Add a lock for the command VQ.

2024-05-03 Thread Daniel Jurgens
The command VQ will no longer be protected by the RTNL lock. Use a mutex to protect the control buffer header and the VQ. Signed-off-by: Daniel Jurgens Reviewed-by: Jiri Pirko --- drivers/net/virtio_net.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH net-next v6 0/6] Remove RTNL lock protection of CVQ

2024-05-03 Thread Daniel Jurgens
analysis warning. - Moved a misplaced hunk to the correct patch. v2: - New patch to only process the provided queue in virtnet_dim_work - New patch to lock per queue rx coalescing structure. Daniel Jurgens (6): virtio_net: Store RSS setting in virtnet_in

[PATCH net-next v6 2/6] virtio_net: Remove command data from control_buf

2024-05-03 Thread Daniel Jurgens
Allocate memory for the data when it's used. Ideally the struct could be on the stack, but we can't DMA stack memory. With this change only the header and status memory are shared between commands, which will allow using a tighter lock than RTNL. Signed-off-by: Daniel Jurgens Reviewe

[PATCH net-next v6 1/6] virtio_net: Store RSS setting in virtnet_info

2024-05-03 Thread Daniel Jurgens
Stop storing RSS setting in the control buffer. This is prep work for removing RTNL lock protection of the control buffer. Signed-off-by: Daniel Jurgens Reviewed-by: Jiri Pirko --- drivers/net/virtio_net.c | 40 1 file changed, 20 insertions(+), 20

[PATCH net-next v5 5/6] virtio_net: Add a lock for per queue RX coalesce

2024-04-22 Thread Daniel Jurgens
Once the RTNL locking around the control buffer is removed there can be contention on the per queue RX interrupt coalescing data. Use a mutex per queue. A mutex is required because virtnet_send_command can sleep. Signed-off-by: Daniel Jurgens --- drivers/net/virtio_net.c | 53

[PATCH net-next v5 6/6] virtio_net: Remove rtnl lock protection of command buffers

2024-04-22 Thread Daniel Jurgens
The rtnl lock is no longer needed to protect the control buffer and command VQ. Signed-off-by: Daniel Jurgens Reviewed-by: Jiri Pirko --- drivers/net/virtio_net.c | 24 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers

[PATCH net-next v5 4/6] virtio_net: Do DIM update for specified queue only

2024-04-22 Thread Daniel Jurgens
Since we no longer have to hold the RTNL lock here just do updates for the specified queue. Signed-off-by: Daniel Jurgens --- drivers/net/virtio_net.c | 40 +++- 1 file changed, 15 insertions(+), 25 deletions(-) diff --git a/drivers/net/virtio_net.c b

[PATCH net-next v5 3/6] virtio_net: Add a lock for the command VQ.

2024-04-22 Thread Daniel Jurgens
The command VQ will no longer be protected by the RTNL lock. Use a mutex to protect the control buffer header and the VQ. Signed-off-by: Daniel Jurgens Reviewed-by: Jiri Pirko --- drivers/net/virtio_net.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH net-next v5 1/6] virtio_net: Store RSS setting in virtnet_info

2024-04-22 Thread Daniel Jurgens
Stop storing RSS setting in the control buffer. This is prep work for removing RTNL lock protection of the control buffer. Signed-off-by: Daniel Jurgens Reviewed-by: Jiri Pirko --- drivers/net/virtio_net.c | 40 1 file changed, 20 insertions(+), 20

[PATCH net-next v5 2/6] virtio_net: Remove command data from control_buf

2024-04-22 Thread Daniel Jurgens
Allocate memory for the data when it's used. Ideally the could be on the stack, but we can't DMA stack memory. With this change only the header and status memory are shared between commands, which will allow using a tighter lock than RTNL. Signed-off-by: Daniel Jurgens Reviewed-by:

[PATCH net-next v5 0/6] Remove RTNL lock protection of CVQ

2024-04-22 Thread Daniel Jurgens
of _offloads to __virtio16 to fix static analysis warning. - Moved a misplaced hunk to the correct patch. v2: - New patch to only process the provided queue in virtnet_dim_work - New patch to lock per queue rx coalescing structure. Daniel Jurgens (6): virtio

[PATCH net-next v4 6/6] virtio_net: Remove rtnl lock protection of command buffers

2024-04-16 Thread Daniel Jurgens
The rtnl lock is no longer needed to protect the control buffer and command VQ. Signed-off-by: Daniel Jurgens Reviewed-by: Jiri Pirko --- drivers/net/virtio_net.c | 27 +-- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers

[PATCH net-next v4 4/6] virtio_net: Do DIM update for specified queue only

2024-04-16 Thread Daniel Jurgens
Since we no longer have to hold the RTNL lock here just do updates for the specified queue. Signed-off-by: Daniel Jurgens --- drivers/net/virtio_net.c | 40 +++- 1 file changed, 15 insertions(+), 25 deletions(-) diff --git a/drivers/net/virtio_net.c b

[PATCH net-next v4 2/6] virtio_net: Remove command data from control_buf

2024-04-16 Thread Daniel Jurgens
Allocate memory for the data when it's used. Ideally the could be on the stack, but we can't DMA stack memory. With this change only the header and status memory are shared between commands, which will allow using a tighter lock than RTNL. Signed-off-by: Daniel Jurgens Reviewed-by:

[PATCH net-next v4 3/6] virtio_net: Add a lock for the command VQ.

2024-04-16 Thread Daniel Jurgens
The command VQ will no longer be protected by the RTNL lock. Use a spinlock to protect the control buffer header and the VQ. Signed-off-by: Daniel Jurgens Reviewed-by: Jiri Pirko --- drivers/net/virtio_net.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net

[PATCH net-next v4 5/6] virtio_net: Add a lock for per queue RX coalesce

2024-04-16 Thread Daniel Jurgens
Once the RTNL locking around the control buffer is removed there can be contention on the per queue RX interrupt coalescing data. Use a spin lock per queue. Signed-off-by: Daniel Jurgens --- drivers/net/virtio_net.c | 40 +--- 1 file changed, 33 insertions

[PATCH net-next v4 1/6] virtio_net: Store RSS setting in virtnet_info

2024-04-16 Thread Daniel Jurgens
Stop storing RSS setting in the control buffer. This is prep work for removing RTNL lock protection of the control buffer. Signed-off-by: Daniel Jurgens Reviewed-by: Jiri Pirko --- drivers/net/virtio_net.c | 40 1 file changed, 20 insertions(+), 20

[PATCH net-next v4 0/6] Remove RTNL lock protection of CVQ

2024-04-16 Thread Daniel Jurgens
d queue in virtnet_dim_work - New patch to lock per queue rx coalescing structure. Daniel Jurgens (6): virtio_net: Store RSS setting in virtnet_info virtio_net: Remove command data from control_buf virtio_net: Add a lock for the command VQ. virtio_net: Do DIM update for specified

[PATCH net-next v3 6/6] virtio_net: Remove rtnl lock protection of command buffers

2024-04-12 Thread Daniel Jurgens
The rtnl lock is no longer needed to protect the control buffer and command VQ. Signed-off-by: Daniel Jurgens Reviewed-by: Jiri Pirko --- drivers/net/virtio_net.c | 27 +-- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers

[PATCH net-next v3 5/6] virtio_net: Add a lock for per queue RX coalesce

2024-04-12 Thread Daniel Jurgens
Once the RTNL locking around the control buffer is removed there can be contention on the per queue RX interrupt coalescing data. Use a spin lock per queue. Signed-off-by: Daniel Jurgens --- drivers/net/virtio_net.c | 23 --- 1 file changed, 16 insertions(+), 7 deletions

[PATCH net-next v3 4/6] virtio_net: Do DIM update for specified queue only

2024-04-12 Thread Daniel Jurgens
Since we no longer have to hold the RTNL lock here just do updates for the specified queue. Signed-off-by: Daniel Jurgens --- drivers/net/virtio_net.c | 40 +++- 1 file changed, 15 insertions(+), 25 deletions(-) diff --git a/drivers/net/virtio_net.c b

[PATCH net-next v3 2/6] virtio_net: Remove command data from control_buf

2024-04-12 Thread Daniel Jurgens
Allocate memory for the data when it's used. Ideally the could be on the stack, but we can't DMA stack memory. With this change only the header and status memory are shared between commands, which will allow using a tighter lock than RTNL. Signed-off-by: Daniel Jurgens Reviewed-by:

[PATCH net-next v3 3/6] virtio_net: Add a lock for the command VQ.

2024-04-12 Thread Daniel Jurgens
The command VQ will no longer be protected by the RTNL lock. Use a spinlock to protect the control buffer header and the VQ. Signed-off-by: Daniel Jurgens Reviewed-by: Jiri Pirko --- drivers/net/virtio_net.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net

[PATCH net-next v3 0/6] Remove RTNL lock protection of CVQ

2024-04-12 Thread Daniel Jurgens
o the correct patch. v2: - New patch to only process the provided queue in virtnet_dim_work - New patch to lock per queue rx coalescing structure. Daniel Jurgens (6): virtio_net: Store RSS setting in virtnet_info virtio_net: Remove command data from control_buf virtio_net

[PATCH net-next v3 1/6] virtio_net: Store RSS setting in virtnet_info

2024-04-12 Thread Daniel Jurgens
Stop storing RSS setting in the control buffer. This is prep work for removing RTNL lock protection of the control buffer. Signed-off-by: Daniel Jurgens Reviewed-by: Jiri Pirko --- drivers/net/virtio_net.c | 40 1 file changed, 20 insertions(+), 20

[PATCH net-next v2 6/6] virtio_net: Remove rtnl lock protection of command buffers

2024-03-27 Thread Daniel Jurgens
The rtnl lock is no longer needed to protect the control buffer and command VQ. Signed-off-by: Daniel Jurgens Reviewed-by: Jiri Pirko --- drivers/net/virtio_net.c | 27 +-- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers

[PATCH net-next v2 4/6] virtio_net: Do DIM update for specified queue only

2024-03-27 Thread Daniel Jurgens
Since we no longer have to hold the RTNL lock here just do updates for the specified queue. Signed-off-by: Daniel Jurgens --- drivers/net/virtio_net.c | 38 ++ 1 file changed, 14 insertions(+), 24 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers

[PATCH net-next v2 2/6] virtio_net: Remove command data from control_buf

2024-03-27 Thread Daniel Jurgens
Allocate memory for the data when it's used. Ideally the could be on the stack, but we can't DMA stack memory. With this change only the header and status memory are shared between commands, which will allow using a tighter lock than RTNL. Signed-off-by: Daniel Jurgens Reviewed-by:

[PATCH net-next v2 5/6] virtio_net: Add a lock for per queue RX coalesce

2024-03-27 Thread Daniel Jurgens
Once the RTNL locking around the control buffer is removed there can be contention on the per queue RX interrupt coalescing data. Use a spin lock per queue. Signed-off-by: Daniel Jurgens --- drivers/net/virtio_net.c | 27 ++- 1 file changed, 18 insertions(+), 9 deletions

[PATCH net-next v2 0/6] Remove RTNL lock protection of CVQ

2024-03-27 Thread Daniel Jurgens
scing structure. Daniel Jurgens (6): virtio_net: Store RSS setting in virtnet_info virtio_net: Remove command data from control_buf virtio_net: Add a lock for the command VQ. virtio_net: Do DIM update for specified queue only virtio_net: Add a lock for per queue RX coalesce virti

[PATCH net-next v2 3/6] virtio_net: Add a lock for the command VQ.

2024-03-27 Thread Daniel Jurgens
The command VQ will no longer be protected by the RTNL lock. Use a spinlock to protect the control buffer header and the VQ. Signed-off-by: Daniel Jurgens Reviewed-by: Jiri Pirko --- drivers/net/virtio_net.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net

[PATCH net-next v2 1/6] virtio_net: Store RSS setting in virtnet_info

2024-03-27 Thread Daniel Jurgens
Stop storing RSS setting in the control buffer. This is prep work for removing RTNL lock protection of the control buffer. Signed-off-by: Daniel Jurgens Reviewed-by: Jiri Pirko --- drivers/net/virtio_net.c | 40 1 file changed, 20 insertions(+), 20

[PATCH net-next 4/4] virtio_net: Remove rtnl lock protection of command buffers

2024-03-25 Thread Daniel Jurgens
The rtnl lock is no longer needed to protect the control buffer and command VQ. Signed-off-by: Daniel Jurgens Reviewed-by: Jiri Pirko --- drivers/net/virtio_net.c | 27 +-- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers

[PATCH net-next 3/4] virtio_net: Add a lock for the command VQ.

2024-03-25 Thread Daniel Jurgens
The command VQ will no longer be protected by the RTNL lock. Use a spinlock to protect the control buffer header and the VQ. Signed-off-by: Daniel Jurgens Reviewed-by: Jiri Pirko --- drivers/net/virtio_net.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net

[PATCH net-next 2/4] virtio_net: Remove command data from control_buf

2024-03-25 Thread Daniel Jurgens
Allocate memory for the data when it's used. Ideally the could be on the stack, but we can't DMA stack memory. With this change only the header and status memory are shared between commands, which will allow using a tighter lock than RTNL. Signed-off-by: Daniel Jurgens Reviewed-by:

[PATCH net-next 1/4] virtio_net: Store RSS setting in virtnet_info

2024-03-25 Thread Daniel Jurgens
Stop storing RSS setting in the control buffer. This is prep work for removing RTNL lock protection of the control buffer. Signed-off-by: Daniel Jurgens Reviewed-by: Jiri Pirko --- drivers/net/virtio_net.c | 40 1 file changed, 20 insertions(+), 20

[PATCH net-next 0/4] Remove RTNL lock protection of CVQ

2024-03-25 Thread Daniel Jurgens
ently during normal operation. This series removes the RNTL lock dependancy by introducing a spin lock to protect the control buffer and writing SGs to the control VQ. Daniel Jurgens (4): virtio_net: Store RSS setting in virtnet_info virtio_net: Remove command data from control_buf virtio_net:

RE: [PATCH net-next] virtio_net: Add TX stop and wake counters

2024-02-07 Thread Daniel Jurgens
> From: Michael S. Tsirkin > Sent: Wednesday, February 7, 2024 2:19 PM > To: Daniel Jurgens > Subject: Re: [PATCH net-next] virtio_net: Add TX stop and wake counters > > On Wed, Feb 07, 2024 at 07:38:16PM +0000, Daniel Jurgens wrote: > > > From: Michael S. Tsirkin &

RE: [PATCH net-next] virtio_net: Add TX stop and wake counters

2024-02-07 Thread Daniel Jurgens
> From: Michael S. Tsirkin > Sent: Sunday, February 4, 2024 6:40 AM > To: Jason Wang > Cc: Jakub Kicinski ; Jason Xing > ; Daniel Jurgens ; > netdev@vger.kernel.org; xuanz...@linux.alibaba.com; > virtualizat...@lists.linux.dev; da...@davemloft.net; > eduma...@google.com;

RE: [PATCH net-next] virtio_net: Add TX stop and wake counters

2024-02-02 Thread Daniel Jurgens
> From: Jakub Kicinski > Sent: Friday, February 2, 2024 10:01 AM > Subject: Re: [PATCH net-next] virtio_net: Add TX stop and wake counters > > On Fri, 2 Feb 2024 14:52:59 +0800 Jason Xing wrote: > > > Can you say more? I'm curious what's your use case. > > > > I'm not working at Nvidia, so my poi

RE: [PATCH net-next] virtio_net: Add TX stop and wake counters

2024-01-30 Thread Daniel Jurgens
> From: Michael S. Tsirkin > Sent: Tuesday, January 30, 2024 9:53 AM > On Tue, Jan 30, 2024 at 03:50:29PM +0000, Daniel Jurgens wrote: > > > From: Michael S. Tsirkin > > > Sent: Tuesday, January 30, 2024 9:42 AM On Tue, Jan 30, 2024 at > > > 03:40:21PM +,

RE: [PATCH net-next] virtio_net: Add TX stop and wake counters

2024-01-30 Thread Daniel Jurgens
> From: Michael S. Tsirkin > Sent: Tuesday, January 30, 2024 9:42 AM > On Tue, Jan 30, 2024 at 03:40:21PM +0000, Daniel Jurgens wrote: > > > From: Michael S. Tsirkin > > > Sent: Tuesday, January 30, 2024 8:58 AM > > > > > > On Tue, Jan 30, 2

RE: [PATCH net-next] virtio_net: Add TX stop and wake counters

2024-01-30 Thread Daniel Jurgens
> From: Heng Qi > Sent: Tuesday, January 30, 2024 9:17 AM > 在 2024/1/30 下午10:25, Daniel Jurgens 写道: > > Add a tx queue stop and wake counters, they are useful for debugging. > > > > $ ethtool -S ens5f2 | grep 'tx_stop\|tx_wake' > >

RE: [PATCH net-next] virtio_net: Add TX stop and wake counters

2024-01-30 Thread Daniel Jurgens
> From: Michael S. Tsirkin > Sent: Tuesday, January 30, 2024 8:58 AM > > On Tue, Jan 30, 2024 at 08:25:21AM -0600, Daniel Jurgens wrote: > > Add a tx queue stop and wake counters, they are useful for debugging. > > > > $ ethtool -S e

[PATCH net-next] virtio_net: Add TX stop and wake counters

2024-01-30 Thread Daniel Jurgens
10 Signed-off-by: Daniel Jurgens Reviewed-by: Parav Pandit --- drivers/net/virtio_net.c | 26 -- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 3cb8aa193884..7e3c31ceaf7e 100644 --- a/drivers/net/vi

Re: [BUG] ethernet:mellanox:mlx5: Oops in health_recover get_nic_state(dev)

2017-03-28 Thread Daniel Jurgens
On 3/28/2017 4:11 AM, Saeed Mahameed wrote: > On Tue, Mar 28, 2017 at 2:45 AM, Goel, Sameer wrote: >> Stack frame: >> [ 1744.418958] [] get_nic_state+0x24/0x40 [mlx5_core] >> [ 1744.425273] [] health_recover+0x28/0x80 [mlx5_core] >> [ 1744.431496] [] process_one_work+0x150/0x460 >> [ 1744.437218]

Re: [net-next 2/8] net/mlx5: Configure cache line size for start and end padding

2017-02-02 Thread Daniel Jurgens
On 2/1/2017 5:12 AM, David Laight wrote: > From: Saeed Mahameed >> Sent: 31 January 2017 20:59 >> From: Daniel Jurgens >> >> There is a hardware feature that will pad the start or end of a DMA to >> be cache line aligned to avoid RMWs on the last cache line. The d

Re: [PATCH net-next 3/9] net/mlx4_core: Set EQ affinity hint to local NUMA CPUs

2017-01-16 Thread Daniel Jurgens
On 1/16/2017 3:59 PM, Or Gerlitz wrote: > On Mon, Jan 16, 2017 at 11:54 PM, Daniel Jurgens wrote: >> On 1/16/2017 3:44 PM, Or Gerlitz wrote: >>> On Mon, Jan 16, 2017 at 7:29 PM, Tariq Toukan wrote: >>>> From: Daniel Jurgens >>>> >>>> Use CPU

Re: [PATCH net-next 3/9] net/mlx4_core: Set EQ affinity hint to local NUMA CPUs

2017-01-16 Thread Daniel Jurgens
On 1/16/2017 3:44 PM, Or Gerlitz wrote: > On Mon, Jan 16, 2017 at 7:29 PM, Tariq Toukan wrote: >> From: Daniel Jurgens >> >> Use CPUs on the close NUMA when setting the EQ affinity hints. > Dan, are we sure there are no down-sides for always doing this? this > code