netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/8] Mellanox driver update, Nov 1 2015
@ 2015-11-01 17:35 Or Gerlitz
  2015-11-01 17:35 ` [PATCH net-next 1/8] net/mlx5e: Avoid NULL pointer access in case of configuration failure Or Gerlitz
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: Or Gerlitz @ 2015-11-01 17:35 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev, Saeed Mahameed, Or Gerlitz

Hi Dave,

This series contains bunch of small fixes to the mlx5e driver from Achiad.

Applies on net-next commit e7b63ff "Merge branch 'master' of 
git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec-next"

Or.

Achiad Shochat (8):
  net/mlx5e: Avoid NULL pointer access in case of configuration failure
  net/mlx5e: Wait for RX buffers initialization in a more proper manner
  net/mlx5_core: Use the the real irqn in eq->irqn
  net/mlx5e: Consider IRQ affinity changes in NAPI poll
  net/mlx5e: Don't allow more than max supported channels
  net/mlx5e: Return error in case mlx5e_set_features() fails
  net/mlx5e: Re-eanble client vlan TX acceleration
  net/mlx5e: Fix LSO vlan insertion

 drivers/net/ethernet/mellanox/mlx5/core/en.h       |  9 ++++++++
 .../net/ethernet/mellanox/mlx5/core/en_ethtool.c   |  5 ++---
 drivers/net/ethernet/mellanox/mlx5/core/en_main.c  | 17 +++++++++-----
 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c    | 26 +++++++++++++++++++---
 drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c  | 12 +++++++++-
 drivers/net/ethernet/mellanox/mlx5/core/eq.c       |  8 +++----
 6 files changed, 61 insertions(+), 16 deletions(-)

-- 
2.3.7

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: [PATCH net-next 4/8] net/mlx5e: Consider IRQ affinity changes in NAPI poll
@ 2015-11-02 11:25 Saeed Mahameed
  0 siblings, 0 replies; 11+ messages in thread
From: Saeed Mahameed @ 2015-11-02 11:25 UTC (permalink / raw)
  To: David S. Miller, Achiad Shochat, Or Gerlitz; +Cc: netdev, Saeed Mahameed

Hi Dave,

We agree with you, we will drop this patch for now and will think of a
cleaner approach to fix this in the future.

> From: David Miller [mailto:davem@davemloft.net]
> Sent: Monday, November 02, 2015 12:34 AM
> To: Or Gerlitz <ogerlitz@mellanox.com>
> Cc: netdev@vger.kernel.org; Saeed Mahameed <saeedm@mellanox.com>; Achiad Shochat <achiad@mellanox.com>
> Subject: Re: [PATCH net-next 4/8] net/mlx5e: Consider IRQ affinity changes in NAPI poll
>
> From: Or Gerlitz <ogerlitz@mellanox.com>
> Date: Sun,  1 Nov 2015 19:35:18 +0200
>
>> @@ -49,6 +50,15 @@ struct mlx5_cqe64 *mlx5e_get_cqe(struct mlx5e_cq *cq)
>>       return cqe;
>>  }
>>
>> +static inline bool mlx5e_no_channel_affinity_change(struct
>> +mlx5e_channel *c) {
>> +     int current_cpu = smp_processor_id();
>> +     struct irq_data *d = irq_desc_get_irq_data(c->irq_desc);
>> +     struct cpumask *aff = irq_data_get_affinity_mask(d);
>> +
>> +     return cpumask_test_cpu(current_cpu, aff); }
>
> This is so much pointer dereferencing and then a bitmask test as well.
>
> Are you really sure sure an extremely rare situation warrants this test every single NAPI poll call?
>
> If this is a real problem, then every driver is susceptible to the issue and it therefore warrants a generic solution.  And if we have generic infrastructure for this situation in the code NAPI polling networking code, I guarantee that it will probably be implemented much more cheaply than this.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-11-02 11:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-01 17:35 [PATCH net-next 0/8] Mellanox driver update, Nov 1 2015 Or Gerlitz
2015-11-01 17:35 ` [PATCH net-next 1/8] net/mlx5e: Avoid NULL pointer access in case of configuration failure Or Gerlitz
2015-11-01 17:35 ` [PATCH net-next 2/8] net/mlx5e: Wait for RX buffers initialization in a more proper manner Or Gerlitz
2015-11-01 17:35 ` [PATCH net-next 3/8] net/mlx5_core: Use the the real irqn in eq->irqn Or Gerlitz
2015-11-01 17:35 ` [PATCH net-next 4/8] net/mlx5e: Consider IRQ affinity changes in NAPI poll Or Gerlitz
2015-11-01 22:34   ` David Miller
2015-11-01 17:35 ` [PATCH net-next 5/8] net/mlx5e: Don't allow more than max supported channels Or Gerlitz
2015-11-01 17:35 ` [PATCH net-next 6/8] net/mlx5e: Return error in case mlx5e_set_features() fails Or Gerlitz
2015-11-01 17:35 ` [PATCH net-next 7/8] net/mlx5e: Re-eanble client vlan TX acceleration Or Gerlitz
2015-11-01 17:35 ` [PATCH net-next 8/8] net/mlx5e: Fix LSO vlan insertion Or Gerlitz
2015-11-02 11:25 [PATCH net-next 4/8] net/mlx5e: Consider IRQ affinity changes in NAPI poll Saeed Mahameed

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).