linux/net/smc/smc_close.c

// SPDX-License-Identifier: GPL-2.0
/*
 *  Shared Memory Communications over RDMA (SMC-R) and RoCE
 *
 *  Socket Closing - normal and abnormal
 *
 *  Copyright IBM Corp. 2016
 *
 *  Author(s):  Ursula Braun <[email protected]>
 */

#include <linux/workqueue.h>
#include <linux/sched/signal.h>

#include <net/sock.h>
#include <net/tcp.h>

#include "smc.h"
#include "smc_tx.h"
#include "smc_cdc.h"
#include "smc_close.h"

/* release the clcsock that is assigned to the smc_sock */
void smc_clcsock_release(struct smc_sock *smc)
{}

static void smc_close_cleanup_listen(struct sock *parent)
{}

/* wait for sndbuf data being transmitted */
static void smc_close_stream_wait(struct smc_sock *smc, long timeout)
{}

void smc_close_wake_tx_prepared(struct smc_sock *smc)
{}

static int smc_close_wr(struct smc_connection *conn)
{}

static int smc_close_final(struct smc_connection *conn)
{}

int smc_close_abort(struct smc_connection *conn)
{}

static void smc_close_cancel_work(struct smc_sock *smc)
{}

/* terminate smc socket abnormally - active abort
 * link group is terminated, i.e. RDMA communication no longer possible
 */
void smc_close_active_abort(struct smc_sock *smc)
{}

static inline bool smc_close_sent_any_close(struct smc_connection *conn)
{}

int smc_close_active(struct smc_sock *smc)
{}

static void smc_close_passive_abort_received(struct smc_sock *smc)
{}

/* Either some kind of closing has been received: peer_conn_closed,
 * peer_conn_abort, or peer_done_writing
 * or the link group of the connection terminates abnormally.
 */
static void smc_close_passive_work(struct work_struct *work)
{}

int smc_close_shutdown_write(struct smc_sock *smc)
{}

/* Initialize close properties on connection establishment. */
void smc_close_init(struct smc_sock *smc)
{}