Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ethernet-tx.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/netdevice.h>
#include <linux/init.h>
#include <linux/etherdevice.h>
#include <linux/ip.h>
#include <linux/ratelimit.h>
#include <linux/string.h>
#include <linux/interrupt.h>
#include <net/dst.h>
#include <linux/atomic.h>
#include <asm/octeon/octeon.h>
#include "ethernet-defines.h"
#include "octeon-ethernet.h"
#include "ethernet-tx.h"
#include "ethernet-util.h"
#include <asm/octeon/cvmx-wqe.h>
#include <asm/octeon/cvmx-fau.h>
#include <asm/octeon/cvmx-pip.h>
#include <asm/octeon/cvmx-pko.h>
#include <asm/octeon/cvmx-helper.h>
#include <asm/octeon/cvmx-gmxx-defs.h>

Go to the source code of this file.

Macros

#define CVM_OCT_SKB_CB(skb)   ((u64 *)((skb)->cb))
 
#define GET_SKBUFF_QOS(skb)   0
 
#define MAX_SKB_TO_FREE   (MAX_OUT_QUEUE_DEPTH * 2)
 

Functions

void cvm_oct_free_tx_skbs (struct net_device *dev)
 
int cvm_oct_xmit (struct sk_buff *skb, struct net_device *dev)
 
int cvm_oct_xmit_pow (struct sk_buff *skb, struct net_device *dev)
 
void cvm_oct_tx_shutdown_dev (struct net_device *dev)
 
void cvm_oct_tx_initialize (void)
 
void cvm_oct_tx_shutdown (void)
 

Macro Definition Documentation

#define CVM_OCT_SKB_CB (   skb)    ((u64 *)((skb)->cb))

Definition at line 59 of file ethernet-tx.c.

#define GET_SKBUFF_QOS (   skb)    0

Definition at line 69 of file ethernet-tx.c.

#define MAX_SKB_TO_FREE   (MAX_OUT_QUEUE_DEPTH * 2)

Definition at line 76 of file ethernet-tx.c.

Function Documentation

void cvm_oct_free_tx_skbs ( struct net_device dev)

Definition at line 97 of file ethernet-tx.c.

void cvm_oct_tx_initialize ( void  )

Definition at line 706 of file ethernet-tx.c.

void cvm_oct_tx_shutdown ( void  )

Definition at line 721 of file ethernet-tx.c.

void cvm_oct_tx_shutdown_dev ( struct net_device dev)

cvm_oct_tx_shutdown_dev - free all skb that are currently queued for TX. : Device being shutdown

Definition at line 670 of file ethernet-tx.c.

int cvm_oct_xmit ( struct sk_buff skb,
struct net_device dev 
)

cvm_oct_xmit - transmit a packet : Packet to send : Device info structure

Returns Always returns NETDEV_TX_OK

Definition at line 148 of file ethernet-tx.c.

int cvm_oct_xmit_pow ( struct sk_buff skb,
struct net_device dev 
)

cvm_oct_xmit_pow - transmit a packet to the POW : Packet to send : Device info structure

Returns Always returns zero

Definition at line 521 of file ethernet-tx.c.