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 666A5A0350; Wed, 24 Jun 2020 10:09:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B41B11D8E7; Wed, 24 Jun 2020 10:02:48 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 3BB6A1D9DB for ; Wed, 24 Jun 2020 10:02:46 +0200 (CEST) IronPort-SDR: xyb6Qk3osKUmQnAyNDrSmtjMHAxUY0wXEzph/3qtx3HU9OWPhwmldgBpls0nr/PuOq1aK+l/AJ kVQUvDqwbZjA== X-IronPort-AV: E=McAfee;i="6000,8403,9661"; a="143473006" X-IronPort-AV: E=Sophos;i="5.75,274,1589266800"; d="scan'208";a="143473006" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2020 01:02:45 -0700 IronPort-SDR: 1nsXWLxkxegUXn2MHcYpIeX2lrZXGJBw8ZT+/2j5Kk3hieGb+9V+7G8JqS2ocss0QGQn2VmIY4 kggrGpr962KA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,274,1589266800"; d="scan'208";a="385103039" Received: from intel.sh.intel.com ([10.239.255.48]) by fmsmga001.fm.intel.com with ESMTP; 24 Jun 2020 01:02:43 -0700 From: Guinan Sun To: dev@dpdk.org Cc: Jeff Guo , Wenzhuo Lu , Guinan Sun , Jeb Cramer Date: Wed, 24 Jun 2020 07:53:32 +0000 Message-Id: <20200624075337.6768-38-guinanx.sun@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200624075337.6768-1-guinanx.sun@intel.com> References: <20200622064634.70941-1-guinanx.sun@intel.com> <20200624075337.6768-1-guinanx.sun@intel.com> Subject: [dpdk-dev] [PATCH v2 37/42] net/e1000/base: add fall-through comments for switch cases 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" Add fall-through comments to cases without break statements. Signed-off-by: Jeb Cramer Signed-off-by: Guinan Sun --- drivers/net/e1000/base/e1000_vf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/e1000/base/e1000_vf.c b/drivers/net/e1000/base/e1000_vf.c index 543fa7741..8d5427af4 100644 --- a/drivers/net/e1000/base/e1000_vf.c +++ b/drivers/net/e1000/base/e1000_vf.c @@ -462,8 +462,10 @@ s32 e1000_promisc_set_vf(struct e1000_hw *hw, enum e1000_promisc_type type) break; case e1000_promisc_enabled: msgbuf |= E1000_VF_SET_PROMISC_MULTICAST; + /* Fall-through */ case e1000_promisc_unicast: msgbuf |= E1000_VF_SET_PROMISC_UNICAST; + /* Fall-through */ case e1000_promisc_disabled: break; default: -- 2.17.1