From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1122CA034C; Tue, 21 Dec 2021 20:58:45 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9E2874116D; Tue, 21 Dec 2021 20:58:13 +0100 (CET) Received: from mail-qv1-f51.google.com (mail-qv1-f51.google.com [209.85.219.51]) by mails.dpdk.org (Postfix) with ESMTP id B1A654114F for ; Tue, 21 Dec 2021 20:58:09 +0100 (CET) Received: by mail-qv1-f51.google.com with SMTP id kd9so258764qvb.11 for ; Tue, 21 Dec 2021 11:58:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Vq3B33Ue47v+qWtEj4BajH/et3pXyvzTGoixEh1/woU=; b=fiNS60eof/VHwDexwA4LXdRxpvTLzZldUmtxmSmbgZ7ldvqVAbB8Gqr7Hy5+uphdiq AAbpIF2lPpfSMF4O0dei6rK7nVuvqZzyB/kloB1qW77dQkIdrYf6FXqO+uGpncgpSIaJ Ym64+p7MRtJ/Qfu9WACmtiB3JlZna3+U2JqfTZr/r8a7Z96ZeM7BZAOFut6KuOfYn6AE tcEMLnEccHJVWaBRWwQ5jm9aQH4cEHi3knowL2QFvUAhIBGYSSd4iC3MauG0w10s3xQk zeoZj3T4SVNj4K8f7pAfN/djTch7ChnVmFn3N52F4ERiI/yQfBJrCwztN17HyVPEgEBZ vI+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Vq3B33Ue47v+qWtEj4BajH/et3pXyvzTGoixEh1/woU=; b=Ijt0qkNZWBQuOomPHTTCtuuYpwpt8ootIulXbypmQNhxYQtShRDUUpAeCCmIVkJk4Q KwZtuZirwjMsps0H37wg5wZc86mVLQCob0jK7PnJWltUJWYFnPdZXl97HI6v8hibt7XR aAx3EsLhM9Tp38Ypc3yKMHQVsQiApNqHAQlcPtpEvVfrnArjGOsVAfrbRmwc8hRoVnRf 3oZAm8UGK6hqaPYrVBPexoTqcv/kaXvOCjkjQe0Elqt+8QigyV5s6m2FQOp9h4GG8Oju JC0itElTH2qnXYbDVt0+iSoG2QzdGbJqVTCbMogU0CtAvE+Gxl47S1eZWeMYZLUv4nTM g4wA== X-Gm-Message-State: AOAM533vwq9GgYgblnunKg2nX1FVqjEDflbWt2L31hhh1gz+8j68AGf5 iOTdiAW+vrWoyzJWU7GjIAcuMLd1ydlBWg== X-Google-Smtp-Source: ABdhPJy4I0IDuzAtdgmoK6AZM2pp82fg8L9ZADP6S+iG42sqOPozBVLm+cigfJnUPic6XmSeljjBpw== X-Received: by 2002:a05:6214:528a:: with SMTP id kj10mr4120704qvb.98.1640116689126; Tue, 21 Dec 2021 11:58:09 -0800 (PST) Received: from ubuntu.localdomain (99-153-167-175.lightspeed.ftldfl.sbcglobal.net. [99.153.167.175]) by smtp.gmail.com with ESMTPSA id h3sm14684401qko.78.2021.12.21.11.58.08 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Dec 2021 11:58:08 -0800 (PST) From: Robert Sanford X-Google-Original-From: Robert Sanford To: dev@dpdk.org Cc: chas3@att.com, humin29@huawei.com, bruce.richardson@intel.com Subject: [PATCH v2 7/8] net/ring: add promisc and all-MC stubs Date: Tue, 21 Dec 2021 14:57:29 -0500 Message-Id: <1640116650-3475-8-git-send-email-rsanford@akamai.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1640116650-3475-1-git-send-email-rsanford@akamai.com> References: <1639592401-56845-2-git-send-email-rsanford@akamai.com> <1640116650-3475-1-git-send-email-rsanford@akamai.com> 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 Add promiscuous_enable, promiscuous_disable, allmulticast_enable, and allmulticast_disable API stubs. This helps clean up errors in dpdk-test link_bonding_mode4_autotest. Signed-off-by: Robert Sanford --- drivers/net/ring/rte_eth_ring.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/drivers/net/ring/rte_eth_ring.c b/drivers/net/ring/rte_eth_ring.c index db10f03..cfb81da 100644 --- a/drivers/net/ring/rte_eth_ring.c +++ b/drivers/net/ring/rte_eth_ring.c @@ -226,6 +226,30 @@ eth_mac_addr_add(struct rte_eth_dev *dev __rte_unused, } static int +eth_promiscuous_enable(struct rte_eth_dev *dev __rte_unused) +{ + return 0; +} + +static int +eth_promiscuous_disable(struct rte_eth_dev *dev __rte_unused) +{ + return 0; +} + +static int +eth_allmulticast_enable(struct rte_eth_dev *dev __rte_unused) +{ + return 0; +} + +static int +eth_allmulticast_disable(struct rte_eth_dev *dev __rte_unused) +{ + return 0; +} + +static int eth_link_update(struct rte_eth_dev *dev __rte_unused, int wait_to_complete __rte_unused) { return 0; } @@ -275,6 +299,10 @@ static const struct eth_dev_ops ops = { .stats_reset = eth_stats_reset, .mac_addr_remove = eth_mac_addr_remove, .mac_addr_add = eth_mac_addr_add, + .promiscuous_enable = eth_promiscuous_enable, + .promiscuous_disable = eth_promiscuous_disable, + .allmulticast_enable = eth_allmulticast_enable, + .allmulticast_disable = eth_allmulticast_disable, }; static int -- 2.7.4