__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
/* QLogic qedr NIC Driver
* Copyright (c) 2015-2017 QLogic Corporation
* Copyright (c) 2019-2020 Marvell International Ltd.
*/
#ifndef QEDE_ROCE_H
#define QEDE_ROCE_H
#include <linux/pci.h>
#include <linux/netdevice.h>
#include <linux/types.h>
#include <linux/workqueue.h>
struct qedr_dev;
struct qed_dev;
struct qede_dev;
enum qede_rdma_event {
QEDE_UP,
QEDE_DOWN,
QEDE_CHANGE_ADDR,
QEDE_CLOSE,
QEDE_CHANGE_MTU,
};
struct qede_rdma_event_work {
struct list_head list;
struct work_struct work;
void *ptr;
enum qede_rdma_event event;
};
struct qedr_driver {
unsigned char name[32];
struct qedr_dev* (*add)(struct qed_dev *, struct pci_dev *,
struct net_device *);
void (*remove)(struct qedr_dev *);
void (*notify)(struct qedr_dev *, enum qede_rdma_event);
};
/* APIs for RDMA driver to register callback handlers,
* which will be invoked when device is added, removed, ifup, ifdown
*/
int qede_rdma_register_driver(struct qedr_driver *drv);
void qede_rdma_unregister_driver(struct qedr_driver *drv);
bool qede_rdma_supported(struct qede_dev *dev);
#if IS_ENABLED(CONFIG_QED_RDMA)
int qede_rdma_dev_add(struct qede_dev *dev, bool recovery);
void qede_rdma_dev_event_open(struct qede_dev *dev);
void qede_rdma_dev_event_close(struct qede_dev *dev);
void qede_rdma_dev_remove(struct qede_dev *dev, bool recovery);
void qede_rdma_event_changeaddr(struct qede_dev *edr);
void qede_rdma_event_change_mtu(struct qede_dev *edev);
#else
static inline int qede_rdma_dev_add(struct qede_dev *dev,
bool recovery)
{
return 0;
}
static inline void qede_rdma_dev_event_open(struct qede_dev *dev) {}
static inline void qede_rdma_dev_event_close(struct qede_dev *dev) {}
static inline void qede_rdma_dev_remove(struct qede_dev *dev,
bool recovery) {}
static inline void qede_rdma_event_changeaddr(struct qede_dev *edr) {}
#endif
#endif
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| common_hsi.h | File | 48.97 KB | 0644 |
|
| eth_common.h | File | 14.2 KB | 0644 |
|
| fcoe_common.h | File | 24.26 KB | 0644 |
|
| iscsi_common.h | File | 47.67 KB | 0644 |
|
| iwarp_common.h | File | 852 B | 0644 |
|
| nvmetcp_common.h | File | 17.85 KB | 0644 |
|
| qed_chain.h | File | 16.53 KB | 0644 |
|
| qed_eth_if.h | File | 9.14 KB | 0644 |
|
| qed_fcoe_if.h | File | 4.03 KB | 0644 |
|
| qed_if.h | File | 34.06 KB | 0644 |
|
| qed_iov_if.h | File | 930 B | 0644 |
|
| qed_iscsi_if.h | File | 5.93 KB | 0644 |
|
| qed_ll2_if.h | File | 6.16 KB | 0644 |
|
| qed_nvmetcp_if.h | File | 7.33 KB | 0644 |
|
| qed_rdma_if.h | File | 17.93 KB | 0644 |
|
| qede_rdma.h | File | 1.88 KB | 0644 |
|
| rdma_common.h | File | 1.21 KB | 0644 |
|
| roce_common.h | File | 1.24 KB | 0644 |
|
| storage_common.h | File | 3.76 KB | 0644 |
|
| tcp_common.h | File | 6.65 KB | 0644 |
|