On 4/10/16 7:55 AM, Christoph Hellwig wrote:
On Sun, Apr 10, 2016 at 05:27:03PM +0300, Sagi Grimberg wrote:
Is there any good reason to have each kernel driver create it's own PDs
instead of simply creating one per device and sticking it into the
ib_device structure?
There is a theoretical breach here. Say you're connected with a srp
channel to a target, and you send out rkey X to your peer. In case
there is a man-in-the-middle who sniffs it, he can theoretically
read/write to your rkey by connecting to IPoIB in RC mode (which
will connect to anyone).
Already, makes sense.
Exactly I was also responding with similar response since many ULPs
share the HCA resources and they needs to be isolated which PD does.
Regards,
Santosh
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html