• Xie He's avatar
    net: hdlc_fr: Add support for any Ethertype · 54b77a77
    Xie He authored
    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 <khc@pm.waw.pl>
    Signed-off-by: default avatarXie He <xie.he.0141@gmail.com>
    Acked-by: default avatarWillem de Bruijn <willemb@google.com>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    54b77a77
hdlc_fr.c 29.8 KB