From patchwork Thu Aug 16 19:24:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hefty, Sean" X-Patchwork-Id: 1334841 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 9D87340211 for ; Thu, 16 Aug 2012 19:24:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753320Ab2HPTYZ (ORCPT ); Thu, 16 Aug 2012 15:24:25 -0400 Received: from mga09.intel.com ([134.134.136.24]:28674 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753137Ab2HPTYY convert rfc822-to-8bit (ORCPT ); Thu, 16 Aug 2012 15:24:24 -0400 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 16 Aug 2012 12:24:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.77,780,1336374000"; d="scan'208";a="187368118" Received: from orsmsx604.amr.corp.intel.com ([10.22.226.87]) by orsmga002.jf.intel.com with ESMTP; 16 Aug 2012 12:24:23 -0700 Received: from orsmsx108.amr.corp.intel.com (10.22.225.40) by orsmsx604.amr.corp.intel.com (10.22.226.87) with Microsoft SMTP Server (TLS) id 8.2.255.0; Thu, 16 Aug 2012 12:24:23 -0700 Received: from orsmsx101.amr.corp.intel.com ([169.254.8.152]) by ORSMSX108.amr.corp.intel.com ([169.254.9.94]) with mapi id 14.01.0355.002; Thu, 16 Aug 2012 12:24:22 -0700 From: "Hefty, Sean" To: "linux-rdma (linux-rdma@vger.kernel.org)" Subject: [PATCH 3/7] librdmacm/rsockets: Support SO_OOBINLINE Thread-Topic: [PATCH 3/7] librdmacm/rsockets: Support SO_OOBINLINE Thread-Index: Ac1749vfRg9iuJU7RBuiNZAq0hdJcg== Date: Thu, 16 Aug 2012 19:24:22 +0000 Message-ID: <1828884A29C6694DAF28B7E6B8A8237346A89968@ORSMSX101.amr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.22.254.139] MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org We don't support urgent data, so just return success. Signed-off-by: Sean Hefty --- src/rsocket.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/src/rsocket.c b/src/rsocket.c index b9105a1..996cb2f 100644 --- a/src/rsocket.c +++ b/src/rsocket.c @@ -1820,6 +1820,10 @@ int rsetsockopt(int socket, int level, int optname, opt_on = *(int *) optval; ret = 0; break; + case SO_OOBINLINE: + opt_on = *(int *) optval; + ret = 0; + break; default: break; } @@ -1898,6 +1902,7 @@ int rgetsockopt(int socket, int level, int optname, switch (optname) { case SO_REUSEADDR: case SO_KEEPALIVE: + case SO_OOBINLINE: *((int *) optval) = !!(rs->so_opts & (1 << optname)); *optlen = sizeof(int); break;