public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Philippe REYNES <philippe.reynes@softathome.com>
To: u-boot@lists.denx.de
Subject: [PATCH] net: add a generic udp protocol
Date: Mon, 31 Aug 2020 19:32:24 +0200 (CEST)	[thread overview]
Message-ID: <2042071285.809594.1598895144094.JavaMail.zimbra@softathome.com> (raw)
In-Reply-To: <20200821205456.GD20605@bill-the-cat>

Hi Tom

> On Fri, Aug 21, 2020 at 07:55:05PM +0200, Philippe Reynes wrote:
> 
>> This commit adds a generic udp protocol framework in the
>> network loop. So protocol based on udp may be implemented
>> without modifying the network loop (for example custom
>> wait magic packet).
>> 
>> Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
>> ---
>> include/net.h | 2 +-
>> include/net/udp.h | 31 +++++++++++++++++++++++++++++++
>> net/Kconfig | 6 ++++++
>> net/Makefile | 1 +
>> net/net.c | 15 ++++++++++++++-
>> net/udp.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
>> 6 files changed, 101 insertions(+), 2 deletions(-)
>> create mode 100644 include/net/udp.h
>> create mode 100644 net/udp.c
> 
> At minimum we need to enable this on sandbox. Would it be possible to
> test this somehow on sandbox (where we have networking) with netcat or
> something from the host?

I've sent a v2 with this feature enable on sandbox.

I have tested it on sandbox by adding a simple/silly command "wait for magic packet"
(using debug code). I'm looking for a way to add a test in test/dm/eth.c or
test/py/tests/test_net.py.

> --
> Tom

Philippe

      reply	other threads:[~2020-08-31 17:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-21 17:55 [PATCH] net: add a generic udp protocol Philippe Reynes
2020-08-21 20:54 ` Tom Rini
2020-08-31 17:32   ` Philippe REYNES [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=2042071285.809594.1598895144094.JavaMail.zimbra@softathome.com \
    --to=philippe.reynes@softathome.com \
    --cc=u-boot@lists.denx.de \
    /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