diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-08-08 02:25:26 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-08-08 03:54:20 +0300 |
commit | e77f02b812ccb10396d9e5a9a23db14983a344a9 (patch) | |
tree | e4bcf58eec31ce3a7e13aeb5f031bad27afb28e3 /drivers/net/ethernet/mellanox | |
parent | 9d81e6a3f64315fa3af3e8f880bbfda35be04188 (diff) | |
download | linux-e77f02b812ccb10396d9e5a9a23db14983a344a9.tar.xz |
net/mlx5e: Mark expected switch fall-throughs
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 <gustavo@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c b/drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c index 1881468dbcfa..ad6d471d00dd 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; |