1. 22 Jul, 2020 1 commit
    • Xie He's avatar
      drivers/net/wan/x25_asy: Fix to make it work · 8fdcabea
      Xie He authored
      This driver is not working because of problems of its receiving code.
      This patch fixes it to make it work.
      
      When the driver receives an LAPB frame, it should first pass the frame
      to the LAPB module to process. After processing, the LAPB module passes
      the data (the packet) back to the driver, the driver should then add a
      one-byte pseudo header and pass the data to upper layers.
      
      The changes to the "x25_asy_bump" function and the
      "x25_asy_data_indication" function are to correctly implement this
      procedure.
      
      Also, the "x25_asy_unesc" function ignores any frame that is shorter
      than 3 bytes. However the shortest frames are 2-byte long. So we need
      to change it to allow 2-byte frames to pass.
      
      Cc: Eric Dumazet <edumazet@google.com>
      Cc: Martin Schiller <ms@dev.tdt.de>
      Signed-off-by: default avatarXie He <xie.he.0141@gmail.com>
      Reviewed-by: default avatarMartin Schiller <ms@dev.tdt.de>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      8fdcabea
  2. 21 Jul, 2020 39 commits