From patchwork Thu Jan 11 22:13:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Gunthorpe X-Patchwork-Id: 10158771 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C95B4601A1 for ; Thu, 11 Jan 2018 22:14:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B9F232850D for ; Thu, 11 Jan 2018 22:14:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AE98428567; Thu, 11 Jan 2018 22:14:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4BCD52850D for ; Thu, 11 Jan 2018 22:14:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933318AbeAKWOE (ORCPT ); Thu, 11 Jan 2018 17:14:04 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:40256 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933357AbeAKWN4 (ORCPT ); Thu, 11 Jan 2018 17:13:56 -0500 Received: by mail-wm0-f66.google.com with SMTP id f206so8200431wmf.5 for ; Thu, 11 Jan 2018 14:13:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=MJmwErYrrBwhHPam29xv+MiXt9ejQDTmAwmEZ6ul2AA=; b=oxRCUQ9pv7LsXPyQynzMU1S3wxD2EX3mOJA+6VK9D/KUHrqlsVYEaeBaULCa/6HJa+ PATbpeyD/sxeMEP6u8F9kt2k2K8phm7PMmkg52ARqvUyzHqgxOQR6jlqmty+8zuRCEd8 0p9bP/i2I+8Jm7gwQNMCzRR7lftwjhhwNmjpniYoZuECoK9xKmfBM1/LzKF0JkWJpK8h 4hKnfPWsAcWvbqjOQXQl9iZnI3p60MR7NcrQbCkaT2piUln4pDvhfwarkC6N+B98xPH8 QMkAIjhvgRxYTLdhiXZr0dj7apDtVtUZ38aFk4OkAn0QoBycMcK6D+h89VmKjMG7/E2K gVEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MJmwErYrrBwhHPam29xv+MiXt9ejQDTmAwmEZ6ul2AA=; b=FS1/+4ou61Z7Ypu0dE5lQuknXPVbr2lztH5004pFxMHJUMrDaNH6YSCmF/SSn9qa8H o4Vvam4Lds6tjhXBz5zJvmyOxkgNU3W6ONEs5f3KUavLgjRM66XJ9ibqG0zuaNen93ip la4VoGRwcM+KWfzOtZqFd8LA5L1XGYhLIdI6dV1KgX80K+f3jo3zRCEJeU8cg8vg2gfz YsByAtHk4ufp4/USJ/szzgUVApTvGfyjbYCOKJifVD8/wryX5PfExCWviaTTD5O4A+ih mcq8yE92VL5YleG+daeFc9LC/+dD4BPB/t24DL+hRINRGCaZi+hVyN6TRtDASwbdzwmA fcpg== X-Gm-Message-State: AKwxytcSNoHgiGPeFXZZvAKSn67XoyePk2SpR8sRvuFNdJc+8Xfdd7kD sBpAc+2BhtJG1I1XPPr4UCZc4yjcWPc= X-Google-Smtp-Source: ACJfBotwS/S7Z1UyG21C9DOc+v4pcl2PwsnkA+gWP1DHZpBEE+8EyWMPAU0CH6td22N0zVBgMShUtA== X-Received: by 10.28.147.202 with SMTP id v193mr2641863wmd.128.1515708834642; Thu, 11 Jan 2018 14:13:54 -0800 (PST) Received: from ziepe.ca (S010614cc2056d97f.ed.shawcable.net. [70.74.179.152]) by smtp.gmail.com with ESMTPSA id j6sm2216968wmg.41.2018.01.11.14.13.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Jan 2018 14:13:50 -0800 (PST) Received: from jgg by mlx.ziepe.ca with local (Exim 4.86_2) (envelope-from ) id 1eZl6Y-0000JE-PB; Thu, 11 Jan 2018 15:13:46 -0700 From: Jason Gunthorpe To: linux-rdma@vger.kernel.org Cc: Jason Gunthorpe Subject: [PATCH rdma-core 06/17] verbs: Add missing endian annotations to kern-abi.h Date: Thu, 11 Jan 2018 15:13:29 -0700 Message-Id: <20180111221340.965-7-jgg@ziepe.ca> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180111221340.965-1-jgg@ziepe.ca> References: <20180111221340.965-1-jgg@ziepe.ca> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jason Gunthorpe Copied from the kernel headers. Signed-off-by: Jason Gunthorpe --- libibverbs/kern-abi.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/libibverbs/kern-abi.h b/libibverbs/kern-abi.h index 52b6c8f5b3d621..e4bca3aea4f906 100644 --- a/libibverbs/kern-abi.h +++ b/libibverbs/kern-abi.h @@ -768,8 +768,8 @@ struct ibv_kern_send_wr { struct ibv_kern_eth_filter { __u8 dst_mac[6]; __u8 src_mac[6]; - __u16 ether_type; - __u16 vlan_tag; + __be16 ether_type; + __be16 vlan_tag; }; struct ibv_kern_spec_eth { @@ -794,8 +794,8 @@ struct ibv_kern_spec_ipv4 { }; struct ibv_kern_ipv4_ext_filter { - __u32 src_ip; - __u32 dst_ip; + __be32 src_ip; + __be32 dst_ip; __u8 proto; __u8 tos; __u8 ttl; @@ -813,7 +813,7 @@ struct ibv_kern_spec_ipv4_ext { struct ibv_kern_ipv6_filter { __u8 src_ip[16]; __u8 dst_ip[16]; - __u32 flow_label; + __be32 flow_label; __u8 next_hdr; __u8 traffic_class; __u8 hop_limit; @@ -829,8 +829,8 @@ struct ibv_kern_spec_ipv6 { }; struct ibv_kern_tcp_udp_filter { - __u16 dst_port; - __u16 src_port; + __be16 dst_port; + __be16 src_port; }; struct ibv_kern_spec_tcp_udp { @@ -850,7 +850,7 @@ struct ibv_kern_spec_action_tag { }; struct ibv_kern_tunnel_filter { - __u32 tunnel_id; + __be32 tunnel_id; }; struct ibv_kern_spec_tunnel { @@ -897,6 +897,7 @@ struct ibv_kern_flow_attr { * struct ibv_kern_flow_spec_xxx * struct ibv_kern_flow_spec_yyy */ + struct ib_uverbs_flow_spec_hdr flow_specs[0]; }; struct ibv_post_send {