aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe
diff options
context:
space:
mode:
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>2008-11-25 04:02:08 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-25 04:02:08 -0500
commit7a6b6f515f77d1c62a2f383b6dce18cb0af0cf4f (patch)
treeeed74f9344c3f65beb5386b93eca05526be8a914 /drivers/net/ixgbe
parent411c41eea58bd3500cf897e2c27dd5330935a3a8 (diff)
DCB: fix kconfig option
Since the netlink option for DCB is necessary to actually be useful, simplified the Kconfig option. In addition, added useful help text for the Kconfig option. Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ixgbe')
-rw-r--r--drivers/net/ixgbe/Makefile2
-rw-r--r--drivers/net/ixgbe/ixgbe.h2
-rw-r--r--drivers/net/ixgbe/ixgbe_main.c10
3 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/ixgbe/Makefile b/drivers/net/ixgbe/Makefile
index 3228e508e628..6e7ef765bcd8 100644
--- a/drivers/net/ixgbe/Makefile
+++ b/drivers/net/ixgbe/Makefile
@@ -35,4 +35,4 @@ obj-$(CONFIG_IXGBE) += ixgbe.o
35ixgbe-objs := ixgbe_main.o ixgbe_common.o ixgbe_ethtool.o \ 35ixgbe-objs := ixgbe_main.o ixgbe_common.o ixgbe_ethtool.o \
36 ixgbe_82598.o ixgbe_phy.o 36 ixgbe_82598.o ixgbe_phy.o
37 37
38ixgbe-$(CONFIG_IXGBE_DCBNL) += ixgbe_dcb.o ixgbe_dcb_82598.o ixgbe_dcb_nl.o 38ixgbe-$(CONFIG_IXGBE_DCB) += ixgbe_dcb.o ixgbe_dcb_82598.o ixgbe_dcb_nl.o
diff --git a/drivers/net/ixgbe/ixgbe.h b/drivers/net/ixgbe/ixgbe.h
index 9509aee2d361..6cbf26e3db80 100644
--- a/drivers/net/ixgbe/ixgbe.h
+++ b/drivers/net/ixgbe/ixgbe.h
@@ -327,7 +327,7 @@ enum ixgbe_boards {
327}; 327};
328 328
329extern struct ixgbe_info ixgbe_82598_info; 329extern struct ixgbe_info ixgbe_82598_info;
330#ifdef CONFIG_IXGBE_DCBNL 330#ifdef CONFIG_IXGBE_DCB
331extern struct dcbnl_rtnl_ops dcbnl_ops; 331extern struct dcbnl_rtnl_ops dcbnl_ops;
332extern int ixgbe_copy_dcb_cfg(struct ixgbe_dcb_config *src_dcb_cfg, 332extern int ixgbe_copy_dcb_cfg(struct ixgbe_dcb_config *src_dcb_cfg,
333 struct ixgbe_dcb_config *dst_dcb_cfg, 333 struct ixgbe_dcb_config *dst_dcb_cfg,
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
index 6620397a1fb4..667a6463193d 100644
--- a/drivers/net/ixgbe/ixgbe_main.c
+++ b/drivers/net/ixgbe/ixgbe_main.c
@@ -1914,7 +1914,7 @@ static void ixgbe_napi_disable_all(struct ixgbe_adapter *adapter)
1914 } 1914 }
1915} 1915}
1916 1916
1917#ifdef CONFIG_IXGBE_DCBNL 1917#ifdef CONFIG_IXGBE_DCB
1918/* 1918/*
1919 * ixgbe_configure_dcb - Configure DCB hardware 1919 * ixgbe_configure_dcb - Configure DCB hardware
1920 * @adapter: ixgbe adapter struct 1920 * @adapter: ixgbe adapter struct
@@ -1960,7 +1960,7 @@ static void ixgbe_configure(struct ixgbe_adapter *adapter)
1960 ixgbe_set_rx_mode(netdev); 1960 ixgbe_set_rx_mode(netdev);
1961 1961
1962 ixgbe_restore_vlan(adapter); 1962 ixgbe_restore_vlan(adapter);
1963#ifdef CONFIG_IXGBE_DCBNL 1963#ifdef CONFIG_IXGBE_DCB
1964 if (adapter->flags & IXGBE_FLAG_DCB_ENABLED) { 1964 if (adapter->flags & IXGBE_FLAG_DCB_ENABLED) {
1965 netif_set_gso_max_size(netdev, 32768); 1965 netif_set_gso_max_size(netdev, 32768);
1966 ixgbe_configure_dcb(adapter); 1966 ixgbe_configure_dcb(adapter);
@@ -2749,7 +2749,7 @@ static int __devinit ixgbe_sw_init(struct ixgbe_adapter *adapter)
2749 struct ixgbe_hw *hw = &adapter->hw; 2749 struct ixgbe_hw *hw = &adapter->hw;
2750 struct pci_dev *pdev = adapter->pdev; 2750 struct pci_dev *pdev = adapter->pdev;
2751 unsigned int rss; 2751 unsigned int rss;
2752#ifdef CONFIG_IXGBE_DCBNL 2752#ifdef CONFIG_IXGBE_DCB
2753 int j; 2753 int j;
2754 struct tc_configuration *tc; 2754 struct tc_configuration *tc;
2755#endif 2755#endif
@@ -2768,7 +2768,7 @@ static int __devinit ixgbe_sw_init(struct ixgbe_adapter *adapter)
2768 adapter->flags |= IXGBE_FLAG_RSS_ENABLED; 2768 adapter->flags |= IXGBE_FLAG_RSS_ENABLED;
2769 adapter->ring_feature[RING_F_DCB].indices = IXGBE_MAX_DCB_INDICES; 2769 adapter->ring_feature[RING_F_DCB].indices = IXGBE_MAX_DCB_INDICES;
2770 2770
2771#ifdef CONFIG_IXGBE_DCBNL 2771#ifdef CONFIG_IXGBE_DCB
2772 /* Configure DCB traffic classes */ 2772 /* Configure DCB traffic classes */
2773 for (j = 0; j < MAX_TRAFFIC_CLASS; j++) { 2773 for (j = 0; j < MAX_TRAFFIC_CLASS; j++) {
2774 tc = &adapter->dcb_cfg.tc_config[j]; 2774 tc = &adapter->dcb_cfg.tc_config[j];
@@ -4120,7 +4120,7 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev,
4120 if (adapter->flags & IXGBE_FLAG_DCB_ENABLED) 4120 if (adapter->flags & IXGBE_FLAG_DCB_ENABLED)
4121 adapter->flags &= ~IXGBE_FLAG_RSS_ENABLED; 4121 adapter->flags &= ~IXGBE_FLAG_RSS_ENABLED;
4122 4122
4123#ifdef CONFIG_IXGBE_DCBNL 4123#ifdef CONFIG_IXGBE_DCB
4124 netdev->dcbnl_ops = &dcbnl_ops; 4124 netdev->dcbnl_ops = &dcbnl_ops;
4125#endif 4125#endif
4126 4126