Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
cpsw_ale.h File Reference

Go to the source code of this file.

Data Structures

struct  cpsw_ale_params
 
struct  cpsw_ale
 

Macros

#define ALE_SECURE   1
 
#define ALE_BLOCKED   2
 
#define ALE_MCAST_FWD   0
 
#define ALE_MCAST_BLOCK_LEARN_FWD   1
 
#define ALE_MCAST_FWD_LEARN   2
 
#define ALE_MCAST_FWD_2   3
 

Enumerations

enum  cpsw_ale_control {
  ALE_ENABLE, ALE_CLEAR, ALE_AGEOUT, ALE_VLAN_NOLEARN,
  ALE_NO_PORT_VLAN, ALE_OUI_DENY, ALE_BYPASS, ALE_RATE_LIMIT_TX,
  ALE_VLAN_AWARE, ALE_AUTH_ENABLE, ALE_RATE_LIMIT, ALE_PORT_STATE,
  ALE_PORT_DROP_UNTAGGED, ALE_PORT_DROP_UNKNOWN_VLAN, ALE_PORT_NOLEARN, ALE_PORT_UNKNOWN_VLAN_MEMBER,
  ALE_PORT_UNKNOWN_MCAST_FLOOD, ALE_PORT_UNKNOWN_REG_MCAST_FLOOD, ALE_PORT_UNTAGGED_EGRESS, ALE_PORT_BCAST_LIMIT,
  ALE_PORT_MCAST_LIMIT, ALE_NUM_CONTROLS
}
 
enum  cpsw_ale_port_state { ALE_PORT_STATE_DISABLE = 0x00, ALE_PORT_STATE_BLOCK = 0x01, ALE_PORT_STATE_LEARN = 0x02, ALE_PORT_STATE_FORWARD = 0x03 }
 

Functions

struct cpsw_alecpsw_ale_create (struct cpsw_ale_params *params)
 
int cpsw_ale_destroy (struct cpsw_ale *ale)
 
void cpsw_ale_start (struct cpsw_ale *ale)
 
void cpsw_ale_stop (struct cpsw_ale *ale)
 
int cpsw_ale_set_ageout (struct cpsw_ale *ale, int ageout)
 
int cpsw_ale_flush (struct cpsw_ale *ale, int port_mask)
 
int cpsw_ale_add_ucast (struct cpsw_ale *ale, u8 *addr, int port, int flags)
 
int cpsw_ale_del_ucast (struct cpsw_ale *ale, u8 *addr, int port)
 
int cpsw_ale_add_mcast (struct cpsw_ale *ale, u8 *addr, int port_mask, int super, int mcast_state)
 
int cpsw_ale_del_mcast (struct cpsw_ale *ale, u8 *addr, int port_mask)
 
int cpsw_ale_control_get (struct cpsw_ale *ale, int port, int control)
 
int cpsw_ale_control_set (struct cpsw_ale *ale, int port, int control, int value)
 

Macro Definition Documentation

#define ALE_BLOCKED   2

Definition at line 68 of file cpsw_ale.h.

#define ALE_MCAST_BLOCK_LEARN_FWD   1

Definition at line 71 of file cpsw_ale.h.

#define ALE_MCAST_FWD   0

Definition at line 70 of file cpsw_ale.h.

#define ALE_MCAST_FWD_2   3

Definition at line 73 of file cpsw_ale.h.

#define ALE_MCAST_FWD_LEARN   2

Definition at line 72 of file cpsw_ale.h.

#define ALE_SECURE   1

Definition at line 67 of file cpsw_ale.h.

Enumeration Type Documentation

Enumerator:
ALE_ENABLE 
ALE_CLEAR 
ALE_AGEOUT 
ALE_VLAN_NOLEARN 
ALE_NO_PORT_VLAN 
ALE_OUI_DENY 
ALE_BYPASS 
ALE_RATE_LIMIT_TX 
ALE_VLAN_AWARE 
ALE_AUTH_ENABLE 
ALE_RATE_LIMIT 
ALE_PORT_STATE 
ALE_PORT_DROP_UNTAGGED 
ALE_PORT_DROP_UNKNOWN_VLAN 
ALE_PORT_NOLEARN 
ALE_PORT_UNKNOWN_VLAN_MEMBER 
ALE_PORT_UNKNOWN_MCAST_FLOOD 
ALE_PORT_UNKNOWN_REG_MCAST_FLOOD 
ALE_PORT_UNTAGGED_EGRESS 
ALE_PORT_BCAST_LIMIT 
ALE_PORT_MCAST_LIMIT 
ALE_NUM_CONTROLS 

Definition at line 32 of file cpsw_ale.h.

Enumerator:
ALE_PORT_STATE_DISABLE 
ALE_PORT_STATE_BLOCK 
ALE_PORT_STATE_LEARN 
ALE_PORT_STATE_FORWARD 

Definition at line 59 of file cpsw_ale.h.

Function Documentation

int cpsw_ale_add_mcast ( struct cpsw_ale ale,
u8 addr,
int  port_mask,
int  super,
int  mcast_state 
)

Definition at line 290 of file cpsw_ale.c.

int cpsw_ale_add_ucast ( struct cpsw_ale ale,
u8 addr,
int  port,
int  flags 
)

Definition at line 252 of file cpsw_ale.c.

int cpsw_ale_control_get ( struct cpsw_ale ale,
int  port,
int  control 
)

Definition at line 549 of file cpsw_ale.c.

int cpsw_ale_control_set ( struct cpsw_ale ale,
int  port,
int  control,
int  value 
)

Definition at line 518 of file cpsw_ale.c.

struct cpsw_ale* cpsw_ale_create ( struct cpsw_ale_params params)
read

Definition at line 619 of file cpsw_ale.c.

int cpsw_ale_del_mcast ( struct cpsw_ale ale,
u8 addr,
int  port_mask 
)

Definition at line 320 of file cpsw_ale.c.

int cpsw_ale_del_ucast ( struct cpsw_ale ale,
u8 addr,
int  port 
)

Definition at line 276 of file cpsw_ale.c.

int cpsw_ale_destroy ( struct cpsw_ale ale)

Definition at line 633 of file cpsw_ale.c.

int cpsw_ale_flush ( struct cpsw_ale ale,
int  port_mask 
)

Definition at line 231 of file cpsw_ale.c.

int cpsw_ale_set_ageout ( struct cpsw_ale ale,
int  ageout 
)

Definition at line 584 of file cpsw_ale.c.

void cpsw_ale_start ( struct cpsw_ale ale)

Definition at line 595 of file cpsw_ale.c.

void cpsw_ale_stop ( struct cpsw_ale ale)

Definition at line 614 of file cpsw_ale.c.