Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
dcbnl.h File Reference
#include <linux/dcbnl.h>

Go to the source code of this file.

Data Structures

struct  dcb_app_type
 
struct  dcbnl_rtnl_ops
 

Functions

int dcb_setapp (struct net_device *, struct dcb_app *)
 
u8 dcb_getapp (struct net_device *, struct dcb_app *)
 
int dcb_ieee_setapp (struct net_device *, struct dcb_app *)
 
int dcb_ieee_delapp (struct net_device *, struct dcb_app *)
 
u8 dcb_ieee_getapp_mask (struct net_device *, struct dcb_app *)
 
int dcbnl_ieee_notify (struct net_device *dev, int event, int cmd, u32 seq, u32 pid)
 
int dcbnl_cee_notify (struct net_device *dev, int event, int cmd, u32 seq, u32 pid)
 

Function Documentation

u8 dcb_getapp ( struct net_device dev,
struct dcb_app app 
)

dcb_getapp - retrieve the DCBX application user priority

On success returns a non-zero 802.1p user priority bitmap otherwise returns 0 as the invalid user priority bitmap to indicate an error.

Definition at line 1752 of file dcbnl.c.

int dcb_ieee_delapp ( struct net_device dev,
struct dcb_app del 
)

dcb_ieee_delapp - delete IEEE dcb application data from list

This removes a matching APP data from the APP list

Definition at line 1865 of file dcbnl.c.

u8 dcb_ieee_getapp_mask ( struct net_device dev,
struct dcb_app app 
)

dcb_ieee_getapp_mask - retrieve the IEEE DCB application priority

Helper routine which on success returns a non-zero 802.1Qaz user priority bitmap otherwise returns 0 to indicate the dcb_app was not found in APP list.

Definition at line 1813 of file dcbnl.c.

int dcb_ieee_setapp ( struct net_device dev,
struct dcb_app new 
)

dcb_ieee_setapp - add IEEE dcb application data to app list

This adds Application data to the list. Multiple application entries may exists for the same selector and protocol as long as the priorities are different.

Definition at line 1834 of file dcbnl.c.

int dcb_setapp ( struct net_device dev,
struct dcb_app new 
)

dcb_setapp - add CEE dcb application data to app list

Priority 0 is an invalid priority in CEE spec. This routine removes applications from the app list if the priority is set to zero.

Definition at line 1773 of file dcbnl.c.

int dcbnl_cee_notify ( struct net_device dev,
int  event,
int  cmd,
u32  seq,
u32  pid 
)

Definition at line 1362 of file dcbnl.c.

int dcbnl_ieee_notify ( struct net_device dev,
int  event,
int  cmd,
u32  seq,
u32  pid 
)

Definition at line 1355 of file dcbnl.c.