From: Jason Gunthorpe <jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
To: Or Gerlitz <ogerlitz-hKgKHo2Ms0FWk0Htik3J/w@public.gmane.org>
Cc: "Hefty,
Sean" <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
"linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Patrick McHardy <kaber-dcUjhNyLwpNeoWH0uzbU5w@public.gmane.org>
Subject: Re: using same IP subnet on multiple interfaces (was: dual HCAs with upstream kernel)
Date: Sun, 15 Aug 2010 10:59:46 -0600 [thread overview]
Message-ID: <20100815165946.GA2861@obsidianresearch.com> (raw)
In-Reply-To: <4C679C39.8060709-hKgKHo2Ms0FWk0Htik3J/w@public.gmane.org>
On Sun, Aug 15, 2010 at 10:50:17AM +0300, Or Gerlitz wrote:
> the echo requests go on the wire, the replies not, probably (...)
> internally, Patrick?
What all these settings do is let a socket that is bound to a device
resolve the local host's address through ARP. The socket that is bound
to a device will then use its device for sending, but other sockets
not bound to devices will do route lookups and use the lo device.
Do:
ip route get 192.168.20.100 dev ib0
ip route get 192.168.20.1 src 192.168.20.100
To see the difference in each side.
To really effect a full external loopback you need to have both sides
bound to their respective devices. Note that binding to a device and
binding to a source IP are not the same thing in Linux.
In the RDMA CM case the listening side doesn't do any IP
routing operations at all so a device bind isn't necessary.
Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2010-08-15 16:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-12 15:42 dual HCAs with upstream kernel Hefty, Sean
[not found] ` <CF9C39F99A89134C9CF9C4CCB68B8DDF25A9687B2B-osO9UTpF0USkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2010-08-15 7:50 ` using same IP subnet on multiple interfaces (was: dual HCAs with upstream kernel) Or Gerlitz
[not found] ` <4C679C39.8060709-hKgKHo2Ms0FWk0Htik3J/w@public.gmane.org>
2010-08-15 16:59 ` Jason Gunthorpe [this message]
[not found] ` <20100815165946.GA2861-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2010-08-16 15:30 ` using same IP subnet on multiple interfaces Or Gerlitz
[not found] ` <4C69597C.2040008-hKgKHo2Ms0FWk0Htik3J/w@public.gmane.org>
2010-08-17 3:19 ` Jason Gunthorpe
[not found] ` <20100817031945.GA5251-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2010-08-18 6:02 ` Or Gerlitz
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=20100815165946.GA2861@obsidianresearch.com \
--to=jgunthorpe-epgobjl8dl3ta4ec/59zmfatqe2ktcn/@public.gmane.org \
--cc=kaber-dcUjhNyLwpNeoWH0uzbU5w@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=ogerlitz-hKgKHo2Ms0FWk0Htik3J/w@public.gmane.org \
--cc=sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.