函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\rdma\ib_verbs.h Create Date:2022-07-27 08:12:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:rdma_gid_attr_network_type

函数原型:static inline enum rdma_network_type rdma_gid_attr_network_type(const struct ib_gid_attr *attr)

返回类型:enum rdma_network_type

参数:

类型参数名称
const struct ib_gid_attr *attr
220  如果gid_type恒等于 If link layer is Ethernet, this is RoCE V1 则返回:RDMA_NETWORK_IB
223  如果Note that we must __force cast these to unsigned long to make sparse happy,* since all of the endian-annotated types are fixed size regardless of arch.则返回:RDMA_NETWORK_IPV4
225  否则返回:RDMA_NETWORK_IPV6