Research Article

FAS: Using FPGA to Accelerate and Secure SDN Software Switches

Table 3

Basic functions for the virtual Ethernet port.

Interface of functionDescription

static int nmp_open(struct net_device )Open a port

static int nmp_close(struct net_device )Close a port

static int nmp_xmit_frame(struct sk_buff ,struct net_device )Send packet to a port

static struct net_device_stats _get_stats(struct net_device )Acquire port statistics

static int nmp_set_mac(struct net_device ,void )Set MAC address of a port

static int nmp_change_mtu(struct net_device ,int new_mtu)Set MTU of a port