diff options
author | Xie He <[email protected]> | 2020-10-31 11:10:39 -0700 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2020-11-03 15:19:09 -0800 |
commit | 583d5333ed7dcdc0c7a3f8ec8b818b7ae4a59e8e (patch) | |
tree | 3d1e75e2f95661afdf1a59ae466ffb4c66b0621a /tools/perf/scripts/python/net_dropmonitor.py | |
parent | 16b5f5ce351f8709a6b518cc3cbf240c378305bf (diff) |
net: hdlc_fr: Simpify fr_rx by using "goto rx_drop" to drop frames
When the fr_rx function drops a received frame (because the protocol type
is not supported, or because the PVC virtual device that corresponds to
the DLCI number and the protocol type doesn't exist), the function frees
the skb and returns.
The code for freeing the skb and returning is repeated several times, this
patch uses "goto rx_drop" to replace them so that the code looks cleaner.
Cc: Krzysztof Halasa <[email protected]>
Cc: Willem de Bruijn <[email protected]>
Signed-off-by: Xie He <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions