dpaa2-eth: Add "fall through" comments
authorIoana Ciocoi Radulescu <ruxandra.radulescu@nxp.com>
Thu, 29 Nov 2018 08:43:40 +0000 (08:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Nov 2018 18:40:58 +0000 (10:40 -0800)
Add comments in the switch statement for XDP action to indicate
fallthrough is intended.

Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c

index be841718eb49db6f85e009b82f6a7da671ea2dc9..1ca9a18139ec5b3b63c6a655a4bc19a3d4bb8428 100644 (file)
@@ -322,8 +322,10 @@ static u32 run_xdp(struct dpaa2_eth_priv *priv,
                break;
        default:
                bpf_warn_invalid_xdp_action(xdp_act);
+               /* fall through */
        case XDP_ABORTED:
                trace_xdp_exception(priv->net_dev, xdp_prog, xdp_act);
+               /* fall through */
        case XDP_DROP:
                xdp_release_buf(priv, ch, addr);
                ch->stats.xdp_drop++;