From: Chuck Lever III <chuck.lever@oracle.com>
To: Jason Gunthorpe <jgg@ziepe.ca>
Cc: Chuck Lever <cel@kernel.org>, Netdev <netdev@vger.kernel.org>,
linux-rdma <linux-rdma@vger.kernel.org>,
Bernard Metzler <BMT@zurich.ibm.com>, Tom Talpey <tom@talpey.com>
Subject: Re: [PATCH RFC 3/3] RDMA/siw: Require non-zero 6-byte MACs for soft iWARP
Date: Wed, 31 May 2023 19:11:52 +0000 [thread overview]
Message-ID: <B0D24A4F-8E82-4696-ACE1-453E45866DAC@oracle.com> (raw)
In-Reply-To: <ZHeaVdsMUz8gDjEU@ziepe.ca>
> On May 31, 2023, at 3:04 PM, Jason Gunthorpe <jgg@ziepe.ca> wrote:
>
> On Tue, May 23, 2023 at 07:18:18PM +0000, Chuck Lever III wrote:
>
>> The core address resolution code wants to find an L2 address
>> for the egress device. The underlying ib_device, where a made-up
>> GID might be stored, is not involved with address resolution
>> AFAICT.
>
> Where are you hitting this?
kworker/2:0-26 [002] 551.962874: funcgraph_entry: | addr_resolve() {
kworker/2:0-26 [002] 551.962874: bprint: addr_resolve: resolve_neigh=true resolve_by_gid_attr=false
kworker/2:0-26 [002] 551.962874: funcgraph_entry: | addr4_resolve.constprop.0() {
kworker/2:0-26 [002] 551.962875: bprint: addr4_resolve.constprop.0: src_in=0.0.0.0:35173 dst_in=100.72.1.2:20049
kworker/2:0-26 [002] 551.962875: funcgraph_entry: | ip_route_output_flow() {
kworker/2:0-26 [002] 551.962875: funcgraph_entry: | ip_route_output_key_hash() {
kworker/2:0-26 [002] 551.962876: funcgraph_entry: | ip_route_output_key_hash_rcu() {
kworker/2:0-26 [002] 551.962876: funcgraph_entry: 4.526 us | __fib_lookup();
kworker/2:0-26 [002] 551.962881: funcgraph_entry: 0.264 us | fib_select_path();
kworker/2:0-26 [002] 551.962881: funcgraph_entry: 1.022 us | __mkroute_output();
kworker/2:0-26 [002] 551.962882: funcgraph_exit: 6.705 us | }
kworker/2:0-26 [002] 551.962882: funcgraph_exit: 7.283 us | }
kworker/2:0-26 [002] 551.962883: funcgraph_exit: 7.624 us | }
kworker/2:0-26 [002] 551.962883: funcgraph_exit: 8.395 us | }
kworker/2:0-26 [002] 551.962883: funcgraph_entry: | rdma_set_src_addr_rcu.constprop.0() {
kworker/2:0-26 [002] 551.962883: bprint: rdma_set_src_addr_rcu.constprop.0: ndev=0xffff91f5135a4000 name=tailscale0
kworker/2:0-26 [002] 551.962884: funcgraph_entry: | copy_src_l2_addr() {
kworker/2:0-26 [002] 551.962884: funcgraph_entry: 0.984 us | iff_flags2string();
kworker/2:0-26 [002] 551.962885: bprint: copy_src_l2_addr: ndev=0xffff91f5135a4000 dst_in=100.72.1.2:20049 flags=UP|POINTOPOINT|NOARP|MULTICAST
kworker/2:0-26 [002] 551.962885: funcgraph_entry: | rdma_copy_src_l2_addr() {
kworker/2:0-26 [002] 551.962886: funcgraph_entry: 0.148 us | devtype2string();
kworker/2:0-26 [002] 551.962887: bprint: rdma_copy_src_l2_addr: name=tailscale0 type=NONE src_dev_addr=00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 broadcast=00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ifindex=3
kworker/2:0-26 [002] 551.962887: funcgraph_exit: 1.488 us | }
kworker/2:0-26 [002] 551.962887: bprint: copy_src_l2_addr: network type=IB
kworker/2:0-26 [002] 551.962887: funcgraph_exit: 3.636 us | }
kworker/2:0-26 [002] 551.962887: funcgraph_exit: 4.275 us | }
Address resolution finds the right device, but there's
a zero-value L2 address. Thus it cannot form a unique
GID from that. Perhaps there needs to be a call to
query_gid in here?
--
Chuck Lever
next prev parent reply other threads:[~2023-05-31 19:12 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-05 15:41 [PATCH RFC 0/3] siw on tunnel devices Chuck Lever
2023-05-05 15:42 ` [PATCH RFC 1/3] net/tun: Ensure tun devices have a MAC address Chuck Lever
2023-05-05 16:59 ` Stephen Hemminger
2023-05-05 17:09 ` Chuck Lever III
2023-05-05 15:42 ` [PATCH RFC 2/3] net/lo: Ensure lo " Chuck Lever
2023-05-05 16:57 ` Stephen Hemminger
2023-05-05 15:43 ` [PATCH RFC 3/3] RDMA/siw: Require non-zero 6-byte MACs for soft iWARP Chuck Lever
2023-05-05 19:58 ` Jason Gunthorpe
2023-05-05 20:03 ` Chuck Lever III
2023-05-06 18:05 ` Chuck Lever III
2023-05-23 19:18 ` Chuck Lever III
2023-05-23 19:44 ` Tom Talpey
2023-05-23 22:50 ` Chuck Lever III
2023-05-31 19:04 ` Jason Gunthorpe
2023-05-31 19:11 ` Chuck Lever III [this message]
2023-05-31 20:09 ` Jason Gunthorpe
2023-05-31 20:19 ` Chuck Lever III
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=B0D24A4F-8E82-4696-ACE1-453E45866DAC@oracle.com \
--to=chuck.lever@oracle.com \
--cc=BMT@zurich.ibm.com \
--cc=cel@kernel.org \
--cc=jgg@ziepe.ca \
--cc=linux-rdma@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=tom@talpey.com \
/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).