From: Alexander Aring <aring@mojatatu.com>
To: Peter Oskolkov <posk@google.com>
Cc: David Miller <davem@davemloft.net>,
linux-wpan@vger.kernel.org, netdev@vger.kernel.org,
Peter Oskolkov <posk@posk.io>,
stefan@datenfreihafen.org
Subject: Re: [PATCH RFC net-next] 6lowpan: use rbtree for IP frag queue
Date: Sun, 17 Feb 2019 18:08:40 -0500 [thread overview]
Message-ID: <20190217230840.finshiu6s54cer4f@x220t> (raw)
In-Reply-To: <20190215022953.128092-1-posk@google.com>
Hi,
On Thu, Feb 14, 2019 at 06:29:53PM -0800, Peter Oskolkov wrote:
> This patch aligns IP defragmenation logic in 6lowpan with that
> of IPv4 and IPv6: see
> commit d4289fcc9b16 ("net: IP6 defrag: use rbtrees for IPv6 defrag")
>
> Modifying ip_defrag selftest seemed like an overkill, as I suspect
> most kernel test setups do not have 6lowpan hwsim enabled. So I ran
> the following code/script manually:
>
> insmod ./mac802154_hwsim.ko
>
> iwpan dev wpan0 set pan_id 0xbeef
> ip link add link wpan0 name lowpan0 type lowpan
> ip link set wpan0 up
> ip link set lowpan0 up
>
> iwpan dev wpan1 set pan_id 0xbeef
> ip netns add foo
> iwpan phy1 set netns name foo
> ip netns exec foo ip link add link wpan1 name lowpan1 type lowpan
> ip netns exec foo ip link set wpan1 up
> ip netns exec foo ip link set lowpan1 up
>
> ip -6 addr add "fb01::1/128" nodad dev lowpan0
> ip -netns foo -6 addr add "fb02::1/128" nodad dev lowpan1
>
> ip -6 route add "fb02::1/128" dev lowpan0
> ip -netns foo -6 route add "fb01::1/128" dev lowpan1
>
> # then in term1:
> ip netns exec foo bash
> ./udp_stream -6
>
> # in term2:
> ./udp_stream -c -6 -H fb02::1
>
> # pr_warn_once showed that the code changed by this patch
> # was invoked.
>
> Signed-off-by: Peter Oskolkov <posk@google.com>
Acked-by: Alexander Aring <aring@mojatatu.com>
I tested this series and the code looks a lot simpler. Thanks.
Stefan do you see any issues?
- Alex
next prev parent reply other threads:[~2019-02-17 23:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-15 2:29 [PATCH RFC net-next] 6lowpan: use rbtree for IP frag queue Peter Oskolkov
2019-02-17 23:08 ` Alexander Aring [this message]
2019-02-18 16:03 ` Stefan Schmidt
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=20190217230840.finshiu6s54cer4f@x220t \
--to=aring@mojatatu.com \
--cc=davem@davemloft.net \
--cc=linux-wpan@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=posk@google.com \
--cc=posk@posk.io \
--cc=stefan@datenfreihafen.org \
/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 NNTP newsgroup(s).