]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
dcbnl: Add support for setapp/getapp to netdev dcbnl_rtnl_ops
authorYi Zou <yi.zou@intel.com>
Mon, 31 Aug 2009 12:32:55 +0000 (12:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Sep 2009 08:24:30 +0000 (01:24 -0700)
Adds support of dcbnl setapp/getapp to dcbnl_rtnl_ops in netdev to allow
LLDs to implement their corresponding dcbnl setapp/getapp ops to support
the IEEE 802.1Q DCBX setapp/getapp commands.

Signed-off-by: Yi Zou <yi.zou@intel.com>
Acked-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dcbnl.h

index 775cfc8055bed122d9e54f30b83c186cccf3a185..b36ac7e0914d2f3ac1fdabf7ae85987af610fed7 100644 (file)
@@ -48,6 +48,8 @@ struct dcbnl_rtnl_ops {
        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__ */