~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/net/smc/smc_llc.h

Version: ~ [ linux-5.4-rc3 ] ~ [ linux-5.3.6 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.79 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.149 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.196 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.196 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.75 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*
  3  *  Shared Memory Communications over RDMA (SMC-R) and RoCE
  4  *
  5  *  Definitions for LLC (link layer control) message handling
  6  *
  7  *  Copyright IBM Corp. 2016
  8  *
  9  *  Author(s):  Klaus Wacker <Klaus.Wacker@de.ibm.com>
 10  *              Ursula Braun <ubraun@linux.vnet.ibm.com>
 11  */
 12 
 13 #ifndef SMC_LLC_H
 14 #define SMC_LLC_H
 15 
 16 #include "smc_wr.h"
 17 
 18 #define SMC_LLC_FLAG_RESP               0x80
 19 
 20 #define SMC_LLC_WAIT_FIRST_TIME         (5 * HZ)
 21 
 22 enum smc_llc_reqresp {
 23         SMC_LLC_REQ,
 24         SMC_LLC_RESP
 25 };
 26 
 27 enum smc_llc_msg_type {
 28         SMC_LLC_CONFIRM_LINK            = 0x01,
 29 };
 30 
 31 #define SMC_LLC_DATA_LEN                40
 32 
 33 struct smc_llc_hdr {
 34         struct smc_wr_rx_hdr common;
 35         u8 length;      /* 44 */
 36         u8 reserved;
 37         u8 flags;
 38 };
 39 
 40 struct smc_llc_msg_confirm_link {       /* type 0x01 */
 41         struct smc_llc_hdr hd;
 42         u8 sender_mac[ETH_ALEN];
 43         u8 sender_gid[SMC_GID_SIZE];
 44         u8 sender_qp_num[3];
 45         u8 link_num;
 46         u8 link_uid[SMC_LGR_ID_SIZE];
 47         u8 max_links;
 48         u8 reserved[9];
 49 };
 50 
 51 union smc_llc_msg {
 52         struct smc_llc_msg_confirm_link confirm_link;
 53         struct {
 54                 struct smc_llc_hdr hdr;
 55                 u8 data[SMC_LLC_DATA_LEN];
 56         } raw;
 57 };
 58 
 59 /* transmit */
 60 int smc_llc_send_confirm_link(struct smc_link *lnk, u8 mac[], union ib_gid *gid,
 61                               enum smc_llc_reqresp reqresp);
 62 int smc_llc_init(void) __init;
 63 
 64 #endif /* SMC_LLC_H */
 65 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp