From owner-svn-src-projects@FreeBSD.ORG Thu Jul 29 02:21:53 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 099351065676; Thu, 29 Jul 2010 02:21:53 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id ED51E8FC16; Thu, 29 Jul 2010 02:21:52 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o6T2LpZC001861; Thu, 29 Jul 2010 02:21:51 GMT (envelope-from jeff@svn.freebsd.org) Received: (from jeff@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o6T2LpO7001859; Thu, 29 Jul 2010 02:21:51 GMT (envelope-from jeff@svn.freebsd.org) Message-Id: <201007290221.o6T2LpO7001859@svn.freebsd.org> From: Jeff Roberson Date: Thu, 29 Jul 2010 02:21:51 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r210592 - projects/ofed/head/sys/ofed/include/asm X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jul 2010 02:21:53 -0000 Author: jeff Date: Thu Jul 29 02:21:51 2010 New Revision: 210592 URL: http://svn.freebsd.org/changeset/base/210592 Log: - Add be16_add_cpu for mthca support. Sponsored by: Isilon Systems, iX Systems, and Panasas. Modified: projects/ofed/head/sys/ofed/include/asm/byteorder.h Modified: projects/ofed/head/sys/ofed/include/asm/byteorder.h ============================================================================== --- projects/ofed/head/sys/ofed/include/asm/byteorder.h Thu Jul 29 02:21:18 2010 (r210591) +++ projects/ofed/head/sys/ofed/include/asm/byteorder.h Thu Jul 29 02:21:51 2010 (r210592) @@ -81,4 +81,10 @@ #define swab32 bswap32 #define swab64 bswap64 +static inline void +be16_add_cpu(u16 *var, u16 val) +{ + *var = cpu_to_be16(be16_to_cpu(*var) + val); +} + #endif /* _ASM_BYTEORDER_H_ */