diff options
author | Shmulik Ravid <shmulikr@broadcom.com> | 2011-02-27 05:04:31 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-03 05:58:54 (GMT) |
commit | eed84713bc47ce2f7d675914f297ad9b6227a587 (patch) | |
tree | 27da816e2d37163409639639c37171bb4c53945c /include/net/dcbnl.h | |
parent | 23b41168fc942a4a041325a04ecc1bd17d031a3e (diff) | |
download | linux-eed84713bc47ce2f7d675914f297ad9b6227a587.tar.xz |
dcbnl: add support for retrieving peer configuration - ieee
These 2 patches add the support for retrieving the remote or peer DCBX
configuration via dcbnl for embedded DCBX stacks. The peer configuration
is part of the DCBX MIB and is useful for debugging and diagnostics of
the overall DCB configuration. The first patch add this support for IEEE
802.1Qaz standard the second patch add the same support for the older
CEE standard. Diff for v2 - the peer-app-info is CEE specific.
Signed-off-by: Shmulik Ravid <shmulikr@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/dcbnl.h')
-rw-r--r-- | include/net/dcbnl.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/dcbnl.h b/include/net/dcbnl.h index a8e7852..7b7180e 100644 --- a/include/net/dcbnl.h +++ b/include/net/dcbnl.h @@ -43,6 +43,8 @@ struct dcbnl_rtnl_ops { 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 *); + int (*ieee_peer_getets) (struct net_device *, struct ieee_ets *); + int (*ieee_peer_getpfc) (struct net_device *, struct ieee_pfc *); /* CEE std */ u8 (*getstate)(struct net_device *); @@ -77,6 +79,10 @@ struct dcbnl_rtnl_ops { u8 (*getdcbx)(struct net_device *); u8 (*setdcbx)(struct net_device *, u8); + /* peer apps */ + int (*peer_getappinfo)(struct net_device *, struct dcb_peer_app_info *, + u16 *); + int (*peer_getapptable)(struct net_device *, struct dcb_app *); }; |