aoe
87
About: AoE (ATA over Ethernet) Protocol Driver (Linux kernel 4.8.x and greater are not supported).
![]() ![]() |
#include <linux/hdreg.h>
#include <linux/blkdev.h>
#include <linux/netdevice.h>
#include <linux/moduleparam.h>
#include <net/net_namespace.h>
#include <asm/unaligned.h>
#include "aoe.h"
Go to the source code of this file.
Macros | |
#define | NECODES 5 |
Enumerations | |
enum | { IFLISTSZ = 1024 } |
Functions | |
module_param_string (aoe_iflist, aoe_iflist, IFLISTSZ, 0600) | |
MODULE_PARM_DESC (aoe_iflist, "aoe_iflist=dev1[,dev2...]\n") | |
static int __init | aoe_iflist_setup (char *str) |
__setup ("aoe_iflist=", aoe_iflist_setup) | |
static int | tx (int id) |
static size_t | aoe_strcspn (const char *s, const char *reject) |
int | is_aoe_netif (struct net_device *ifp) |
int | set_aoe_iflist (const char __user *user_str, size_t size) |
unsigned long long | mac_addr (char addr[6]) |
void | aoenet_xmit (struct sk_buff *sl) |
static int | aoenet_rcv (struct sk_buff *skb, struct net_device *ifp, struct packet_type *pt, struct net_device *orig_dev) |
int __init | aoenet_init (void) |
void | aoenet_exit (void) |
Variables | |
static char * | aoe_errlist [] |
static char | aoe_iflist [IFLISTSZ] |
static wait_queue_head_t | txwq |
static struct ktstate | kts |
static spinlock_t | txlock |
static struct sk_buff_head | skbtxq |
static struct packet_type | aoe_pt |
__setup | ( | ) |
|
static |
Definition at line 39 of file aoenet.c.
References aoe_iflist, and IFLISTSZ.
|
static |
Definition at line 90 of file aoenet.c.
Referenced by is_aoe_netif().
void aoenet_exit | ( | void | ) |
Definition at line 261 of file aoenet.c.
References aoe_ktstop(), aoe_pt, kts, and skbtxq.
Referenced by aoe_exit(), and aoe_init().
int __init aoenet_init | ( | void | ) |
Definition at line 244 of file aoenet.c.
References aoe_ktstart(), aoe_pt, ktstate::fn, ktstate::id, kts, ktstate::lock, ktstate::name, skbtxq, tx(), txlock, txwq, and ktstate::waitq.
Referenced by aoe_init().
|
static |
Definition at line 178 of file aoenet.c.
References aoe_errlist, AOECMD_ATA, aoecmd_ata_rsp(), AOECMD_CFG, aoecmd_cfg_rsp(), AOECMD_VEND_MIN, AOEFL_ERR, AOEFL_RSP, aoe_hdr::cmd, aoe_hdr::err, is_aoe_netif(), aoe_hdr::major, aoe_hdr::minor, NECODES, aoe_hdr::tag, and aoe_hdr::verfl.
void aoenet_xmit | ( | struct sk_buff * | sl | ) |
Definition at line 159 of file aoenet.c.
References skbtxq, txlock, and txwq.
Referenced by aoecmd_ata_rw(), aoecmd_cfg(), aoecmd_cfg_rsp(), probe(), resend(), and revalidate().
int is_aoe_netif | ( | struct net_device * | ifp | ) |
Definition at line 108 of file aoenet.c.
References aoe_iflist, aoe_strcspn(), and WHITESPACE.
Referenced by aoecmd_cfg_pkts(), and aoenet_rcv().
unsigned long long mac_addr | ( | char | addr[6] | ) |
Definition at line 148 of file aoenet.c.
Referenced by aoecmd_ata_rsp(), aoedisk_show_mac(), ataid_complete(), probe(), and resend().
module_param_string | ( | aoe_iflist | , |
aoe_iflist | , | ||
IFLISTSZ | , | ||
0600 | |||
) |
MODULE_PARM_DESC | ( | aoe_iflist | , |
" | aoe_iflist = dev1[ , |
||
dev2...]\n" | |||
) |
int set_aoe_iflist | ( | const char __user * | user_str, |
size_t | size | ||
) |
Definition at line 134 of file aoenet.c.
References aoe_iflist, and IFLISTSZ.
Referenced by interfaces().
Definition at line 54 of file aoenet.c.
References aoe_atahdr::aflags, AOEAFL_WRITE, skbtxq, and txlock.
Referenced by aoenet_init().
|
static |
Definition at line 17 of file aoenet.c.
Referenced by aoenet_rcv().
|
static |
Definition at line 31 of file aoenet.c.
Referenced by aoe_iflist_setup(), is_aoe_netif(), and set_aoe_iflist().
|
static |
Definition at line 238 of file aoenet.c.
Referenced by aoenet_exit(), and aoenet_init().
|
static |
Definition at line 36 of file aoenet.c.
Referenced by aoenet_exit(), and aoenet_init().
|
static |
Definition at line 50 of file aoenet.c.
Referenced by aoenet_exit(), aoenet_init(), aoenet_xmit(), and tx().
|
static |
Definition at line 49 of file aoenet.c.
Referenced by aoenet_init(), aoenet_xmit(), and tx().
|
static |
Definition at line 35 of file aoenet.c.
Referenced by aoenet_init(), and aoenet_xmit().