1*9162SPeter.Dunlap@Sun.COM /* 2*9162SPeter.Dunlap@Sun.COM * CDDL HEADER START 3*9162SPeter.Dunlap@Sun.COM * 4*9162SPeter.Dunlap@Sun.COM * The contents of this file are subject to the terms of the 5*9162SPeter.Dunlap@Sun.COM * Common Development and Distribution License (the "License"). 6*9162SPeter.Dunlap@Sun.COM * You may not use this file except in compliance with the License. 7*9162SPeter.Dunlap@Sun.COM * 8*9162SPeter.Dunlap@Sun.COM * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*9162SPeter.Dunlap@Sun.COM * or http://www.opensolaris.org/os/licensing. 10*9162SPeter.Dunlap@Sun.COM * See the License for the specific language governing permissions 11*9162SPeter.Dunlap@Sun.COM * and limitations under the License. 12*9162SPeter.Dunlap@Sun.COM * 13*9162SPeter.Dunlap@Sun.COM * When distributing Covered Code, include this CDDL HEADER in each 14*9162SPeter.Dunlap@Sun.COM * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*9162SPeter.Dunlap@Sun.COM * If applicable, add the following below this CDDL HEADER, with the 16*9162SPeter.Dunlap@Sun.COM * fields enclosed by brackets "[]" replaced with your own identifying 17*9162SPeter.Dunlap@Sun.COM * information: Portions Copyright [yyyy] [name of copyright owner] 18*9162SPeter.Dunlap@Sun.COM * 19*9162SPeter.Dunlap@Sun.COM * CDDL HEADER END 20*9162SPeter.Dunlap@Sun.COM */ 21*9162SPeter.Dunlap@Sun.COM /* 22*9162SPeter.Dunlap@Sun.COM * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23*9162SPeter.Dunlap@Sun.COM * Use is subject to license terms. 24*9162SPeter.Dunlap@Sun.COM */ 25*9162SPeter.Dunlap@Sun.COM 26*9162SPeter.Dunlap@Sun.COM #ifndef _ISER_IDM_H 27*9162SPeter.Dunlap@Sun.COM #define _ISER_IDM_H 28*9162SPeter.Dunlap@Sun.COM 29*9162SPeter.Dunlap@Sun.COM #ifdef __cplusplus 30*9162SPeter.Dunlap@Sun.COM extern "C" { 31*9162SPeter.Dunlap@Sun.COM #endif 32*9162SPeter.Dunlap@Sun.COM 33*9162SPeter.Dunlap@Sun.COM #include <sys/idm/idm.h> 34*9162SPeter.Dunlap@Sun.COM #include <sys/idm/idm_text.h> 35*9162SPeter.Dunlap@Sun.COM 36*9162SPeter.Dunlap@Sun.COM /* 37*9162SPeter.Dunlap@Sun.COM * iSER transport routines 38*9162SPeter.Dunlap@Sun.COM * 39*9162SPeter.Dunlap@Sun.COM * All transport functions except iser_tgt_svc_create() are called through 40*9162SPeter.Dunlap@Sun.COM * the ops vector, iser_tgt_svc_create() is called from the async handler 41*9162SPeter.Dunlap@Sun.COM * inaddition to being called by the ULP 42*9162SPeter.Dunlap@Sun.COM */ 43*9162SPeter.Dunlap@Sun.COM 44*9162SPeter.Dunlap@Sun.COM /* 45*9162SPeter.Dunlap@Sun.COM * For small transfers, it is both CPU and time intensive to register the 46*9162SPeter.Dunlap@Sun.COM * memory used for the RDMA, So the transport does bcopy into memory that 47*9162SPeter.Dunlap@Sun.COM * is already pre-registered and maintained in a cache. 48*9162SPeter.Dunlap@Sun.COM */ 49*9162SPeter.Dunlap@Sun.COM #define ISER_BCOPY_THRESHOLD 0x20000 /* 128k */ 50*9162SPeter.Dunlap@Sun.COM 51*9162SPeter.Dunlap@Sun.COM idm_status_t iser_tgt_svc_create(idm_svc_req_t *sr, struct idm_svc_s *is); 52*9162SPeter.Dunlap@Sun.COM 53*9162SPeter.Dunlap@Sun.COM 54*9162SPeter.Dunlap@Sun.COM #ifdef __cplusplus 55*9162SPeter.Dunlap@Sun.COM } 56*9162SPeter.Dunlap@Sun.COM #endif 57*9162SPeter.Dunlap@Sun.COM 58*9162SPeter.Dunlap@Sun.COM #endif /* _ISER_IDM_H */ 59