From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5BCFCA04DB; Thu, 10 Dec 2020 15:24:43 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9AAD0C9C2; Thu, 10 Dec 2020 15:22:57 +0100 (CET) Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by dpdk.org (Postfix) with ESMTP id D4E45C9A8 for ; Thu, 10 Dec 2020 15:22:54 +0100 (CET) Received: by mail-pg1-f196.google.com with SMTP id w16so4340115pga.9 for ; Thu, 10 Dec 2020 06:22:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pensando.io; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8Ny+tWwosX/t4KeXkMep5gGR92PZGMqlLzIZ1COugzw=; b=vt7eT9sPZ8AW6n4tuZc8iWxwxJLsniyx4ZGzvhHNMzRQgJrY0UuWgYkdhD6KRiw/OR cfJzRqSCUjksT7HqVJ9mtEDVrMkhZ8ktpfFhAoWvlFjkPpFM5bF3oxeJXHebyWRl+ZY1 DOwYvay7G0VBJZKiY1Li+xebFam5HHZA1OZT4tcdmOkeiDWTmHmr+RTH+rIzY7KLTC2j ejuPQgGlLGVvJsYHnPP5U49ikgZsWAjzJCCrCHk7nIpZERWM8JHy6HokEO1hBFeleqct 1NWR76wdsMTWKI3+fvso7FzctcXLS3DShu/8DYXlmJLbq+dJo+GE9CjGA58usGwixz6s +JjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=8Ny+tWwosX/t4KeXkMep5gGR92PZGMqlLzIZ1COugzw=; b=S54KRE/eh4bD4DnMtVBfw31WVNOdQ3nIydcLnXjVYJXbmkGuF1R4Z/gCj1yX/bMf2f TI5aZjSYYw9g9Iyx/+wJBfcdeT++rr6XC+Pd6u6s3wCPB3UTMr8U6wGsDJsvVxA8v1HO qPrdJnPaU8JKPiiUvWHLcMLhSFt2FYOWVh+RJKUaUuMdMyU+svnWhheZo3q7ZsF9v3L+ 4A5Zk7AHWTVeT5ykbw2ImsDFbQDsZKfvisPjrKssQvnHzF8zyb7oMYWiKCEntj0OSkAD /7UfgeEXildCGN1eWLSy+BjiCLihyH6hHFXS8bXOwvT/s+dYzxfo2+AA4idV7LMh0yGq 6cEQ== X-Gm-Message-State: AOAM531c6ioOxEwJ70lKHJ/7gF0aBiKi1B/EtBnJSe5v7eC4UoMjgR6S iLvFAEaeOG1Lri6A+AnLdmGZBf8UHw+IaA== X-Google-Smtp-Source: ABdhPJzj87OM1EsjNNM7EZvHPCkLePiSwGsenq8KHAb9jPD2pPYqYT7avojnfDywKjbHXoReQXflHA== X-Received: by 2002:a63:4e4c:: with SMTP id o12mr6842028pgl.348.1607610172933; Thu, 10 Dec 2020 06:22:52 -0800 (PST) Received: from driver-dev1.pensando.io ([12.226.153.42]) by smtp.gmail.com with ESMTPSA id n10sm6296983pge.92.2020.12.10.06.22.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Dec 2020 06:22:52 -0800 (PST) From: Andrew Boyer To: dev@dpdk.org Cc: Alfredo Cardigliano , Andrew Boyer Date: Thu, 10 Dec 2020 06:22:31 -0800 Message-Id: <20201210142231.63209-7-aboyer@pensando.io> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201210142231.63209-1-aboyer@pensando.io> References: <20201210142231.63209-1-aboyer@pensando.io> Subject: [dpdk-dev] [PATCH 6/6] net/ionic: stop queues when LIF is stopped X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Otherwise they can not be restarted. Signed-off-by: Andrew Boyer --- drivers/net/ionic/ionic_lif.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/net/ionic/ionic_lif.c b/drivers/net/ionic/ionic_lif.c index 2452451be..98797b22b 100644 --- a/drivers/net/ionic/ionic_lif.c +++ b/drivers/net/ionic/ionic_lif.c @@ -68,9 +68,23 @@ ionic_qcq_disable(struct ionic_qcq *qcq) void ionic_lif_stop(struct ionic_lif *lif) { + uint32_t i; + IONIC_PRINT_CALL(); lif->state &= ~IONIC_LIF_F_UP; + + for (i = 0; i < lif->nrxqcqs; i++) { + struct ionic_qcq *rxq = lif->rxqcqs[i]; + if (rxq->flags & IONIC_QCQ_F_INITED) + (void)ionic_dev_rx_queue_stop(lif->eth_dev, i); + } + + for (i = 0; i < lif->ntxqcqs; i++) { + struct ionic_qcq *txq = lif->txqcqs[i]; + if (txq->flags & IONIC_QCQ_F_INITED) + (void)ionic_dev_tx_queue_stop(lif->eth_dev, i); + } } void -- 2.17.1