From patchwork Tue Feb 16 20:35:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Boyer X-Patchwork-Id: 87941 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 73C64A054D; Tue, 16 Feb 2021 21:36:02 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1441D1607A4; Tue, 16 Feb 2021 21:35:54 +0100 (CET) Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by mails.dpdk.org (Postfix) with ESMTP id D5ED316079A for ; Tue, 16 Feb 2021 21:35:52 +0100 (CET) Received: by mail-pl1-f181.google.com with SMTP id b8so6124305plh.12 for ; Tue, 16 Feb 2021 12:35:52 -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 :in-reply-to:references; bh=E+cOj/WLXVGJVpaV6O6jDb0DVbyAmeOnktQaohKI//c=; b=btOtP4B4nM9pNJF1F/leVN3HOQML0AMsWXJ6kYb09T9Y7Z4Jh62nMPbVSZtyLJ1Um0 n7IojePOcBY9DE/g9qTFIgsQJOFxKkizDkM5uEKjPm2r6caAC0fD+bH4CjbKLyvuegoJ aoItVcKzxW98bICf8XAuIGewMSrTfxUECl+jFcJtz+FhVMXOhRVutQGc43+rHNjVcDZS HW5jo9HCV3gIzJyL8w5XWtR8dPvTyaeaD6xewoJZSn/hMX9cKb2yRmHzLqa9UDfwIE6Q k+xJNkpjSgkF4TcdRzb8BQoU2ddJ4qgUZQVMnqU+OCouAYtuEMye5ZVkPrEno4pUpJcZ c5nA== 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:in-reply-to:references; bh=E+cOj/WLXVGJVpaV6O6jDb0DVbyAmeOnktQaohKI//c=; b=k6pdoyFAXpsSr/IkGe2IvArHM4pRAUuK0Ek0HCE7ir886ydIBpn/vBLsWv2LRvWDdw X51gRgf7DjFz913X/J3ekq8pOCstw8SgGpxQ0in/IL6rsC6Dme+QPq8da8hohDYt6Ter YZkfd2tF6oYWCtRnsvOOPawdGSQNzyn9OR/mtMntdFEyW9prS71Ru02+I80xLzKqahAB Rs5Zyw+m9vrO7UWcbim1+Ywk9VecX3BHy/u8IRWL8ZjBQOmhmiaeEQAFUjpSv1BchepH w71upccooT9c5PpBiqfyFq8kt7zqxjQSJjWtlahfi1aBmuTBS4G3c/Qn05jz7qmTQcdy fkWQ== X-Gm-Message-State: AOAM531FNteni6c5BLL1y3quy4+NWEoRX6e5xFKKVKbktvNCMxmkP/Cg trabbiCMrsjcjvBqyJbvSLi3KDsYY/1rTA== X-Google-Smtp-Source: ABdhPJwhzUfOMrEI2v1ntYJOAlFZhr5Sk7f7ITPsflBRbFqlb56RdxhfW6PZgJx0M+qtF3cITTec1g== X-Received: by 2002:a17:902:b58e:b029:e3:2313:42ab with SMTP id a14-20020a170902b58eb02900e3231342abmr20556919pls.9.1613507751858; Tue, 16 Feb 2021 12:35:51 -0800 (PST) Received: from driver-dev1.pensando.io ([12.226.153.42]) by smtp.gmail.com with ESMTPSA id u17sm11371pgh.72.2021.02.16.12.35.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Feb 2021 12:35:51 -0800 (PST) From: Andrew Boyer To: dev@dpdk.org Cc: Alfredo Cardigliano , Andrew Boyer Date: Tue, 16 Feb 2021 12:35:27 -0800 Message-Id: <20210216203540.29290-3-aboyer@pensando.io> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210216203540.29290-1-aboyer@pensando.io> References: <20210216203540.29290-1-aboyer@pensando.io> In-Reply-To: <20210204195853.13411-1-aboyer@pensando.io> References: <20210204195853.13411-1-aboyer@pensando.io> Subject: [dpdk-dev] [PATCH v2 02/15] net/ionic: remove unused filter delete function X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" This function is unused. Signed-off-by: Andrew Boyer --- drivers/net/ionic/ionic_dev.h | 1 - drivers/net/ionic/ionic_rx_filter.c | 14 -------------- drivers/net/ionic/ionic_rx_filter.h | 1 - 3 files changed, 16 deletions(-) diff --git a/drivers/net/ionic/ionic_dev.h b/drivers/net/ionic/ionic_dev.h index b29bfd13be..e1b93b1b05 100644 --- a/drivers/net/ionic/ionic_dev.h +++ b/drivers/net/ionic/ionic_dev.h @@ -90,7 +90,6 @@ static inline void ionic_struct_size_checks(void) RTE_BUILD_BUG_ON(sizeof(struct ionic_rx_mode_set_cmd) != 64); RTE_BUILD_BUG_ON(sizeof(struct ionic_rx_filter_add_cmd) != 64); RTE_BUILD_BUG_ON(sizeof(struct ionic_rx_filter_add_comp) != 16); - RTE_BUILD_BUG_ON(sizeof(struct ionic_rx_filter_del_cmd) != 64); /* RDMA commands */ RTE_BUILD_BUG_ON(sizeof(struct ionic_rdma_reset_cmd) != 64); diff --git a/drivers/net/ionic/ionic_rx_filter.c b/drivers/net/ionic/ionic_rx_filter.c index 320b9019b3..4310c91b94 100644 --- a/drivers/net/ionic/ionic_rx_filter.c +++ b/drivers/net/ionic/ionic_rx_filter.c @@ -18,20 +18,6 @@ ionic_rx_filter_free(struct ionic_rx_filter *f) rte_free(f); } -int -ionic_rx_filter_del(struct ionic_lif *lif, struct ionic_rx_filter *f) -{ - struct ionic_admin_ctx ctx = { - .pending_work = true, - .cmd.rx_filter_del = { - .opcode = IONIC_CMD_RX_FILTER_DEL, - .filter_id = rte_cpu_to_le_32(f->filter_id), - }, - }; - - return ionic_adminq_post(lif, &ctx); -} - int ionic_rx_filters_init(struct ionic_lif *lif) { diff --git a/drivers/net/ionic/ionic_rx_filter.h b/drivers/net/ionic/ionic_rx_filter.h index e1dd5f910c..773042fcb2 100644 --- a/drivers/net/ionic/ionic_rx_filter.h +++ b/drivers/net/ionic/ionic_rx_filter.h @@ -35,7 +35,6 @@ struct ionic_admin_ctx; struct ionic_lif; void ionic_rx_filter_free(struct ionic_rx_filter *f); -int ionic_rx_filter_del(struct ionic_lif *lif, struct ionic_rx_filter *f); int ionic_rx_filters_init(struct ionic_lif *lif); void ionic_rx_filters_deinit(struct ionic_lif *lif); int ionic_rx_filter_save(struct ionic_lif *lif, uint32_t flow_id,