summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/freescale
diff options
context:
space:
mode:
authorIoana Ciocoi Radulescu <ruxandra.radulescu@nxp.com>2018-11-29 08:43:40 +0000
committerDavid S. Miller <davem@davemloft.net>2018-11-29 10:40:58 -0800
commitc1cb11bcbd09f5f027cbc7fadddab169714948df (patch)
tree728c780de5c2459584f05cd1481f6f2a6eb8435b /drivers/net/ethernet/freescale
parenta32701068632f74c2ab8cb5fac5ca640e39dc43c (diff)
downloadtalos-obmc-linux-c1cb11bcbd09f5f027cbc7fadddab169714948df.tar.gz
talos-obmc-linux-c1cb11bcbd09f5f027cbc7fadddab169714948df.zip
dpaa2-eth: Add "fall through" comments
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>
Diffstat (limited to 'drivers/net/ethernet/freescale')
-rw-r--r--drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
index be841718eb49..1ca9a18139ec 100644
--- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
+++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
@@ -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++;
OpenPOWER on IntegriCloud