Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030962AbbD1U0g (ORCPT ); Tue, 28 Apr 2015 16:26:36 -0400 Received: from rcdn-iport-3.cisco.com ([173.37.86.74]:32400 "EHLO rcdn-iport-3.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030901AbbD1U0e convert rfc822-to-8bit (ORCPT ); Tue, 28 Apr 2015 16:26:34 -0400 X-Greylist: delayed 569 seconds by postgrey-1.27 at vger.kernel.org; Tue, 28 Apr 2015 16:26:33 EDT X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CgBQBe6T9V/4sNJK1cgwyBLwXOcgKBO0wBAQEBAQGBC4QhAQEDATo/EAIBCDYQMiUCBA4FiCMIx10BAQEBAQEBAQEBAQEBAQEBAQEBAQEXiziEUjMHgxeBFgEEkWWKP4wmiUYjYIMUb4FEgQEBAQE X-IronPort-AV: E=Sophos;i="5.11,666,1422921600"; d="scan'208";a="415512124" From: "Dave Goodell (dgoodell)" To: "Hefty, Sean" CC: Tom Talpey , Doug Ledford , "Weiny, Ira" , Michael Wang , "Liran Liss" , Roland Dreier , Hal Rosenstock , "linux-rdma@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Steve Wise , Jason Gunthorpe , Tom Tucker , Hoang-Nam Nguyen , "raisch@de.ibm.com" , infinipath , Eli Cohen , "Latif, Faisal" , "Jack Morgenstein" , Or Gerlitz , Haggai Eran Subject: Re: [PATCH v6 01/26] IB/Verbs: Implement new callback query_transport() Thread-Topic: [PATCH v6 01/26] IB/Verbs: Implement new callback query_transport() Thread-Index: AQHQfomOUvs+HNY8lEy/xelJkPOzZZ1cmNSAgAQ4ZICAAO5xAIAAKDWAgAAFeQCAAATZgIAACLqAgAAG4QCAAEoOgIAA5CWAgAAArQCAAAangA== Date: Tue, 28 Apr 2015 20:17:02 +0000 Message-ID: References: <1429878230-11749-1-git-send-email-yun.wang@profitbricks.com> <1429878230-11749-2-git-send-email-yun.wang@profitbricks.com> <553DE799.5050608@profitbricks.com> <20150427215229.GD5347@phlsvsds.ph.intel.com> <553ED159.2090006@talpey.com> <1430181360.44548.35.camel@redhat.com> <553EDA01.9040708@talpey.com> <1430184275.44548.44.camel@redhat.com> <553EE718.1030502@talpey.com> <1828884A29C6694DAF28B7E6B8A82373A8FC819C@ORSMSX109.amr.corp.intel.com> <1828884A29C6694DAF28B7E6B8A82373A8FC8538@ORSMSX109.amr.corp.intel.com> In-Reply-To: <1828884A29C6694DAF28B7E6B8A82373A8FC8538@ORSMSX109.amr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.27.35.215] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1341 Lines: 18 On Apr 28, 2015, at 2:53 PM, Hefty, Sean wrote: >> Is the concern here about CM issues or the UDP ports used by the actual >> usNIC RQs? > > UDP port space sharing For the UDP port used by the usNIC QP, the usnic_verbs kernel driver requires user space to pass a file descriptor of a regular UDP socket down at create_qp time. The reference count on this socket is incremented to make sure that the socket can't disappear out from under us. Then an RX filter is installed in the NIC which matches UDP/IP/Ethernet packets that are destined for the UDP port to which the given socket is already bound. So there is a real UDP socket to make most of the usual things happen in the net stack, but the raw UDP/IP/Ethernet packets get delivered directly to the user space queues by the NIC. E.g., "netstat" and "lsof" show you proper addressing information, though obviously any information related to data-path statistics will not be accurate. At teardown we just reverse the steps. However, I'm not sure if that's the sort of information you were looking for. -Dave -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/