diff options
author | Xie He <[email protected]> | 2020-10-31 11:10:43 -0700 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2020-11-03 15:19:21 -0800 |
commit | 54b77a77e30a5170a25cfd2f211e08ea5a6c0c4c (patch) | |
tree | b03ee3ca633fd7d35cc9f77d2721ed9a0e80e4b3 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | 77124c4463d45083e69b7284415467737f31f76b (diff) |
net: hdlc_fr: Add support for any Ethertype
Change the fr_rx function to make this driver support any Ethertype
when receiving skbs on normal (non-Ethernet-emulating) PVC devices.
(This driver is already able to handle any Ethertype when sending.)
Originally in the fr_rx function, the code that parses the long (10-byte)
header only recognizes a few Ethertype values and drops frames with other
Ethertype values. This patch replaces this code to make fr_rx support
any Ethertype. This patch also creates a new function fr_snap_parse as
part of the new code.
Cc: Krzysztof Halasa <[email protected]>
Signed-off-by: Xie He <[email protected]>
Acked-by: Willem de Bruijn <[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