Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/irdma/irdma_cm.h
/*- | /*- | ||||
* SPDX-License-Identifier: GPL-2.0 or Linux-OpenIB | * SPDX-License-Identifier: GPL-2.0 or Linux-OpenIB | ||||
* | * | ||||
* Copyright (c) 2015 - 2021 Intel Corporation | * Copyright (c) 2015 - 2022 Intel Corporation | ||||
* | * | ||||
* This software is available to you under a choice of one of two | * This software is available to you under a choice of one of two | ||||
* licenses. You may choose to be licensed under the terms of the GNU | * licenses. You may choose to be licensed under the terms of the GNU | ||||
Context not available. | |||||
#define TCP_OPTIONS_PADDING 3 | #define TCP_OPTIONS_PADDING 3 | ||||
#define IRDMA_DEFAULT_RETRYS 64 | #define IRDMA_DEFAULT_RETRYS 64 | ||||
#define IRDMA_DEFAULT_RETRANS 8 | #define IRDMA_DEFAULT_RETRANS 32 | ||||
#define IRDMA_DEFAULT_TTL 0x40 | #define IRDMA_DEFAULT_TTL 0x40 | ||||
#define IRDMA_DEFAULT_RTT_VAR 6 | #define IRDMA_DEFAULT_RTT_VAR 6 | ||||
#define IRDMA_DEFAULT_SS_THRESH 0x3fffffff | #define IRDMA_DEFAULT_SS_THRESH 0x3fffffff | ||||
Context not available. | |||||
IRDMA_CM_EVENT_ABORTED, | IRDMA_CM_EVENT_ABORTED, | ||||
}; | }; | ||||
struct irdma_bth { /* Base Trasnport Header */ | |||||
u8 opcode; | |||||
u8 flags; | |||||
__be16 pkey; | |||||
__be32 qpn; | |||||
__be32 apsn; | |||||
}; | |||||
struct ietf_mpa_v1 { | struct ietf_mpa_v1 { | ||||
u8 key[IETF_MPA_KEY_SIZE]; | u8 key[IETF_MPA_KEY_SIZE]; | ||||
u8 flags; | u8 flags; | ||||
Context not available. | |||||
static inline u8 irdma_tos2dscp(u8 tos) | static inline u8 irdma_tos2dscp(u8 tos) | ||||
{ | { | ||||
#define IRDMA_DSCP_S 2 | #define IRDMA_DSCP_S 2 | ||||
#define IRDMA_DSCP_M (0x3f << IRDMA_DSCP_S) | #define IRDMA_DSCP GENMASK(7, 2) | ||||
return RS_32(tos, IRDMA_DSCP); | return FIELD_GET(IRDMA_DSCP, tos); | ||||
} | } | ||||
int irdma_accept(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param); | int irdma_accept(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param); | ||||
Context not available. | |||||
int irdma_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param); | int irdma_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param); | ||||
int irdma_create_listen(struct iw_cm_id *cm_id, int backlog); | int irdma_create_listen(struct iw_cm_id *cm_id, int backlog); | ||||
int irdma_destroy_listen(struct iw_cm_id *cm_id); | int irdma_destroy_listen(struct iw_cm_id *cm_id); | ||||
int irdma_add_arp(struct irdma_pci_f *rf, u32 *ip, u8 *mac); | int irdma_add_arp(struct irdma_pci_f *rf, u32 *ip, const u8 *mac); | ||||
void irdma_cm_teardown_connections(struct irdma_device *iwdev, u32 *ipaddr, | void irdma_cm_teardown_connections(struct irdma_device *iwdev, u32 *ipaddr, | ||||
struct irdma_cm_info *nfo, | struct irdma_cm_info *nfo, | ||||
bool disconnect_all); | bool disconnect_all); | ||||
int irdma_cm_start(struct irdma_device *dev); | int irdma_cm_start(struct irdma_device *dev); | ||||
int irdma_cm_stop(struct irdma_device *dev); | int irdma_cm_stop(struct irdma_device *dev); | ||||
bool irdma_ipv4_is_lpb(struct vnet *, u32 loc_addr, u32 rem_addr); | bool irdma_ipv4_is_lpb(u32 loc_addr, u32 rem_addr); | ||||
bool irdma_ipv6_is_lpb(u32 *loc_addr, u32 *rem_addr); | bool irdma_ipv6_is_lpb(u32 *loc_addr, u32 *rem_addr); | ||||
int irdma_arp_table(struct irdma_pci_f *rf, u32 *ip_addr, | int irdma_arp_table(struct irdma_pci_f *rf, u32 *ip_addr, | ||||
u8 *mac_addr, u32 action); | const u8 *mac_addr, u32 action); | ||||
bool irdma_port_in_use(struct irdma_cm_core *cm_core, u16 port); | bool irdma_port_in_use(struct irdma_cm_core *cm_core, u16 port); | ||||
void irdma_send_ack(struct irdma_cm_node *cm_node); | void irdma_send_ack(struct irdma_cm_node *cm_node); | ||||
void irdma_lpb_nop(struct irdma_sc_qp *qp); | void irdma_lpb_nop(struct irdma_sc_qp *qp); | ||||
Context not available. |