Linux HDLC Stack - N2 module

From: Adam Anthony (AAnthony_at_sbs.com)
Date: 01/13/05

  • Next message: Oleg Nesterov: "Q: shrink_cache() vs release_pages()"
    To: khc@pm.waw.pl, Francois Romieu <romieu@fr.zoreil.com>
    Date:	Thu, 13 Jan 2005 09:02:20 -0700
    
    

    Krzysztof and Ueimor,
            Following the advice prescribed below, I've had a look at existing
    HDLC work in the kernel. I tried firing up a Riscom/N2 adapter with the
    2.4.28 N2 module and HDLC support but was faced with a number of problems.
    It seems like the transmit buffers aren't getting emptied after transmit,
    because I can only transmit a few frames before traffic halts. Transmit
    statistics don't increment either, but I am seeing frames on the remote end.
            Has the N2 module been tested with recent kernels? Is it useable?
    If not, which module will show me the genius of the Linux HDLC "stack"?
    -AA

    -----Original Message-----
    From: Francois Romieu [mailto:romieu@fr.zoreil.com]
    Sent: Monday, January 10, 2005 1:01 PM
    To: Adam Anthony
    Cc: netdev@oss.sgi.com; linux-kernel@vger.kernel.org
    Subject: Re: [PATCH] /driver/net/wan/sbs520

    Adam Anthony <AAnthony@sbs.com> :
    [...]
    > It would be great to receive some feedback on our work, and we hope
    > that this driver will eventually be added to the kernel.

    It will probably require a few extra steps:
    - read Documentation/CodingStyle (mixed case, typedef from hell, ugly
    #ifdef);
    - grep ^static
      -> no static functions ? Uh ?
    - use non-obsolete API (pci_find_device in 2005 ?);
    - convert the os independant wrappers.

    Btw it would probably make sense 1) to figure out what can be merged with
    the in-tree DSCC4 driver and 2) to integrate the driver with the existing
    hdlc stack. Imho there is some duplicated work/code.

    --
    Ueimor
    ***This message has been scanned for virus, spam, and undesirable
    content.***
    ***For further information, contact your mail administrator.***
    For limitations on the use and distribution of this message, please visit www.sbs.com/emaildisclaimer.
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Oleg Nesterov: "Q: shrink_cache() vs release_pages()"

    Relevant Pages

    • Re: e1000 -> 82540EM on linux 2.6.0-test[45] very slow in one direction
      ... > i reconfigured my kernel and intentionally left out netfilter options. ... I had to compile the e1000 driver as a module. ... TCTL (Transmit ctrl register) 0x0004010A ...
      (Linux-Kernel)
    • Re: NETDEV WATCHDOG:eth1: transmit timed out
      ... The kernel monitors whether sent packets are really transmitted. ... doesn't happen - the ethernet transmit interrupt is not delivered in a time ... defined by the ethernet driver - the kernel may ask the driver to resend ... transmit engine before resending the frame. ...
      (comp.os.linux.setup)
    • Re: NETDEV WATCHDOG:eth1: transmit timed out
      ... The kernel monitors whether sent packets are really transmitted. ... doesn't happen - the ethernet transmit interrupt is not delivered in a time ... defined by the ethernet driver - the kernel may ask the driver to resend ... transmit engine before resending the frame. ...
      (comp.os.linux.development.system)
    • Re: Question on HDLC and raw access to T1/E1 serial streams.
      ... to DCE losing sync. ... HDLC is not using the line at 100% capacity.) ... do the multiplexing in user space. ... driver bit-stuffed, then it would need to do an entire time-slice at once. ...
      (Linux-Kernel)
    • Re: Question on HDLC and raw access to T1/E1 serial streams.
      ... to DCE losing sync. ... Even at 100% you can just drop a frame, HDLC applications must ... driver bit-stuffed, then it would need to do an entire time-slice at once. ... readily available T1/E1 hardware. ...
      (Linux-Kernel)