Received: by 10.192.165.156 with SMTP id m28csp52857imm; Tue, 10 Apr 2018 16:13:17 -0700 (PDT) X-Google-Smtp-Source: AIpwx48jK98k4JZ1STfZqMw0cFdW6OBsR22nA6ILHhjwCIXp04mXDKdAuc8GvXGICk/78qfRPl+a X-Received: by 2002:a17:902:6085:: with SMTP id s5-v6mr2378802plj.307.1523401997844; Tue, 10 Apr 2018 16:13:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523401997; cv=none; d=google.com; s=arc-20160816; b=i7DV7E8Oq/eDghh1mdFriBW8lqG368KzS7Q66VRgPwfeh0Ctnm10QivQMybsU1VjW1 iGSzkcN+jdd0waODD31ePqjDVI8nsj3HtpbQZHw6wfBsAHaieC08isiThnBNd+4D4HkJ GOgXrzTtJgp5r2L2dOMjrBHfRZzCOqaNbmzvyn3BdnIyGj/iKXK9uQMPA1y6hJ2rvlhm AX/fpMVWqtGhR0vAjV7Pq3/aV+XvDQPeXJEPP634Fo6zcMXzYcb2NcIJ5f+3TUAlgpv/ svaqaLY0q8CoMkYr0ZgiR9Z9OEzz4Kdh6vwG/6OmzZO9C+XVjxt8jK3XVJ83KVghm5h5 9yLQ== 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=kQn74l3oIAB1zf2rDsYEOGZbIHUpB/jK8fOvS3qmhiw=; b=G7IYWyCh2zoU3uUkKNKXkanIy3/cUf7WW8vdchZFWnneFytAZCoZ3ICmuGHMzzl0OZ NrKt2T93BzFkI63oPCOUg4nV6rMJg59YPFZuQOhmquGf2d6DlMmf2HLDWjMDF3WtbOdd HVNTrgAkJXbJObwWHFc6NH+o3v0txVFJJb7bIoAYa9yruj3hzhI6luLbree1yEzx0+kq SRZSChrLjmupLkjJenToYix/W5GMbV2cRLmt9pVt1zWGRPc/uyYmlJUGPo+k7KSNfX1r CPCZuuqWhsv5XAjmfzFuFfX6+VJvXOEhqp80e+q1W9wbfin7T9VAkTw4snx8477RiVHM 4cdQ== 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 64-v6si3481398ply.528.2018.04.10.16.12.41; Tue, 10 Apr 2018 16:13:17 -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 S1755296AbeDJWdt (ORCPT + 99 others); Tue, 10 Apr 2018 18:33:49 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:41490 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752783AbeDJWdq (ORCPT ); Tue, 10 Apr 2018 18:33:46 -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 8B7F2CBB; Tue, 10 Apr 2018 22:33:45 +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.15 163/168] net/mlx5e: Fix traffic being dropped on VF representor Date: Wed, 11 Apr 2018 00:25:05 +0200 Message-Id: <20180410212808.165760465@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180410212800.144079021@linuxfoundation.org> References: <20180410212800.144079021@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.15-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 @@ -44,6 +44,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, @@ -824,9 +829,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);