mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-28 12:25:31 +00:00
3e29027af4
The IEEE8021Qaz is the IEEE standard version of CEE. The standard has had enough significant changes from the CEE version that many of the CEE attributes have no meaning in the new spec or do not easily map to IEEE standards. Rather then attempt to create a complicated mapping between CEE and IEEE standards this patch adds a nested IEEE attribute to the list of DCB attributes. The policy is, [DCB_ATTR_IFNAME] [DCB_ATTR_STATE] ... [DCB_ATTR_IEEE] [DCB_ATTR_IEEE_ETS] [DCB_ATTR_IEEE_PFC] [DCB_ATTR_IEEE_APP_TABLE] [DCB_ATTR_IEEE_APP] ... The following dcbnl_rtnl_ops routines were added to handle the IEEE standard, int (*ieee_getets) (struct net_device *, struct ieee_ets *); int (*ieee_setets) (struct net_device *, struct ieee_ets *); int (*ieee_getpfc) (struct net_device *, struct ieee_pfc *); int (*ieee_setpfc) (struct net_device *, struct ieee_pfc *); int (*ieee_getapp) (struct net_device *, struct dcb_app *); int (*ieee_setapp) (struct net_device *, struct dcb_app *); Signed-off-by: John Fastabend <john.r.fastabend@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
67 lines
2.7 KiB
C
67 lines
2.7 KiB
C
/*
|
|
* Copyright (c) 2008, Intel Corporation.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms and conditions of the GNU General Public License,
|
|
* version 2, as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
* more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along with
|
|
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
|
* Place - Suite 330, Boston, MA 02111-1307 USA.
|
|
*
|
|
* Author: Lucy Liu <lucy.liu@intel.com>
|
|
*/
|
|
|
|
#ifndef __NET_DCBNL_H__
|
|
#define __NET_DCBNL_H__
|
|
|
|
#include <linux/dcbnl.h>
|
|
|
|
/*
|
|
* Ops struct for the netlink callbacks. Used by DCB-enabled drivers through
|
|
* the netdevice struct.
|
|
*/
|
|
struct dcbnl_rtnl_ops {
|
|
/* IEEE 802.1Qaz std */
|
|
int (*ieee_getets) (struct net_device *, struct ieee_ets *);
|
|
int (*ieee_setets) (struct net_device *, struct ieee_ets *);
|
|
int (*ieee_getpfc) (struct net_device *, struct ieee_pfc *);
|
|
int (*ieee_setpfc) (struct net_device *, struct ieee_pfc *);
|
|
int (*ieee_getapp) (struct net_device *, struct dcb_app *);
|
|
int (*ieee_setapp) (struct net_device *, struct dcb_app *);
|
|
|
|
/* CEE std */
|
|
u8 (*getstate)(struct net_device *);
|
|
u8 (*setstate)(struct net_device *, u8);
|
|
void (*getpermhwaddr)(struct net_device *, u8 *);
|
|
void (*setpgtccfgtx)(struct net_device *, int, u8, u8, u8, u8);
|
|
void (*setpgbwgcfgtx)(struct net_device *, int, u8);
|
|
void (*setpgtccfgrx)(struct net_device *, int, u8, u8, u8, u8);
|
|
void (*setpgbwgcfgrx)(struct net_device *, int, u8);
|
|
void (*getpgtccfgtx)(struct net_device *, int, u8 *, u8 *, u8 *, u8 *);
|
|
void (*getpgbwgcfgtx)(struct net_device *, int, u8 *);
|
|
void (*getpgtccfgrx)(struct net_device *, int, u8 *, u8 *, u8 *, u8 *);
|
|
void (*getpgbwgcfgrx)(struct net_device *, int, u8 *);
|
|
void (*setpfccfg)(struct net_device *, int, u8);
|
|
void (*getpfccfg)(struct net_device *, int, u8 *);
|
|
u8 (*setall)(struct net_device *);
|
|
u8 (*getcap)(struct net_device *, int, u8 *);
|
|
u8 (*getnumtcs)(struct net_device *, int, u8 *);
|
|
u8 (*setnumtcs)(struct net_device *, int, u8);
|
|
u8 (*getpfcstate)(struct net_device *);
|
|
void (*setpfcstate)(struct net_device *, u8);
|
|
void (*getbcncfg)(struct net_device *, int, u32 *);
|
|
void (*setbcncfg)(struct net_device *, int, u32);
|
|
void (*getbcnrp)(struct net_device *, int, u8 *);
|
|
void (*setbcnrp)(struct net_device *, int, u8);
|
|
u8 (*setapp)(struct net_device *, u8, u16, u8);
|
|
u8 (*getapp)(struct net_device *, u8, u16);
|
|
};
|
|
|
|
#endif /* __NET_DCBNL_H__ */
|