nfp: add missing fall through statements
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 31 May 2017 15:06:44 +0000 (08:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 May 2017 21:58:13 +0000 (17:58 -0400)
GCC 7 checks for fall through comments, add the two missing ones.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_common.c

index c9a140376621430f996af2ed260f33396f726a18..2bcf3e8330ea2070e7f1d581819fb02ae9dcfbbc 100644 (file)
@@ -1687,8 +1687,10 @@ static int nfp_net_rx(struct nfp_net_rx_ring *rx_ring, int budget)
                                continue;
                        default:
                                bpf_warn_invalid_xdp_action(act);
+                               /* fall through */
                        case XDP_ABORTED:
                                trace_xdp_exception(dp->netdev, xdp_prog, act);
+                               /* fall through */
                        case XDP_DROP:
                                nfp_net_rx_give_one(dp, rx_ring, rxbuf->frag,
                                                    rxbuf->dma_addr);