Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1948775ima; Thu, 25 Oct 2018 07:26:31 -0700 (PDT) X-Google-Smtp-Source: AJdET5deaRPJPTp8xp3TXans10zi4EKYMAUXykLxdFsdtDSGBAipkC2C3bJyEA7DczvB1dorCqGb X-Received: by 2002:a63:a40a:: with SMTP id c10-v6mr1738294pgf.140.1540477591146; Thu, 25 Oct 2018 07:26:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540477591; cv=none; d=google.com; s=arc-20160816; b=Uu+ENpYMQmqfGyPcv1/aDXRolI8laHSq/6Rgl2iINtbYMym4t0Ijc6Jqfh7Wv3DlsS mxoP61YSAR4OxI019z7P5GoPaekcakIpEDUvCKE1IEZomUXF24Xlz0AUe/ibnOWfip2A lz/LS2fwkqN25xehW6Rj0wWK1WlU0akEhZSR3jARY5DATPuqB5FEIdR9GkQjI8qgROqo Fvkr+dLLBA3D58xOCnsMED6rzkuop0cLHF/BMuftxW5GbUdWEdPpeo23YYGWhmosSNOS W7qT0keCfJTmnfupPKAQ1WsKNTUSOPj/RUepl0zn9znt3n1XZuz19U2zEgALr8/YDSEv RAWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=Z4x9Nbs/anhlJW5jCOUwJ61f5pWABFDCAE9kM4o3QdU=; b=EBV0tK34WcHQ4fLXaz/RxJJvILwwY5gJi8F6FhwpJ2fxktKYVXZQEZI9sqOEBM/lHh HIZ9iaxFAKPEQj1WoO4o4c5nyAz/6H+KI8aDbwfMJcHxYCLVME9dncLqJQaOcjCIs1e+ tY/GcuJLDbu9f1uqjspW9lqJfwiR+FYmQcZYn6IqORpQI5BnCXv+1pwknctdauGEdhGm xNnPgEcR3AIgeSpVfWG7SXTCYMvrdifvunxcdsOiHYT+wKgpU0JbMXLXtsKQuJ35BCcj oPh2OmPex/8HpB47zNk4sWLYC9y1mk0UBYJEEheRoA4jurDooLUcgJwv9CZeZ9vwkLP1 S2ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Lve6w1gJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w3-v6si7801129plz.68.2018.10.25.07.25.47; Thu, 25 Oct 2018 07:26:31 -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; dkim=pass header.i=@kernel.org header.s=default header.b=Lve6w1gJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731051AbeJYWx2 (ORCPT + 99 others); Thu, 25 Oct 2018 18:53:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:35974 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728246AbeJYWx0 (ORCPT ); Thu, 25 Oct 2018 18:53:26 -0400 Received: from sasha-vm.mshome.net (unknown [167.98.65.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 68AE62086D; Thu, 25 Oct 2018 14:20:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540477228; bh=QLk4qvPUhRG2AAItDTXPgzGYXlAWhY3f4PwJPWFnXHs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Lve6w1gJPYSQFYFC9xuUNjyXjB1sPiu0zhp6X6AoGkdBndTVUWZzF5Bm1kganJJbf Y6/ctvwiFeVlrZUuz9P+2dpeEuJuJk1ySCQQyeKpd/L4TanJqWepA4IN0waV1YZrne XleEs5tZvTf54R/x4Y/0jThU34zgU3e6EqVuH28s= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Eugenia Emantayev , Eran Ben Elisha , Or Gerlitz , "David S . Miller" , Sasha Levin Subject: [PATCH AUTOSEL 3.18 62/98] net/mlx4_en: Remove dependency between timestamping capability and service_task Date: Thu, 25 Oct 2018 10:18:17 -0400 Message-Id: <20181025141853.214051-62-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181025141853.214051-1-sashal@kernel.org> References: <20181025141853.214051-1-sashal@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Eugenia Emantayev [ Upstream commit fc9f5ea9b4ecbe9b7839c92f0a54261809c723d3 ] Service task is responsible for other tasks in addition to timestamping overflow check. Launch it even if timestamping is not supported by device. Fixes: 07841f9d94c1 ('net/mlx4_en: Schedule napi when RX buffers allocation fails') Signed-off-by: Eugenia Emantayev Signed-off-by: Eran Ben Elisha Signed-off-by: Or Gerlitz Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/mellanox/mlx4/en_netdev.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx4/en_netdev.c b/drivers/net/ethernet/mellanox/mlx4/en_netdev.c index f31814293d3c..980dd359e3f7 100644 --- a/drivers/net/ethernet/mellanox/mlx4/en_netdev.c +++ b/drivers/net/ethernet/mellanox/mlx4/en_netdev.c @@ -2638,9 +2638,8 @@ int mlx4_en_init_netdev(struct mlx4_en_dev *mdev, int port, } queue_delayed_work(mdev->workqueue, &priv->stats_task, STATS_DELAY); - if (mdev->dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_TS) - queue_delayed_work(mdev->workqueue, &priv->service_task, - SERVICE_TASK_DELAY); + queue_delayed_work(mdev->workqueue, &priv->service_task, + SERVICE_TASK_DELAY); err = register_netdev(dev); if (err) { -- 2.17.1