Kernel Newbies archive mirror
 help / color / mirror / Atom feed
From: "Bjørn Mork" <bjorn@mork.no>
To: Ayush Singh <ayushdevel1325@gmail.com>
Cc: khc@pm.waw.pl, kernelnewbies@kernelnewbies.org
Subject: Re: Using net/wan/hdlc with serdev
Date: Fri, 11 Aug 2023 08:48:31 +0200	[thread overview]
Message-ID: <87cyzu8474.fsf@miraculix.mork.no> (raw)
In-Reply-To: <3e150f46-d3c8-ea5b-0f84-33cdab963dbf@gmail.com> (Ayush Singh's message of "Fri, 11 Aug 2023 00:40:50 +0530")

Ayush Singh <ayushdevel1325@gmail.com> writes:

> But well, I am not sure how to create an HDLC frame? Is there a helper
> that creates HDLC frame skbuff for me? Or maybe the hdlc
> implementation is simply not designed to be used for Asynchronous
> framing [1]. It would be great if someone could explain how to use
> this HDLC module or point to some resource I might have missed.

I don't know anything at all about this subject, but I believe the wan
HDLC stuff is sync only.

Noting that the ppp driver does all the async framing internally. And
interleaved with ppp specific stuff, so probably not re-usable even if
exported. Ref ppp_async_encode() in drivers/net/ppp/ppp_async.c

I assume it would have used a shared implementation if there was one.
But I could be wrong...


Bjørn

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

      reply	other threads:[~2023-08-11  6:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-03 15:24 Using net/wan/hdlc with serdev Ayush Singh
2023-08-10 19:10 ` Ayush Singh
2023-08-11  6:48   ` Bjørn Mork [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87cyzu8474.fsf@miraculix.mork.no \
    --to=bjorn@mork.no \
    --cc=ayushdevel1325@gmail.com \
    --cc=kernelnewbies@kernelnewbies.org \
    --cc=khc@pm.waw.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).