Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <asm/octeon/octeon.h>
#include <asm/octeon/cvmx-config.h>
#include <asm/octeon/cvmx-fpa.h>
#include <asm/octeon/cvmx-pip.h>
#include <asm/octeon/cvmx-pko.h>
#include <asm/octeon/cvmx-ipd.h>
#include <asm/octeon/cvmx-spi.h>
#include <asm/octeon/cvmx-helper.h>
#include <asm/octeon/cvmx-helper-util.h>
#include <asm/octeon/cvmx-ipd-defs.h>
Go to the source code of this file.
Functions | |
const char * | cvmx_helper_interface_mode_to_string (cvmx_helper_interface_mode_t mode) |
int | cvmx_helper_dump_packet (cvmx_wqe_t *work) |
int | cvmx_helper_setup_red_queue (int queue, int pass_thresh, int drop_thresh) |
int | cvmx_helper_setup_red (int pass_thresh, int drop_thresh) |
int | __cvmx_helper_setup_gmx (int interface, int num_ports) |
int | cvmx_helper_get_ipd_port (int interface, int port) |
int | cvmx_helper_get_interface_num (int ipd_port) |
int | cvmx_helper_get_interface_index_num (int ipd_port) |
Definition at line 265 of file cvmx-helper-util.c.
int cvmx_helper_dump_packet | ( | cvmx_wqe_t * | work | ) |
Debug routine to dump the packet structure to the console
: Work queue entry containing the packet to dump Returns
Definition at line 89 of file cvmx-helper-util.c.
Returns the interface index number for an IPD/PKO port number.
: IPD/PKO port number
Returns Interface index number
Definition at line 420 of file cvmx-helper-util.c.
Returns the interface number for an IPD/PKO port number.
: IPD/PKO port number
Returns Interface number
Definition at line 395 of file cvmx-helper-util.c.
Definition at line 373 of file cvmx-helper-util.c.
const char* cvmx_helper_interface_mode_to_string | ( | cvmx_helper_interface_mode_t | mode | ) |
Convert a interface mode into a human readable string
: Mode to convert
Returns String
Definition at line 55 of file cvmx-helper-util.c.
Setup Random Early Drop to automatically begin dropping packets.
: Packets will begin slowly dropping when there are less than this many packet buffers free in FPA 0. : All incomming packets will be dropped when there are less than this many free packet buffers in FPA 0. Returns Zero on success. Negative on failure
Definition at line 217 of file cvmx-helper-util.c.
Setup Random Early Drop on a specific input queue
: Input queue to setup RED on (0-7) : Packets will begin slowly dropping when there are less than this many packet buffers free in FPA 0. : All incomming packets will be dropped when there are less than this many free packet buffers in FPA 0. Returns Zero on success. Negative on failure
Definition at line 182 of file cvmx-helper-util.c.