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 DF0FCA09E5; Tue, 8 Dec 2020 11:05:31 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B8D54C914; Tue, 8 Dec 2020 11:05:30 +0100 (CET) Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by dpdk.org (Postfix) with ESMTP id 2C11272DE for ; Tue, 8 Dec 2020 09:02:55 +0100 (CET) Received: by mail-pg1-f193.google.com with SMTP id t37so11478056pga.7 for ; Tue, 08 Dec 2020 00:02:55 -0800 (PST) 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:mime-version :content-transfer-encoding; bh=26Ih4TsoPupvSTzvqZGDFEEBgdI0aGiqB53cSpEKqJk=; b=JkyGxjUSC7Y0nTrOuCU2yvBtS1E3sxRyF1JxZ7PzYgQss2cvnl9ziFcXBPv1NKRIja upC9SMyDaJze8kSKuVoB7UxuYkp3mwjf+xCEHG8pvBp3OnXs0i6SC05XQ8QbzpmUMg// XiSrvHYvtJdD5IKV1ELEbmDYF7vlRwUUNa4eeBGQTahnSOfwPI9rdee0fuXK2aXfuaS5 UHOdStfSyLiBkxb8VBEAOq+N55QuwYTYXJVITo9a8Hw4sKlZ6LlMvZZlef35Xe3Dzfl3 YxzC3GZBpZjETddOXTcw6IZzXQoO7X4z55rZDGYlg18DTlynDamdGsCP/iwbj+4mw/r6 G6DA== X-Gm-Message-State: AOAM531sP/6+IRMkzWZ9XvHA5kLhidm3HQiZsbzkyI7bv4AnW8RHRmVm 5AT4LL8S+dpmGrNOYsvC0g8= X-Google-Smtp-Source: ABdhPJx2xWE25tKEdMp0ky0fIS+xu7cBvOnc0cN5tNm6o6RTu4m5aj1LNsUV428qQjp6Py9Pjpu9sw== X-Received: by 2002:a17:90a:a393:: with SMTP id x19mr3162005pjp.8.1607414573366; Tue, 08 Dec 2020 00:02:53 -0800 (PST) Received: from localhost.localdomain ([104.192.108.10]) by smtp.gmail.com with ESMTPSA id b13sm14987554pgr.59.2020.12.08.00.02.49 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Dec 2020 00:02:52 -0800 (PST) From: banxiaozhen@dpdk.org, benhaz1024@gmail.com To: jia.guo@intel.com, haiyue.wang@intel.com Cc: dev@dpdk.org, banxiaozhen Date: Tue, 8 Dec 2020 16:02:40 +0800 Message-Id: <20201208080240.35014-1-benhaz1024@gmail.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Tue, 08 Dec 2020 11:05:29 +0100 Subject: [dpdk-dev] [PATCH] net/e1000: fix incorrect return value if filter type not supported. 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" From: banxiaozhen Signed-off-by: banxiaozhen --- drivers/net/e1000/igb_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c index 647aa8d99..8695426c2 100644 --- a/drivers/net/e1000/igb_ethdev.c +++ b/drivers/net/e1000/igb_ethdev.c @@ -4561,6 +4561,7 @@ eth_igb_filter_ctrl(struct rte_eth_dev *dev __rte_unused, default: PMD_DRV_LOG(WARNING, "Filter type (%d) not supported", filter_type); + ret = -EINVAL; break; } -- 2.24.3 (Apple Git-128)