Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2336798pxa; Mon, 17 Aug 2020 07:16:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywtVG+7k4HhcRGLBinfqj4TOPFNr4lRTqJwNxsRM+niZ5LmOz7tlq8jvbIYt34KhCQTlWS X-Received: by 2002:a50:f288:: with SMTP id f8mr15369727edm.247.1597673799563; Mon, 17 Aug 2020 07:16:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597673799; cv=none; d=google.com; s=arc-20160816; b=SueEHTSdZcmtz30vaPEePoZnEE/Sp2vihMPICPPdqUGdFCRGKkHPtl7t0aB/zFy5ms fub076lfr6Hx7Yv16AbhLOhhoyBKnqzbVYXzLL+8+LXYxDTJZa11YjJSapW5cvKFk9HM 9Ngle5hqAXDXAKDALOpma8P9B4y84t+XvEgUlxxWLGPPp+uGglAM0+Xmy5RG5wBjmFAK u/pBb+RY2X2j1VMnfT7FSKGPmMkriv+V9y7yKzgzvpJ/HspDX+s8kffgGTkefDlu4Ifp APW92QIXacHuacIQ/p4XzKVy5cRC+tL8sBghtdL+78sVsRh0dH3B+euVN/UhfPiENxcb lwTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5GU+hvhFq5FTqZEE9oONoXIkAiVxgc+Oe9aNa54OoQw=; b=A0CP5VOO3z1OyoFlJF8j8IW4JqmxtopZewfpQoDiK39QCSr9Z++mRgwEfoi3kQ3kOr wKzvvzxkwfnWoXRSX2sSvmGgly3eY1zY31tH9JiUSmy6At4xCnuM8g3qRbE7MKkwJQF4 bE47Gg4vtCbLzhWQpFJypGhgWpPbHvDo/7K+LWHoXT2Ht/MbvWHcaYm9eTA1phRIyJz5 priENXJ/69JRTrOAnw0aKdNuPk7LpUiuSX3T982T9ACss7uHXq6aR7l9WsdcAhHjqzRS qRkSOTXrHkIU1rt2j7tEZ1SuszQW52n//OCfF0sZ0eOycfN5Z5sOa6xgYLqM7h50oeBN FZ8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=El20VIDg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t4si11092160ejt.506.2020.08.17.07.16.14; Mon, 17 Aug 2020 07:16:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=El20VIDg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728920AbgHQOPk (ORCPT + 99 others); Mon, 17 Aug 2020 10:15:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728899AbgHQOPg (ORCPT ); Mon, 17 Aug 2020 10:15:36 -0400 Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5341DC061342 for ; Mon, 17 Aug 2020 07:15:36 -0700 (PDT) Received: by mail-ed1-x544.google.com with SMTP id di22so12365913edb.12 for ; Mon, 17 Aug 2020 07:15:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=5GU+hvhFq5FTqZEE9oONoXIkAiVxgc+Oe9aNa54OoQw=; b=El20VIDg2NdzHYr8IDobZ35xvin+mYvK5IfVN6E9Mz2vqJozybe5i/2Wlxsfn/Sw/y f0k6vhoiwuZpjkzNSH7o+/kxhGMI3IyIdKA4L1csfLFdCS6VvpM1KpyCMatdms38ockb vn6Q6r/gun8WRAuHZEgnHoD53UF7AoIaf1iQ4RKKUOFzHezYOMIPu4FjKKdkid1QrTsN XYkEGMgZuM9FY7pC3oZAX3Vg3vp1JBtMrz/WWZifbhpZStXw/b3vMHLDcnShb+UIMLC4 o9oDwufDPJMlMN5ma80n0X1ZjkPVvlDsh9iTTR2Y6qpP13GK5L2sWymrfnPwd48VcEor G8Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=5GU+hvhFq5FTqZEE9oONoXIkAiVxgc+Oe9aNa54OoQw=; b=jMhtnqtIZtorVGkD/zyIm0CctpSetce0wMDmF0WZANGLs5e6SIDkFq5TeHP2MEevIC xA+USZizPQoydUGx5u6ftoBBcLKIaQzWpihP+RqeosgwnB9BvLXH3lZ5pGZ82x+6+4rw 6BRbJbRxBWNGjorTFTq9xGjiuynb6JeqgzrAvi3z5zcvggqajduLamUee+wUuC1/Qfu8 /u64QtyHYMDpQAbIgMnINnIJzPb8EK7TtVhtvSVjcqwWYM8NNydiuTNwmn9moy4Uv5Wp s5IAnVqrpdp8UzHm/ZXyuam8SsO9vpckStV1n6WTowRkZQ5Rzapr1OYEt/djWdZDo164 t6FQ== X-Gm-Message-State: AOAM533r11Bh5EbaBHSBc4cbpK8e3iYYGX2K5VkhwpfjuzyY10tCWqSk A+jx31NA4RqvvNhC5F71TmoMEQ== X-Received: by 2002:a05:6402:3121:: with SMTP id dd1mr15268241edb.72.1597673735048; Mon, 17 Aug 2020 07:15:35 -0700 (PDT) Received: from netronome.com ([2001:982:7ed1:403:9eeb:e8ff:fe0d:5b6a]) by smtp.gmail.com with ESMTPSA id g19sm14563399ejz.5.2020.08.17.07.15.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 07:15:34 -0700 (PDT) Date: Mon, 17 Aug 2020 16:15:33 +0200 From: Simon Horman To: Allen Pais Cc: jes@trained-monkey.org, davem@davemloft.net, kuba@kernel.org, kda@linux-powerpc.org, dougmill@linux.ibm.com, cooldavid@cooldavid.org, mlindner@marvell.com, borisp@mellanox.com, keescook@chromium.org, linux-acenic@sunsite.dk, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-rdma@vger.kernel.org, oss-drivers@netronome.com, Romain Perier Subject: Re: [oss-drivers] [PATCH 16/20] ethernet: netronome: convert tasklets to use new tasklet_setup() API Message-ID: <20200817141532.GA4130@netronome.com> References: <20200817082434.21176-1-allen.lkml@gmail.com> <20200817082434.21176-18-allen.lkml@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200817082434.21176-18-allen.lkml@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 17, 2020 at 01:54:30PM +0530, Allen Pais wrote: > In preparation for unconditionally passing the > struct tasklet_struct pointer to all tasklet > callbacks, switch to using the new tasklet_setup() > and from_tasklet() to pass the tasklet pointer explicitly. > > Signed-off-by: Romain Perier > Signed-off-by: Allen Pais Reviewed-by: Simon Horman But: This series should be targeted at net-next, and thus have net-next in its subject [PATCH net-next x/y] ... And it should be posted when net-next is open: it is currently closed. http://vger.kernel.org/~davem/net-next.html > --- > drivers/net/ethernet/netronome/nfp/nfp_net_common.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git a/drivers/net/ethernet/netronome/nfp/nfp_net_common.c b/drivers/net/ethernet/netronome/nfp/nfp_net_common.c > index 39ee23e8c0bf..1dcd24d899f5 100644 > --- a/drivers/net/ethernet/netronome/nfp/nfp_net_common.c > +++ b/drivers/net/ethernet/netronome/nfp/nfp_net_common.c > @@ -2287,9 +2287,9 @@ static bool nfp_ctrl_rx(struct nfp_net_r_vector *r_vec) > return budget; > } > > -static void nfp_ctrl_poll(unsigned long arg) > +static void nfp_ctrl_poll(struct tasklet_struct *t) > { > - struct nfp_net_r_vector *r_vec = (void *)arg; > + struct nfp_net_r_vector *r_vec = from_tasklet(r_vec, t, tasklet); > > spin_lock(&r_vec->lock); > nfp_net_tx_complete(r_vec->tx_ring, 0); > @@ -2337,8 +2337,7 @@ static void nfp_net_vecs_init(struct nfp_net *nn) > > __skb_queue_head_init(&r_vec->queue); > spin_lock_init(&r_vec->lock); > - tasklet_init(&r_vec->tasklet, nfp_ctrl_poll, > - (unsigned long)r_vec); > + tasklet_setup(&r_vec->tasklet, nfp_ctrl_poll); > tasklet_disable(&r_vec->tasklet); > } > > -- > 2.17.1 >