Received: by 10.192.165.156 with SMTP id m28csp31120imm; Tue, 10 Apr 2018 15:46:10 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+FFymbvkd93igNw2Zql18Hd5o7Tl3T/A5Aww69eqHTYNYVE4T4RNxqGoSpz+8iBYhEkP1N X-Received: by 10.101.78.194 with SMTP id w2mr1617023pgq.242.1523400370834; Tue, 10 Apr 2018 15:46:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523400370; cv=none; d=google.com; s=arc-20160816; b=Kl2J4kd1d42ZI+4jeepBjTmwbHCXAKxXkN2sErJPisDLsXolVT0Zv0944vi7TKDOLq kGfIE+3EBhehQwqsTHKeedH84EfJ4JV5jDV4J7Hq9na1e0XjZZqHHxfTUO0Wqjq0cfQ6 sIElxaeaMkWqsFq58BhismJTcltcFkoFvGQwXYbGGPqEws+Thtn5fD1BYqwL5CTtrdaj EpI6eBOXiu9xFzGAM/XtyVnTxt6rIuFlIDErIHpfg1/QYmUGJZi6an4OgeN12DuvCGMe Ykr8cxjjXLDq4OEY8NFCOoRh1L6qpen1NOm8K31biiF4geFFXf396x3INTI6TXYGxBXg 9uLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=2wiQMuaMUd6G6RJzYtPgZ1wU6my895qDM3GteMsKXWo=; b=fZCAogm28jqozQhe22qKih7bRKwrh/+epfZfyG5KVPN9MG1dlbKaLjm0/wnBnEUT9M ZeSVIIjkwU3g40QDOC/SSZKtuRoyZfPdk5aA08cRXfSuOrns4rhOcVsLf+z0yGXrNvrg Wa8Zs06jIIhX7Zq23zqVyPIdQZqNG7nkdikjba+jYh7nD2oQh+WkKGh4ib+hBtYGk0AS gVSCLq+UqKJAVlZuoyQMWbDDHEiK11lpClVbg4iSdFh5mkn/Rw/Kq6SlMDpAlghn+CeD pisauzFLgfSXvMfYD3rw3T2+5qp34WKi/aAmu6c/SL4Vw5AhqsB2YryzEpUAcjyML4Ls Y7sQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h4-v6si3558200pln.744.2018.04.10.15.45.21; Tue, 10 Apr 2018 15:46:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932802AbeDJWlj (ORCPT + 99 others); Tue, 10 Apr 2018 18:41:39 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:46696 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932131AbeDJWkS (ORCPT ); Tue, 10 Apr 2018 18:40:18 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id B5CF3DE8; Tue, 10 Apr 2018 22:40:17 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Roi Dayan , Paul Blakey , Or Gerlitz , Saeed Mahameed Subject: [PATCH 4.14 133/138] net/mlx5e: Fix traffic being dropped on VF representor Date: Wed, 11 Apr 2018 00:25:23 +0200 Message-Id: <20180410212917.702855218@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180410212902.121524696@linuxfoundation.org> References: <20180410212902.121524696@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Roi Dayan [ Upstream commit 4246f698dd58e3c6246fa919ef0b0a1d29a57e4a ] Increase representor netdev RQ size to avoid dropped packets. The current size (two) is just too small to keep up with conventional slow path traffic patterns. Also match the SQ size to the RQ size. Fixes: cb67b832921c ("net/mlx5e: Introduce SRIOV VF representors") Signed-off-by: Roi Dayan Reviewed-by: Paul Blakey Reviewed-by: Or Gerlitz Signed-off-by: Saeed Mahameed Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) --- a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c @@ -43,6 +43,11 @@ #include "en_tc.h" #include "fs_core.h" +#define MLX5E_REP_PARAMS_LOG_SQ_SIZE \ + max(0x6, MLX5E_PARAMS_MINIMUM_LOG_SQ_SIZE) +#define MLX5E_REP_PARAMS_LOG_RQ_SIZE \ + max(0x6, MLX5E_PARAMS_MINIMUM_LOG_RQ_SIZE) + static const char mlx5e_rep_driver_name[] = "mlx5e_rep"; static void mlx5e_rep_get_drvinfo(struct net_device *dev, @@ -798,9 +803,9 @@ static void mlx5e_build_rep_params(struc MLX5_CQ_PERIOD_MODE_START_FROM_CQE : MLX5_CQ_PERIOD_MODE_START_FROM_EQE; - params->log_sq_size = MLX5E_PARAMS_MINIMUM_LOG_SQ_SIZE; + params->log_sq_size = MLX5E_REP_PARAMS_LOG_SQ_SIZE; params->rq_wq_type = MLX5_WQ_TYPE_LINKED_LIST; - params->log_rq_size = MLX5E_PARAMS_MINIMUM_LOG_RQ_SIZE; + params->log_rq_size = MLX5E_REP_PARAMS_LOG_RQ_SIZE; params->rx_am_enabled = MLX5_CAP_GEN(mdev, cq_moderation); mlx5e_set_rx_cq_mode_params(params, cq_period_mode);