Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1344121imm; Wed, 8 Aug 2018 15:27:55 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxSGG1IlR5C0u1F3hjaxLdxJq6kpILGoopzOh1XOQCNOwqJz1CZIUfHV0R5tzbo/Pya0rdB X-Received: by 2002:a62:fd06:: with SMTP id p6-v6mr4696503pfh.167.1533767275684; Wed, 08 Aug 2018 15:27:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533767275; cv=none; d=google.com; s=arc-20160816; b=bUmPT0TCLjz9tja/Sic9iLX5Anani9MipfQRqwjhT/1eVRDwHiMHmQZpM2QWedITlr TyQa9d7t9C2Wz2kH1tDqnHwbxFZ4QAZYX9Dyq8FVcqiAzp5yDzAPREi5y3A1pmAc0iaS TuI7Tkg7xZroui4hnArtSSE8pgXF+cTilKmadDKoABFM1ko+oQyWGtFiG2eBpWxXbioT wK7YunCQIrbNF4djAYsZPsNsft3ipG+W2Ihe+y4KgtgQLHZaecpLqPB6w8HADwqAmlJQ 0f/4zk8fmLp5653Ih6t08ebqj1QENvFEmdqWS273IrLVouvGk1YPe8uRDU9W+3ogpbuc B7KA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=NWLh2sbe9wk0ZGfGjrIy+Ad/qCPkImVBlM5d8V4We9c=; b=FTd7sQNHMjwv29YBspyBnLQ7sFOqgjJkM+r831qpSHwbaZu/zyUDlzx5+nhDRRSO6p jWmQlj+dcPvz2UeYOGgLLWPT/ChAe2lmQoxPBgfsg8vEHhnbgCZelg2moHjRxQRsoDP9 B3IJXylWx7f/1g9yw1VPvNFIpRtdB/QpglS3FXtLC+gp04Ddqzc2If+iatI24eguwVGZ 82sEaEdo0wlWTz952mE4SIlVNhjrfkKOaAZa4UnRXpo4E8zqjvkQO+AphEqbkmU/apN2 Gg5VlPF3h63TBIvKOwL8LoN0OHdL+b1ksyh2Ypwx/NeUjB3timcc7dfzILbtFHNsZq1g DhwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dev-mellanox-co-il.20150623.gappssmtp.com header.s=20150623 header.b=acRJq6ZR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mellanox.co.il Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a24-v6si5279768pgi.515.2018.08.08.15.27.40; Wed, 08 Aug 2018 15:27:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@dev-mellanox-co-il.20150623.gappssmtp.com header.s=20150623 header.b=acRJq6ZR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mellanox.co.il Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731029AbeHIAsc (ORCPT + 99 others); Wed, 8 Aug 2018 20:48:32 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:36164 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728471AbeHIAsb (ORCPT ); Wed, 8 Aug 2018 20:48:31 -0400 Received: by mail-lj1-f193.google.com with SMTP id u7-v6so2963753lji.3 for ; Wed, 08 Aug 2018 15:26:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dev-mellanox-co-il.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=NWLh2sbe9wk0ZGfGjrIy+Ad/qCPkImVBlM5d8V4We9c=; b=acRJq6ZR0G01hjJAdDRGGUcMf/nFAMkU7cANzqMoG0YzGzDZmHqF1iPHOrMiLo2e4F zpDHS5k3WviAFFIsmaTDhS1X2/XGlAKf5rWMXr4QMOQRUU9p3q0bOvNJ9af2V/aMurUI uIhA690DSkdm4VPhcWnogTnnWtjO9XFZEOQJaIY0c8g/F440M+WUsBhg0hCv+jzm3xDx VjFip9Fn9PoFCkUYtNFcTO4qmz+zDvt/QuIECevEHciUMp8AaFjo1RnTWiBR+XWn3ZkQ KxesvUOPYrXGIBNaz8TAIyRXzD48NTyocKS3ZCXLUaC5xV/23IQeMfAVXyRY49Yvvo7C cQ3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=NWLh2sbe9wk0ZGfGjrIy+Ad/qCPkImVBlM5d8V4We9c=; b=hTLF/4PkOqrR4gGrl3gBetJUgIgXuPrJd9LfW8gmMQ0t0jG9WWnpUISufrpZb5+aU8 ov3IqPULx5YRcibDpZOK08wICIdjPY2fMvKvi/Dv99WgvDn+z5ytQjbEe5fRHvul2VqH jBjkBKZfzpvAYI3wzYgXsaeMwaYyDDPHTMjFnt83SVjRnEfdfplBhFDD8zUKi6O6t6FC 9/Ibt2ESn3a9JQgWaqgtSSzp/GFBdB+j2iX7z/vTWtdsBmbRlVXEsEdxGFtQnpSvsTVU J9LeDjHxUVdyLtFKSkGxbRY9TNNyHAlE5VNgxpMV+1eqqTlEyRNQmBCZ+Co6VodO9mJm zXbw== X-Gm-Message-State: AOUpUlEPXDVEtmiOjnnbONIywqH+03m/ADYJSYm4eoh4IGVOPDIuex3u b3pTn9sfUYL97u0kgip/etDMk6mTlMAxwqrY4TGEdQ== X-Received: by 2002:a2e:558c:: with SMTP id g12-v6mr3132059lje.4.1533767207614; Wed, 08 Aug 2018 15:26:47 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:29d3:0:0:0:0:0 with HTTP; Wed, 8 Aug 2018 15:26:27 -0700 (PDT) In-Reply-To: <3c523c58a8e3f3d240d4ff9363d672fb977c9d93.1533675546.git.gustavo@embeddedor.com> References: <3c523c58a8e3f3d240d4ff9363d672fb977c9d93.1533675546.git.gustavo@embeddedor.com> From: Saeed Mahameed Date: Wed, 8 Aug 2018 15:26:27 -0700 Message-ID: Subject: Re: [PATCH 24/33] net/mlx5e: Mark expected switch fall-throughs To: "Gustavo A. R. Silva" Cc: "David S. Miller" , Linux Netdev List , linux-kernel , Saeed Mahameed , Leon Romanovsky , RDMA mailing list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 7, 2018 at 4:25 PM, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Addresses-Coverity-ID: 114808 ("Missing break in switch") > Addresses-Coverity-ID: 114802 ("Missing break in switch") > Signed-off-by: Gustavo A. R. Silva Acked-by: Saeed Mahameed > --- > drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c b/drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c > index 1881468..ad6d471 100644 > --- a/drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c > +++ b/drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c > @@ -91,9 +91,11 @@ bool mlx5e_xdp_handle(struct mlx5e_rq *rq, struct mlx5e_dma_info *di, > return true; > default: > bpf_warn_invalid_xdp_action(act); > + /* fall through */ > case XDP_ABORTED: > xdp_abort: > trace_xdp_exception(rq->netdev, prog, act); > + /* fall through */ > case XDP_DROP: > rq->stats->xdp_drop++; > return true; > -- > 2.7.4 >