[net 06/11] net/mlx5e: Fix dangling page pointer on DMA mapping error

2017-08-30 Thread Saeed Mahameed
avoid invalid page DMA unmap. Fixes: bc77b240b3c5 ("net/mlx5e: Add fragmented memory support for RX multi packet WQE") Signed-off-by: Eran Ben Elisha <era...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/en_rx

[pull request][net 00/11] Mellanox, mlx5 fixes 2017-08-30

2017-08-30 Thread Saeed Mahameed
Hi Dave, This series contains some misc fixes to the mlx5 driver. Please pull and let me know if there's any problem. For -stable: Kernels >= 4.12 net/mlx5e: Fix CQ moderation mode not set properly net/mlx5e: Don't override user RSS upon set channels Kernels >= 4.11

[net 05/11] net/mlx5: Remove the flag MLX5_INTERFACE_STATE_SHUTDOWN

2017-08-30 Thread Saeed Mahameed
From: Huy Nguyen <h...@mellanox.com> MLX5_INTERFACE_STATE_SHUTDOWN is not used in the code. Fixes: 5fc7197d3a25 ("net/mlx5: Add pci shutdown callback") Signed-off-by: Huy Nguyen <h...@mellanox.com> Reviewed-by: Daniel Jurgens <dani...@mellanox.com> Signed

[net 10/11] net/mlx5e: Fix inline header size for small packets

2017-08-30 Thread Saeed Mahameed
: Moshe Shemesh <mo...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/en_tx.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tx.c b/drivers/

[net 11/11] net/mlx5e: Fix CQ moderation mode not set properly

2017-08-30 Thread Saeed Mahameed
->params") Signed-off-by: Tal Gilboa <ta...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c b/drivers/

[net 08/11] net/mlx5e: Properly resolve TC offloaded ipv6 vxlan tunnel source address

2017-08-30 Thread Saeed Mahameed
<r...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c b/drivers/net/ethernet/mellanox/mlx5/c

[net-next 1/3] net/mlx5e: Use IP version matching to classify IP traffic

2017-08-30 Thread Saeed Mahameed
Or Gerlitz <ogerl...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/en_fs.c | 33 ++--- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_fs.c b

[net-next 3/3] net/mlx5e: Support RSS for GRE tunneled packets

2017-08-30 Thread Saeed Mahameed
v3 @ 2.50GHz NIC: Mellanox Technologies MT28800 Family [ConnectX-5 Ex] Before: 21.3 Gbps (Single RQ) Now : 90.5 Gbps (RSS spread on 8 RQs) Signed-off-by: Gal Pressman <g...@mellanox.com> Reviewed-by: Or Gerlitz <ogerl...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mel

[pull request][net-next 0/3] Mellanox, mlx5 GRE tunnel offloads

2017-08-30 Thread Saeed Mahameed
Hi Dave, Tthe following changes provide GRE tunnel offloads for mlx5 ethernet netdevice driver. For more details please see tag log message below. Please pull and let me know if there's any problem. Note: this series doesn't conflict with the ongoing net mlx5 submission. Thanks, Saeed. ---

[net-next 2/3] net/mlx5e: Support TSO and TX checksum offloads for GRE tunnels

2017-08-30 Thread Saeed Mahameed
From: Gal Pressman <g...@mellanox.com> Add TX offloads support for GRE tunneled packets by reporting the needed netdev features. Signed-off-by: Gal Pressman <g...@mellanox.com> Reviewed-by: Or Gerlitz <ogerl...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.

[net 03/11] net/mlx5: Fix arm SRQ command for ISSI version 0

2017-08-30 Thread Saeed Mahameed
sion 0. Fixes: af1ba291c5e4 ('{net, IB}/mlx5: Refactor internal SRQ API') Signed-off-by: Noa Osherovich <no...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/srq.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deleti

[net 02/11] net/mlx5e: Fix DCB_CAP_ATTR_DCBX capability for DCBNL getcap.

2017-08-30 Thread Saeed Mahameed
E mode. This fix returns DCB_CAP_DCBX_HOST capability when port's DCBX controlled mode is under software control. Fixes: 3a6a931dfb8e ("net/mlx5e: Support DCBX CEE API") Signed-off-by: Huy Nguyen <h...@mellanox.com> Reviewed-by: Parav Pandit <pa...@mellanox.com> Signed

[net 09/11] net/mlx5: E-Switch, Unload the representors in the correct order

2017-08-30 Thread Saeed Mahameed
d-off-by: Shahar Klein <shah...@mellanox.com> Reviewed-by: Roi Dayan <r...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drive

[pull request][net 00/11] Mellanox, mlx5 fixes 2017-09-28

2017-09-27 Thread Saeed Mahameed
Hi Dave, This series provides misc fixes for mlx5 dirver. Please pull and let me know if there's any problem. for -stable: net/mlx5e: IPoIB, Fix access to invalid memory address (Kernels >= 4.12) Thanks, Saeed. -- The following changes since commit

[net 04/11] net/mlx5e: Fix erroneous freeing of encap header buffer

2017-09-27 Thread Saeed Mahameed
. Fix that by skipping freeing it if we wait for neighbour. Fixes: 232c001398ae ('net/mlx5e: Add support to neighbour update flow') Signed-off-by: Paul Blakey <pa...@mellanox.com> Reviewed-by: Or Gerlitz <ogerl...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/ne

[net 01/11] net/mlx5e: IPoIB, Fix access to invalid memory address

2017-09-27 Thread Saeed Mahameed
bb7ae8 ("net/mlx5e: IPoIB, Add netdevice profile skeleton") Signed-off-by: Roi Dayan <r...@mellanox.com> Reviewed-by: Or Gerlitz <ogerl...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c | 3 ++-

[net 09/11] net/mlx5e: Fix calculated checksum offloads counters

2017-09-27 Thread Saeed Mahameed
ckets increases by the number of GSO segments for each SKB, tx_csum_partial_inner will only increase by one, resulting in wrong tx_csum_partial counter. Fixes: bfe6d8d1d433 ("net/mlx5e: Reorganize ethtool statistics") Signed-off-by: Gal Pressman <g...@mellanox.com> Signed-off-by: Saee

[net 10/11] net/mlx5: Fix static checker warning on steering tracepoints code

2017-09-27 Thread Saeed Mahameed
k <mat...@mellanox.com> Reviewed-by: Or Gerlitz <ogerl...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet

[net 11/11] net/mlx5: Fix wrong indentation in enable SRIOV code

2017-09-27 Thread Saeed Mahameed
erlitz <ogerl...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/sriov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/sriov.c b/drivers/net/ethernet/mellanox/mlx5/

[net 05/11] net/mlx5e: Disallow TC offloading of unsupported match/action combinations

2017-09-27 Thread Saeed Mahameed
wed-by: Paul Blakey <pa...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 70 + 1 file changed, 70 insertions(+) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c b/drivers/net/eth

[net 03/11] net/mlx5: Check device capability for maximum flow counters

2017-09-27 Thread Saeed Mahameed
Gottlieb <ma...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c | 8 drivers/net/ethernet/mellanox/mlx5/core/fs_core.h | 11 +++ include/linux/mlx5/mlx5_ifc.h | 3 ++- 3 files chan

[net 06/11] net/mlx5e: Check encap entry state when offloading tunneled flows

2017-09-27 Thread Saeed Mahameed
lanox.com> Reviewed-by: Or Gerlitz <ogerl...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c b/drivers/net/etherne

[net 07/11] net/mlx5e: Print netdev features correctly in error message

2017-09-27 Thread Saeed Mahameed
From: Gal Pressman <g...@mellanox.com> Use the correct formatting for netdev features. Fixes: 0e405443e803 ("net/mlx5e: Improve set features ndo resiliency") Signed-off-by: Gal Pressman <g...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- d

[net 02/11] net/mlx5: Fix FPGA capability location

2017-09-27 Thread Saeed Mahameed
) Signed-off-by: Inbar Karmy <inb...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/fpga/cmd.c | 4 ++-- drivers/net/ethernet/mellanox/mlx5/core/fpga/cmd.h | 2 +- drivers/net/ethernet/mellanox/mlx5/core/fpga/core.c |

[net 08/11] net/mlx5e: Don't add/remove 802.1ad rules when changing 802.1Q VLAN filter

2017-09-27 Thread Saeed Mahameed
From: Gal Pressman <g...@mellanox.com> Toggling of C-tag VLAN filter should not affect the "any S-tag" steering rule. Fixes: 8a271746a264 ("net/mlx5e: Receive s-tagged packets in promiscuous mode") Signed-off-by: Gal Pressman <g...@mellanox.com> Signed-off-by: Sae

Re: [net-next 10/15] net/mlx5: Add a blank line after declarations

2017-08-24 Thread Saeed Mahameed
On Thu, Aug 24, 2017 at 1:39 AM, Joe Perches <j...@perches.com> wrote: > On Thu, 2017-08-17 at 16:29 +0300, Saeed Mahameed wrote: >> From: Or Gerlitz <ogerl...@mellanox.com> > [] >> diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eq.c >> b/drivers/

[net-next 7/8] net/mlx5: Add hash table for flow groups in flow table

2017-08-24 Thread Saeed Mahameed
Matan Barak <mat...@mellanox.com> Reviewed-by: Maor Gottlieb <ma...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/fs_core.c | 187 +- drivers/net/ethernet/mellanox/mlx5/core/fs_core.h | 2

[net-next 6/8] net/mlx5: Add hash table to search FTEs in a flow-group

2017-08-24 Thread Saeed Mahameed
d take a lot of time when using large flow groups. Speeding this up by using rhashtable, which is much faster. Signed-off-by: Matan Barak <mat...@mellanox.com> Reviewed-by: Maor Gottlieb <ma...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/eth

[net-next 8/8] net/mlx5: Add tracepoints

2017-08-24 Thread Saeed Mahameed
Matan Barak <mat...@mellanox.com> Reviewed-by: Mark Bloch <ma...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/Makefile | 5 +- .../net/ethernet/mellanox/mlx5/core/diag/Makefile | 1 + .../mellanox/mlx5/c

[net-next 3/8] net/mlx5e: Fix wrong code indentation in conditional statement

2017-08-24 Thread Saeed Mahameed
f-by: Gal Pressman <g...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c b/drivers/net/ethern

[net-next 2/8] net/mlx5: Remove a leftover unused variable

2017-08-24 Thread Saeed Mahameed
From: Gal Pressman <g...@mellanox.com> mlx5_core_wq is no longer being used and should be removed from the code. Signed-off-by: Gal Pressman <g...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- include/linux/mlx5/driver.h | 2 -- 1 file changed, 2 deleti

[pull request][net-next 0/8] Mellanox, mlx5updates 2017-08-24

2017-08-24 Thread Saeed Mahameed
d hash table to search FTEs in a flow-group net/mlx5: Add hash table for flow groups in flow table net/mlx5: Add tracepoints Saeed Mahameed (1): net/mlx5: Add a blank line after declarations V2 drivers/net/ethernet/mellanox/mlx5/core/Makefile | 5 +- .../net/ethernet/mellano

[net-next 5/8] net/mlx5: Don't store reserved part in FTEs and FGs

2017-08-24 Thread Saeed Mahameed
ing so on a reserved part. Signed-off-by: Matan Barak <mat...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c | 2 +- drivers/net/ethernet/mellanox/mlx5/core/fs_core.c | 8 drivers/net/ethernet/mellanox/mlx5/c

[net-next 4/8] net/mlx5: Convert linear search for free index to ida

2017-08-24 Thread Saeed Mahameed
ows us to find a free index much faster. Signed-off-by: Matan Barak <mat...@mellanox.com> Reviewed-by: Maor Gottlieb <ma...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/fs_core.c | 56 --- drivers/ne

[net-next 1/8] net/mlx5: Add a blank line after declarations V2

2017-08-24 Thread Saeed Mahameed
The blank line should be after u32 val = ... and not after __be32 __iomem *addr = ... Fixes: ad5b39a95c83 ("net/mlx5: Add a blank line after declarations") Signed-off-by: Saeed Mahameed <sae...@mellanox.com> Reported-by: Joe Perches <j...@perches.com> --- drivers/net/ether

[PATCH net-next 4/4] net/mlx5e: E-switch, Add steering drop counters

2017-08-27 Thread Saeed Mahameed
1666 29 14 32 0 TX: bytes packets dropped 2880 44 2412 Signed-off-by: Eugenia Emantayev <euge...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/eswitch.c | 97 +++

[PATCH net-next 3/4] net/core: Add violation counters to VF statisctics

2017-08-27 Thread Saeed Mahameed
From: Eugenia Emantayev <euge...@mellanox.com> Add receive and transmit violation counters to be displayed in iproute2 VF statistics. Signed-off-by: Eugenia Emantayev <euge...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- include/linux/if_link.h

[PATCH net-next 1/4] net: Add SRIOV VGT+ support

2017-08-27 Thread Saeed Mahameed
erspace. Signed-off-by: Mohamad Haj Yahia <moha...@mellanox.com> Signed-off-by: Eugenia Emantayev <euge...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- include/linux/if_link.h | 2 + include/linux/netdevice.h| 12 + include/uapi/linux/

[PATCH net-next 0/4] SRIOV VF VGT+ and violation counters support

2017-08-27 Thread Saeed Mahameed
Hi Dave This series provides two security SRIOV related features (VGT+ and VF violation counters). VGT+ is a security feature that gives the administrator the ability of controlling the allowed VGT vlan IDs list that can be transmitted/received from/to the VF. The allowed VGT vlan IDs list is

[PATCH net-next 2/4] net/mlx5: Add SRIOV VGT+ support

2017-08-27 Thread Saeed Mahameed
<moha...@mellanox.com> Signed-off-by: Eugenia Emantayev <euge...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 28 ++ drivers/net/ethernet/mellanox/mlx5/core/eswitch.c | 496 +- drive

Re: [PATCH net-next 1/4] net: Add SRIOV VGT+ support

2017-08-28 Thread Saeed Mahameed
On Mon, Aug 28, 2017 at 3:38 AM, Jakub Kicinski <kubak...@wp.pl> wrote: > On Sun, 27 Aug 2017 14:06:15 +0300, Saeed Mahameed wrote: >> From: Mohamad Haj Yahia <moha...@mellanox.com> >> >> VGT+ is a security feature that gives the administrator the ability of &g

Re: [PATCH net-next 3/4] net/core: Add violation counters to VF statisctics

2017-08-28 Thread Saeed Mahameed
On Mon, Aug 28, 2017 at 3:43 AM, Jakub Kicinski <kubak...@wp.pl> wrote: > On Sun, 27 Aug 2017 14:06:17 +0300, Saeed Mahameed wrote: >> From: Eugenia Emantayev <euge...@mellanox.com> >> >> Add receive and transmit violation counters to be >> displayed in i

Re: [PATCH net-next 1/4] net: Add SRIOV VGT+ support

2017-08-29 Thread Saeed Mahameed
On Mon, Aug 28, 2017 at 6:52 PM, Sabrina Dubroca <s...@queasysnail.net> wrote: > 2017-08-27, 14:06:15 +0300, Saeed Mahameed wrote: > [...] >> +#define VF_VLAN_BITMAP DIV_ROUND_UP(VF_VLAN_N_VID, sizeof(__u64) * >> BITS_PER_BYTE) >> +struct ifla_vf_

Re: [pull request][net-next 0/3] Mellanox, mlx5 GRE tunnel offloads

2017-09-02 Thread Saeed Mahameed
On Sat, Sep 2, 2017 at 6:32 PM, Hannes Frederic Sowa <han...@stressinduktion.org> wrote: > Hi Saeed, > > On Sun, Sep 3, 2017, at 01:01, Saeed Mahameed wrote: >> On Thu, Aug 31, 2017 at 6:51 AM, Hannes Frederic Sowa >> <han...@stressinduktion.org> wrote: >>

Re: [pull request][net-next 0/3] Mellanox, mlx5 GRE tunnel offloads

2017-09-02 Thread Saeed Mahameed
On Thu, Aug 31, 2017 at 6:51 AM, Hannes Frederic Sowa <han...@stressinduktion.org> wrote: > Saeed Mahameed <sae...@mellanox.com> writes: > >> The first patch from Gal and Ariel provides the mlx5 driver support for >> ConnectX capability to perform IP version identific

Re: [pull request][net-next 0/3] Mellanox, mlx5 GRE tunnel offloads

2017-09-02 Thread Saeed Mahameed
On Sat, Sep 2, 2017 at 6:37 PM, Tom Herbert <t...@herbertland.com> wrote: > On Sat, Sep 2, 2017 at 6:32 PM, Hannes Frederic Sowa > <han...@stressinduktion.org> wrote: >> Hi Saeed, >> >> On Sun, Sep 3, 2017, at 01:01, Saeed Mahameed wrote: >>> On Thu,

[net-next 09/17] net/mlx5e: Non-atomic indicator for ring enabled state

2017-09-02 Thread Saeed Mahameed
o need for atomic read, a regular read operation is sufficient. In RQ creation time as well, there's no multiple threads trying to access it yet, hence a regular read can be used. Signed-off-by: Tariq Toukan <tar...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- dr

[net-next 14/17] net/mlx5e: Slightly increase RX page-cache size

2017-09-02 Thread Saeed Mahameed
hances for this to happen. Signed-off-by: Tariq Toukan <tar...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/en.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/e

[net-next 15/17] net/mlx5e: Use kernel's mechanism to avoid missing NAPIs

2017-09-02 Thread Saeed Mahameed
c: Eric Dumazet <eduma...@google.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/en.h | 5 - drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 1 - drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c | 10 +- 3 files cha

[net-next 16/17] net/mlx5e: Stop NAPI when irq balancer changes affinity

2017-09-02 Thread Saeed Mahameed
hedule it on the new CPU. Signed-off-by: Tariq Toukan <tar...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/en.h | 3 +++ drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 5 + drivers/net/ethernet/mellanox/m

[net-next 01/17] net/mlx5e: Reorganize struct mlx5e_rq

2017-09-02 Thread Saeed Mahameed
n <tar...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/en.h | 16 +--- drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 10 +- drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 13 ++--- 3

[net-next 08/17] net/mlx5e: Refactor data-path lro header function

2017-09-02 Thread Saeed Mahameed
From: Tariq Toukan <tar...@mellanox.com> Refactor function mlx5e_lro_update_hdr() to reduce number of branches. Signed-off-by: Tariq Toukan <tar...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5

[net-next 05/17] net/mlx5e: Small enhancements for RX MPWQE allocation and free

2017-09-02 Thread Saeed Mahameed
lation. Signed-off-by: Tariq Toukan <tar...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 6 ++ drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 18 ++ 2 files changed, 12 insertions(+), 12

[net-next 04/17] net/mlx5e: Use memset to init skbs_frags array to zeros

2017-09-02 Thread Saeed Mahameed
From: Tariq Toukan <tar...@mellanox.com> In RX data-path, use memset() instead of loop assignment to init the whole skbs_frags array. Signed-off-by: Tariq Toukan <tar...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx

[pull request][net-next 00/17] Mellanox, mlx5 updates 2017-09-03

2017-09-02 Thread Saeed Mahameed
Hi Dave, This series from Tariq includes micro data path optimization for mlx5e netdevice driver. Sorry about the late submission but most of the patches are really small and trivial. For more details please see tag log message below. Please pull and let me know if there's any problem. Thanks,

[net-next 10/17] net/mlx5e: Non-atomic RQ state indicator for UMR WQE in progress

2017-09-02 Thread Saeed Mahameed
d flag is no more accessed in NAPI. Use a boolean instead of a bit in ring state, so that its non-atomic set operations do not race with the atomic sets of the other bits. Signed-off-by: Tariq Toukan <tar...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- dr

[net-next 12/17] net/mlx5e: Remove unnecessary fields in ICO SQ

2017-09-02 Thread Saeed Mahameed
ed-off-by: Tariq Toukan <tar...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/en.h | 7 --- drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 2 -- drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 19 ++

[net-next 02/17] net/mlx5e: Replace multiplication by stride size with a shift

2017-09-02 Thread Saeed Mahameed
From: Tariq Toukan <tar...@mellanox.com> In RX data-path, use shift operations instead of a regular multiplication by stride size, as it is a power of two. Signed-off-by: Tariq Toukan <tar...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net

[net-next 13/17] net/mlx5e: Don't recycle page if moved to far NUMA

2017-09-02 Thread Saeed Mahameed
From: Tariq Toukan <tar...@mellanox.com> Avoid recycling an RX page if it moved to another NUMA node. Add an ethtool counter to count such events. Signed-off-by: Tariq Toukan <tar...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/

[net-next 11/17] net/mlx5e: Type-specific optimizations for RX post WQEs function

2017-09-02 Thread Saeed Mahameed
ed-off-by: Tariq Toukan <tar...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/en.h | 10 +-- drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 4 +- drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 101 +

[net-next 03/17] net/mlx5e: Remove unnecessary wqe_sz field from RQ buffer

2017-09-02 Thread Saeed Mahameed
From: Tariq Toukan <tar...@mellanox.com> Field is used only locally within the RQ create function. The use of a local variable is sufficient. Signed-off-by: Tariq Toukan <tar...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mella

[net-next 17/17] net/mlx5e: Distribute RSS table among all RX rings

2017-09-02 Thread Saeed Mahameed
rings. This gives better multi-stream performance and CPU util. Signed-off-by: Tariq Toukan <tar...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/en.h | 3 +-- drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c |

[net-next 06/17] net/mlx5e: NAPI busy-poll when UMR post is in progress

2017-09-02 Thread Saeed Mahameed
lanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c b/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c

[net-next 07/17] net/mlx5e: Early-return on empty completion queues

2017-09-02 Thread Saeed Mahameed
memory barriers. Signed-off-by: Tariq Toukan <tar...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 40 ++--- drivers/net/ethernet/mellanox/mlx5/core/en_tx.c | 16 +- 2 files changed, 32

[net V2 3/5] net/mlx5e: Fix napi poll with zero budget

2017-11-10 Thread Saeed Mahameed
2514 ("net/mlx5e: Early-return on empty completion queues") Signed-off-by: Saeed Mahameed <sae...@mellanox.com> Reviewed-by: Tariq Toukan <tar...@mellanox.com> Reported-by: Martin KaFai Lau <ka...@fb.com> Tested-by: Martin KaFai Lau <ka...@fb.com> Cc: kernel-t...@

[net V2 1/5] net/mlx5: Loop over temp list to release delay events

2017-11-10 Thread Saeed Mahameed
gned-off-by: Huy Nguyen <h...@mellanox.com> Signed-off-by: Feras Daoud <fera...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/et

[pull request][net V2 0/5] Mellanox, mlx5 fixes 2017-11-08

2017-11-10 Thread Saeed Mahameed
): net/mlx5: Loop over temp list to release delay events net/mlx5: Cancel health poll before sending panic teardown command Inbar Karmy (1): net/mlx5e: Set page to null in case dma mapping fails Saeed Mahameed (1): net/mlx5e: Fix napi poll with zero budget drivers/net/ether

[net V2 4/5] net/mlx5e: Set page to null in case dma mapping fails

2017-11-10 Thread Saeed Mahameed
ddress) and an extra put_page. Prevent this by nullifying the page pointer when dma_map fails. Fixes: accd58833237 ("net/mlx5e: Introduce RX Page-Reuse") Signed-off-by: Inbar Karmy <inb...@mellanox.com> Reviewed-by: Tariq Toukan <tar...@mellanox.com> Cc: kernel-t...@fb.com Signed

[net V2 2/5] net/mlx5: Cancel health poll before sending panic teardown command

2017-11-10 Thread Saeed Mahameed
com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/main.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/main.c b/drivers/net/ethernet/mellanox/mlx5/core/main.c index 0d2c8dcd6

[net V2 5/5] net/mlx5e: Increase Striding RQ minimum size limit to 4 multi-packet WQEs

2017-11-10 Thread Saeed Mahameed
5e: Support RX multi-packet WQE (Striding RQ)") Signed-off-by: Eugenia Emantayev <euge...@mellanox.com> Reviewed-by: Tariq Toukan <tar...@mellanox.com> Cc: kernel-t...@fb.com Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/en.h |

Re: [RFC 0/9] net: create adaptive software irq moderation library

2017-11-24 Thread Saeed Mahameed
On Sun, Nov 5, 2017 at 9:44 PM, Andy Gospodarek wrote: > From: Andy Gospodarek > > This RFC converts the adaptive interrupt moderation library from the > mlx5_en driver into a library so it can be used by any driver. The last > patch in this set adds

Re: [RFC 0/9] net: create adaptive software irq moderation library

2017-11-24 Thread Saeed Mahameed
On Fri, Nov 24, 2017 at 4:05 AM, Saeed Mahameed <sae...@dev.mellanox.co.il> wrote: > On Sun, Nov 5, 2017 at 9:44 PM, Andy Gospodarek <a...@greyhouse.net> wrote: >> From: Andy Gospodarek <go...@broadcom.com> >> >> This RFC converts the adaptive interrupt

Re: Creating cyclecounter and lock member in timecounter structure [ Was Re: [RFC 1/4] drm/i915/perf: Add support to correlate GPU timestamp with system time]

2017-11-30 Thread Saeed Mahameed
On Mon, Nov 27, 2017 at 2:05 AM, Sagar Arun Kamble wrote: > > > On 11/24/2017 7:01 PM, Thomas Gleixner wrote: >> >> On Fri, 24 Nov 2017, Sagar Arun Kamble wrote: >>> >>> On 11/24/2017 12:29 AM, Thomas Gleixner wrote: On Thu, 23 Nov 2017, Sagar Arun Kamble

[for-next 01/11] net/mlx5: E-Switch, Refactor vport representors initialization

2017-12-19 Thread Saeed Mahameed
so use kcalloc to allocate an array instead of kzalloc. Signed-off-by: Mark Bloch <ma...@mellanox.com> Reviewed-by: Or Gerlitz <ogerl...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 7 drivers/net/eth

[for-next 08/11] net/mlx5e: E-Switch, Move send-to-vport rule struct to en_rep

2017-12-19 Thread Saeed Mahameed
From: Mark Bloch <ma...@mellanox.com> Move struct mlx5_esw_sq which keeps send-to-vport rule to from the eswitch code to mlx5e and rename it to better reflect where it belongs Signed-off-by: Mark Bloch <ma...@mellanox.com> Reviewed-by: Or Gerlitz <ogerl...@mellanox.com> Si

[for-next 06/11] net/mlx5e: Move ethernet representors data into separate struct

2017-12-19 Thread Saeed Mahameed
mlx5e. Signed-off-by: Mark Bloch <ma...@mellanox.com> Reviewed-by: Or Gerlitz <ogerl...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 58 ++ drivers/net/ethernet/mellanox/m

[pull request][for-next 00/11] Mellanox, mlx5 E-Switch updates 2017-12-19

2017-12-19 Thread Saeed Mahameed
Hi Dave and Doug, == This series includes updates for mlx5 E-Switch infrastructures, to be merged into net-next and rdma-next trees. Mark's patches provide E-Switch refactoring that generalize the mlx5 E-Switch vf representors interfaces and data structures. The serious is mainly

[for-next 02/11] net/mlx5: E-Switch, Refactor load/unload of representors

2017-12-19 Thread Saeed Mahameed
From: Mark Bloch <ma...@mellanox.com> Refactor the load/unload stages for better code reuse. Signed-off-by: Mark Bloch <ma...@mellanox.com> Reviewed-by: Or Gerlitz <ogerl...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- .../ethernet/mellanox/mlx5

[for-next 03/11] net/mlx5: E-Switch, Simplify representor load/unload callback API

2017-12-19 Thread Saeed Mahameed
ed-off-by: Mark Bloch <ma...@mellanox.com> Reviewed-by: Or Gerlitz <ogerl...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 14 +++--- drivers/net/ethernet/mellanox/mlx5/core/eswitch.h

[for-next 05/11] net/mlx5: E-Switch, Create a dedicated send to vport rule deletion function

2017-12-19 Thread Saeed Mahameed
gt; Reviewed-by: Or Gerlitz <ogerl...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 2 +- drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | 1 + drivers/net/ethernet/mellanox/mlx5/core/eswitch

[net 04/14] net/mlx5e: Fix ETS BW check

2017-12-19 Thread Saeed Mahameed
From: Huy Nguyen <h...@mellanox.com> Fix bug that allows ets bw sum to be 0% when ets tc type exists. Fixes: 08fb1dacdd76 ('net/mlx5e: Support DCBNL IEEE ETS') Signed-off-by: Moshe Shemesh <mo...@mellanox.com> Reviewed-by: Huy Nguyen <h...@mellanox.com> Signed-off-by: S

[net 09/14] net/mlx5e: Fix possible deadlock of VXLAN lock

2017-12-19 Thread Saeed Mahameed
N tunneling") Signed-off-by: Gal Pressman <g...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/vxlan.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/net/ethernet/mellanox

[net 06/14] net/mlx5e: Fix defaulting RX ring size when not needed

2017-12-19 Thread Saeed Mahameed
uge...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/en.h | 8 ++-- drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c | 10 -- drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 15 +++ d

[net 12/14] net/mlx5: Fix steering memory leak

2017-12-19 Thread Saeed Mahameed
rt multiple updates of steering rules in parallel") Signed-off-by: Maor Gottlieb <ma...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/fs_core.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(

[net 08/14] net/mlx5: Fix error flow in CREATE_QP command

2017-12-19 Thread Saeed Mahameed
ua <mo...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/qp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/qp.c b/drivers/net/ethernet/mellanox/mlx5/core/qp.c

[net 01/14] net/mlx5: FPGA, return -EINVAL if size is zero

2017-12-19 Thread Saeed Mahameed
. [..]/mlx5/core/fpga/sdk.c:115 mlx5_fpga_mem_write_i2c() error: uninitialized symbol 'err'. fix that. Fixes: a9956d35d199 ('net/mlx5: FPGA, Add SBU infrastructure') Signed-off-by: Kamal Heib <kam...@mellanox.com> Reviewed-by: Yevgeny Kliteynik <klit...@mellanox.com> Signed

[net 05/14] net/mlx5e: Fix features check of IPv6 traffic

2017-12-19 Thread Saeed Mahameed
Fixes: b3f63c3d5e2c ("net/mlx5e: Add netdev support for VXLAN tunneling") Signed-off-by: Gal Pressman <g...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(

[net 07/14] net/mlx5: Fix misspelling in the error message and comment

2017-12-19 Thread Saeed Mahameed
From: Eugenia Emantayev <euge...@mellanox.com> Fix misspelling in word syndrome. Fixes: e126ba97dba9 ("mlx5: Add driver for Mellanox Connect-IB adapters") Signed-off-by: Eugenia Emantayev <euge...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com&g

Re: [pull request][for-next 00/11] Mellanox, mlx5 E-Switch updates 2017-12-19

2017-12-19 Thread Saeed Mahameed
On Tue, Dec 19, 2017 at 2:46 PM, Marcelo Ricardo Leitner <marcelo.leit...@gmail.com> wrote: > On Tue, Dec 19, 2017 at 02:39:38PM -0800, Saeed Mahameed wrote: >> On Tue, Dec 19, 2017 at 1:54 PM, Marcelo Ricardo Leitner >> <marcelo.leit...@gmail.com> wrote: >> >

Re: [pull request][for-next 00/11] Mellanox, mlx5 E-Switch updates 2017-12-19

2017-12-19 Thread Saeed Mahameed
On Tue, Dec 19, 2017 at 1:54 PM, Marcelo Ricardo Leitner <marcelo.leit...@gmail.com> wrote: > On Tue, Dec 19, 2017 at 12:33:29PM -0800, Saeed Mahameed wrote: >> Hi Dave and Doug, >> >> == >> This series includes updates for mlx5 E-Switch infrastructur

[for-next 04/11] net/mlx5: E-Switch, Move mlx5e only logic outside E-Switch

2017-12-19 Thread Saeed Mahameed
ch <ma...@mellanox.com> Reviewed-by: Or Gerlitz <ogerl...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 57 +- drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | 9 ++-- .../eth

[for-next 07/11] net/mlx5: E-Switch, Create generic header struct to be used by representors

2017-12-19 Thread Saeed Mahameed
moved to a more generic interface, rdma driver representors can be added and utilize the same mechanism as the Ethernet driver representors use. Signed-off-by: Mark Bloch <ma...@mellanox.com> Reviewed-by: Or Gerlitz <ogerl...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mella

[for-next 11/11] net/mlx5: Separate ingress/egress namespaces for each vport

2017-12-19 Thread Saeed Mahameed
Gal Pressman <g...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/eswitch.c | 10 +- drivers/net/ethernet/mellanox/mlx5/core/fs_core.c | 145 ++ drivers/net/ethernet/mellanox/mlx5/core/fs_core.h | 4

[for-next 09/11] net/mlx5e: E-Switch, Use the name of static array instead of its address

2017-12-19 Thread Saeed Mahameed
t;net/mlx5: Add SRIOV VF max rate configuration support") Signed-off-by: Gal Pressman <g...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/eswitch.c | 26 +++ 1 file changed, 13 insertions(+), 13

[for-next 10/11] net/mlx5: Fix ingress/egress naming mistake

2017-12-19 Thread Saeed Mahameed
From: Gal Pressman <g...@mellanox.com> The functions names do not represent their actions, switch the mistaken ingress/egress naming. Fixes: fba53f7b5719 ("net/mlx5: Introduce mlx5_flow_steering structure") Signed-off-by: Gal Pressman <g...@mellanox.com> Signed-off-b

[net 02/14] Revert "mlx5: move affinity hints assignments to generic code"

2017-12-19 Thread Saeed Mahameed
nce it is used in mlx5_ib driver. Fixes: a435393acafb ("mlx5: move affinity hints assignments to generic code") Cc: Sagi Grimberg <s...@grimberg.me> Cc: Thomas Gleixner <t...@linutronix.de> Cc: Jes Sorensen <jsoren...@fb.com> Reported-by: Jes Sorensen <jsoren...@fb.com&g

[net 03/14] net/mlx5: Fix rate limit packet pacing naming and struct

2017-12-19 Thread Saeed Mahameed
pliant with the Firmware <-> Driver definition. Fixes: 7486216b3a0b ("{net,IB}/mlx5: mlx5_ifc updates") Fixes: 1466cc5b23d1 ("net/mlx5: Rate limit tables support") Signed-off-by: Eran Ben Elisha <era...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com

[net 11/14] net/mlx5e: Prevent possible races in VXLAN control flow

2017-12-19 Thread Saeed Mahameed
inlock protecting the radix-tree is still needed in order to synchronize radix-tree access from softirq context. Fixes: b3f63c3d5e2c ("net/mlx5e: Add netdev support for VXLAN tunneling") Signed-off-by: Gal Pressman <g...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com&g

[net 14/14] net/mlx5: Stay in polling mode when command EQ destroy fails

2017-12-19 Thread Saeed Mahameed
rq, so no interrupts will be received. Fixes: e126ba97dba9 ("mlx5: Add driver for Mellanox Connect-IB adapters") Signed-off-by: Moshe Shemesh <mo...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/eq.c | 4 +---

[net 13/14] net/mlx5: Cleanup IRQs in case of unload failure

2017-12-19 Thread Saeed Mahameed
t;mlx5: Add driver for Mellanox Connect-IB adapters") Signed-off-by: Moshe Shemesh <mo...@mellanox.com> Signed-off-by: Saeed Mahameed <sae...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/eq.c | 20 +--- include/linux/mlx5/driver.h

<    12   13   14   15   16   17   18   19   20   21   >