Skip to content

Commit b225ee5

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: net: Remove CONFIG_KMOD from net/ (towards removing CONFIG_KMOD entirely) ipv4: Add a missing rcu_assign_pointer() in routing cache. [netdrvr] ibmtr: PCMCIA IBMTR is ok on 64bit xen-netfront: Avoid unaligned accesses to IP header lmc: copy_*_user under spinlock [netdrvr] myri10ge, ixgbe: remove broken select INTEL_IOATDMA
2 parents 2e532d6 + 95a5afc commit b225ee5

File tree

28 files changed

+96
-89
lines changed

28 files changed

+96
-89
lines changed

drivers/net/Kconfig

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2410,7 +2410,6 @@ config IXGBE
24102410
tristate "Intel(R) 10GbE PCI Express adapters support"
24112411
depends on PCI && INET
24122412
select INET_LRO
2413-
select INTEL_IOATDMA
24142413
---help---
24152414
This driver supports Intel(R) 10GbE PCI Express family of
24162415
adapters. For more information on how to identify your adapter, go
@@ -2426,6 +2425,11 @@ config IXGBE
24262425
To compile this driver as a module, choose M here. The module
24272426
will be called ixgbe.
24282427

2428+
config IXGBE_DCA
2429+
bool
2430+
default y
2431+
depends on IXGBE && DCA && !(IXGBE=y && DCA=m)
2432+
24292433
config IXGB
24302434
tristate "Intel(R) PRO/10GbE support"
24312435
depends on PCI
@@ -2462,7 +2466,6 @@ config MYRI10GE
24622466
select FW_LOADER
24632467
select CRC32
24642468
select INET_LRO
2465-
select INTEL_IOATDMA
24662469
---help---
24672470
This driver supports Myricom Myri-10G Dual Protocol interface in
24682471
Ethernet mode. If the eeprom on your board is not recent enough,
@@ -2474,6 +2477,11 @@ config MYRI10GE
24742477
To compile this driver as a module, choose M here. The module
24752478
will be called myri10ge.
24762479

2480+
config MYRI10GE_DCA
2481+
bool
2482+
default y
2483+
depends on MYRI10GE && DCA && !(MYRI10GE=y && DCA=m)
2484+
24772485
config NETXEN_NIC
24782486
tristate "NetXen Multi port (1/10) Gigabit Ethernet NIC"
24792487
depends on PCI

drivers/net/ixgbe/ixgbe.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#include "ixgbe_type.h"
3737
#include "ixgbe_common.h"
3838

39-
#if defined(CONFIG_DCA) || defined(CONFIG_DCA_MODULE)
39+
#ifdef CONFIG_IXGBE_DCA
4040
#include <linux/dca.h>
4141
#endif
4242

@@ -136,7 +136,7 @@ struct ixgbe_ring {
136136
* offset associated with this ring, which is different
137137
* for DCE and RSS modes */
138138

139-
#if defined(CONFIG_DCA) || defined(CONFIG_DCA_MODULE)
139+
#ifdef CONFIG_IXGBE_DCA
140140
/* cpu for tx queue */
141141
int cpu;
142142
#endif

drivers/net/ixgbe/ixgbe_main.c

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static struct pci_device_id ixgbe_pci_tbl[] = {
8080
};
8181
MODULE_DEVICE_TABLE(pci, ixgbe_pci_tbl);
8282

83-
#if defined(CONFIG_DCA) || defined(CONFIG_DCA_MODULE)
83+
#ifdef CONFIG_IXGBE_DCA
8484
static int ixgbe_notify_dca(struct notifier_block *, unsigned long event,
8585
void *p);
8686
static struct notifier_block dca_notifier = {
@@ -296,7 +296,7 @@ static bool ixgbe_clean_tx_irq(struct ixgbe_adapter *adapter,
296296
return (total_packets ? true : false);
297297
}
298298

299-
#if defined(CONFIG_DCA) || defined(CONFIG_DCA_MODULE)
299+
#ifdef CONFIG_IXGBE_DCA
300300
static void ixgbe_update_rx_dca(struct ixgbe_adapter *adapter,
301301
struct ixgbe_ring *rx_ring)
302302
{
@@ -383,7 +383,7 @@ static int __ixgbe_notify_dca(struct device *dev, void *data)
383383
return 0;
384384
}
385385

386-
#endif /* CONFIG_DCA or CONFIG_DCA_MODULE */
386+
#endif /* CONFIG_IXGBE_DCA */
387387
/**
388388
* ixgbe_receive_skb - Send a completed packet up the stack
389389
* @adapter: board private structure
@@ -947,7 +947,7 @@ static irqreturn_t ixgbe_msix_clean_tx(int irq, void *data)
947947
r_idx = find_first_bit(q_vector->txr_idx, adapter->num_tx_queues);
948948
for (i = 0; i < q_vector->txr_count; i++) {
949949
tx_ring = &(adapter->tx_ring[r_idx]);
950-
#if defined(CONFIG_DCA) || defined(CONFIG_DCA_MODULE)
950+
#ifdef CONFIG_IXGBE_DCA
951951
if (adapter->flags & IXGBE_FLAG_DCA_ENABLED)
952952
ixgbe_update_tx_dca(adapter, tx_ring);
953953
#endif
@@ -1022,7 +1022,7 @@ static int ixgbe_clean_rxonly(struct napi_struct *napi, int budget)
10221022

10231023
r_idx = find_first_bit(q_vector->rxr_idx, adapter->num_rx_queues);
10241024
rx_ring = &(adapter->rx_ring[r_idx]);
1025-
#if defined(CONFIG_DCA) || defined(CONFIG_DCA_MODULE)
1025+
#ifdef CONFIG_IXGBE_DCA
10261026
if (adapter->flags & IXGBE_FLAG_DCA_ENABLED)
10271027
ixgbe_update_rx_dca(adapter, rx_ring);
10281028
#endif
@@ -1066,7 +1066,7 @@ static int ixgbe_clean_rxonly_many(struct napi_struct *napi, int budget)
10661066
r_idx = find_first_bit(q_vector->rxr_idx, adapter->num_rx_queues);
10671067
for (i = 0; i < q_vector->rxr_count; i++) {
10681068
rx_ring = &(adapter->rx_ring[r_idx]);
1069-
#if defined(CONFIG_DCA) || defined(CONFIG_DCA_MODULE)
1069+
#ifdef CONFIG_IXGBE_DCA
10701070
if (adapter->flags & IXGBE_FLAG_DCA_ENABLED)
10711071
ixgbe_update_rx_dca(adapter, rx_ring);
10721072
#endif
@@ -2155,7 +2155,7 @@ void ixgbe_down(struct ixgbe_adapter *adapter)
21552155

21562156
netif_carrier_off(netdev);
21572157

2158-
#if defined(CONFIG_DCA) || defined(CONFIG_DCA_MODULE)
2158+
#ifdef CONFIG_IXGBE_DCA
21592159
if (adapter->flags & IXGBE_FLAG_DCA_ENABLED) {
21602160
adapter->flags &= ~IXGBE_FLAG_DCA_ENABLED;
21612161
dca_remove_requester(&adapter->pdev->dev);
@@ -2167,7 +2167,7 @@ void ixgbe_down(struct ixgbe_adapter *adapter)
21672167
ixgbe_clean_all_tx_rings(adapter);
21682168
ixgbe_clean_all_rx_rings(adapter);
21692169

2170-
#if defined(CONFIG_DCA) || defined(CONFIG_DCA_MODULE)
2170+
#ifdef CONFIG_IXGBE_DCA
21712171
/* since we reset the hardware DCA settings were cleared */
21722172
if (dca_add_requester(&adapter->pdev->dev) == 0) {
21732173
adapter->flags |= IXGBE_FLAG_DCA_ENABLED;
@@ -2193,7 +2193,7 @@ static int ixgbe_poll(struct napi_struct *napi, int budget)
21932193
struct ixgbe_adapter *adapter = q_vector->adapter;
21942194
int tx_cleaned, work_done = 0;
21952195

2196-
#if defined(CONFIG_DCA) || defined(CONFIG_DCA_MODULE)
2196+
#ifdef CONFIG_IXGBE_DCA
21972197
if (adapter->flags & IXGBE_FLAG_DCA_ENABLED) {
21982198
ixgbe_update_tx_dca(adapter, adapter->tx_ring);
21992199
ixgbe_update_rx_dca(adapter, adapter->rx_ring);
@@ -3922,7 +3922,7 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev,
39223922
if (err)
39233923
goto err_register;
39243924

3925-
#if defined(CONFIG_DCA) || defined(CONFIG_DCA_MODULE)
3925+
#ifdef CONFIG_IXGBE_DCA
39263926
if (dca_add_requester(&pdev->dev) == 0) {
39273927
adapter->flags |= IXGBE_FLAG_DCA_ENABLED;
39283928
/* always use CB2 mode, difference is masked
@@ -3972,7 +3972,7 @@ static void __devexit ixgbe_remove(struct pci_dev *pdev)
39723972

39733973
flush_scheduled_work();
39743974

3975-
#if defined(CONFIG_DCA) || defined(CONFIG_DCA_MODULE)
3975+
#ifdef CONFIG_IXGBE_DCA
39763976
if (adapter->flags & IXGBE_FLAG_DCA_ENABLED) {
39773977
adapter->flags &= ~IXGBE_FLAG_DCA_ENABLED;
39783978
dca_remove_requester(&pdev->dev);
@@ -4105,10 +4105,10 @@ static int __init ixgbe_init_module(void)
41054105

41064106
printk(KERN_INFO "%s: %s\n", ixgbe_driver_name, ixgbe_copyright);
41074107

4108-
#if defined(CONFIG_DCA) || defined(CONFIG_DCA_MODULE)
4108+
#ifdef CONFIG_IXGBE_DCA
41094109
dca_register_notify(&dca_notifier);
4110-
41114110
#endif
4111+
41124112
ret = pci_register_driver(&ixgbe_driver);
41134113
return ret;
41144114
}
@@ -4123,13 +4123,13 @@ module_init(ixgbe_init_module);
41234123
**/
41244124
static void __exit ixgbe_exit_module(void)
41254125
{
4126-
#if defined(CONFIG_DCA) || defined(CONFIG_DCA_MODULE)
4126+
#ifdef CONFIG_IXGBE_DCA
41274127
dca_unregister_notify(&dca_notifier);
41284128
#endif
41294129
pci_unregister_driver(&ixgbe_driver);
41304130
}
41314131

4132-
#if defined(CONFIG_DCA) || defined(CONFIG_DCA_MODULE)
4132+
#ifdef CONFIG_IXGBE_DCA
41334133
static int ixgbe_notify_dca(struct notifier_block *nb, unsigned long event,
41344134
void *p)
41354135
{
@@ -4140,7 +4140,7 @@ static int ixgbe_notify_dca(struct notifier_block *nb, unsigned long event,
41404140

41414141
return ret_val ? NOTIFY_BAD : NOTIFY_DONE;
41424142
}
4143-
#endif /* CONFIG_DCA or CONFIG_DCA_MODULE */
4143+
#endif /* CONFIG_IXGBE_DCA */
41444144

41454145
module_exit(ixgbe_exit_module);
41464146

drivers/net/myri10ge/myri10ge.c

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ struct myri10ge_slice_state {
188188
dma_addr_t fw_stats_bus;
189189
int watchdog_tx_done;
190190
int watchdog_tx_req;
191-
#if (defined CONFIG_DCA) || (defined CONFIG_DCA_MODULE)
191+
#ifdef CONFIG_MYRI10GE_DCA
192192
int cached_dca_tag;
193193
int cpu;
194194
__be32 __iomem *dca_tag;
@@ -220,7 +220,7 @@ struct myri10ge_priv {
220220
int msi_enabled;
221221
int msix_enabled;
222222
struct msix_entry *msix_vectors;
223-
#if (defined CONFIG_DCA) || (defined CONFIG_DCA_MODULE)
223+
#ifdef CONFIG_MYRI10GE_DCA
224224
int dca_enabled;
225225
#endif
226226
u32 link_state;
@@ -902,7 +902,7 @@ static int myri10ge_reset(struct myri10ge_priv *mgp)
902902
struct myri10ge_slice_state *ss;
903903
int i, status;
904904
size_t bytes;
905-
#if (defined CONFIG_DCA) || (defined CONFIG_DCA_MODULE)
905+
#ifdef CONFIG_MYRI10GE_DCA
906906
unsigned long dca_tag_off;
907907
#endif
908908

@@ -1012,7 +1012,7 @@ static int myri10ge_reset(struct myri10ge_priv *mgp)
10121012
}
10131013
put_be32(htonl(mgp->intr_coal_delay), mgp->intr_coal_delay_ptr);
10141014

1015-
#if (defined CONFIG_DCA) || (defined CONFIG_DCA_MODULE)
1015+
#ifdef CONFIG_MYRI10GE_DCA
10161016
status = myri10ge_send_cmd(mgp, MXGEFW_CMD_GET_DCA_OFFSET, &cmd, 0);
10171017
dca_tag_off = cmd.data0;
10181018
for (i = 0; i < mgp->num_slices; i++) {
@@ -1051,7 +1051,7 @@ static int myri10ge_reset(struct myri10ge_priv *mgp)
10511051
return status;
10521052
}
10531053

1054-
#if (defined CONFIG_DCA) || (defined CONFIG_DCA_MODULE)
1054+
#ifdef CONFIG_MYRI10GE_DCA
10551055
static void
10561056
myri10ge_write_dca(struct myri10ge_slice_state *ss, int cpu, int tag)
10571057
{
@@ -1505,7 +1505,7 @@ static int myri10ge_poll(struct napi_struct *napi, int budget)
15051505
struct net_device *netdev = ss->mgp->dev;
15061506
int work_done;
15071507

1508-
#if (defined CONFIG_DCA) || (defined CONFIG_DCA_MODULE)
1508+
#ifdef CONFIG_MYRI10GE_DCA
15091509
if (ss->mgp->dca_enabled)
15101510
myri10ge_update_dca(ss);
15111511
#endif
@@ -1736,7 +1736,7 @@ static const char myri10ge_gstrings_main_stats[][ETH_GSTRING_LEN] = {
17361736
"tx_boundary", "WC", "irq", "MSI", "MSIX",
17371737
"read_dma_bw_MBs", "write_dma_bw_MBs", "read_write_dma_bw_MBs",
17381738
"serial_number", "watchdog_resets",
1739-
#if (defined CONFIG_DCA) || (defined CONFIG_DCA_MODULE)
1739+
#ifdef CONFIG_MYRI10GE_DCA
17401740
"dca_capable_firmware", "dca_device_present",
17411741
#endif
17421742
"link_changes", "link_up", "dropped_link_overflow",
@@ -1815,7 +1815,7 @@ myri10ge_get_ethtool_stats(struct net_device *netdev,
18151815
data[i++] = (unsigned int)mgp->read_write_dma;
18161816
data[i++] = (unsigned int)mgp->serial_number;
18171817
data[i++] = (unsigned int)mgp->watchdog_resets;
1818-
#if (defined CONFIG_DCA) || (defined CONFIG_DCA_MODULE)
1818+
#ifdef CONFIG_MYRI10GE_DCA
18191819
data[i++] = (unsigned int)(mgp->ss[0].dca_tag != NULL);
18201820
data[i++] = (unsigned int)(mgp->dca_enabled);
18211821
#endif
@@ -3844,7 +3844,7 @@ static int myri10ge_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
38443844
dev_err(&pdev->dev, "failed reset\n");
38453845
goto abort_with_slices;
38463846
}
3847-
#if (defined CONFIG_DCA) || (defined CONFIG_DCA_MODULE)
3847+
#ifdef CONFIG_MYRI10GE_DCA
38483848
myri10ge_setup_dca(mgp);
38493849
#endif
38503850
pci_set_drvdata(pdev, mgp);
@@ -3948,7 +3948,7 @@ static void myri10ge_remove(struct pci_dev *pdev)
39483948
netdev = mgp->dev;
39493949
unregister_netdev(netdev);
39503950

3951-
#if (defined CONFIG_DCA) || (defined CONFIG_DCA_MODULE)
3951+
#ifdef CONFIG_MYRI10GE_DCA
39523952
myri10ge_teardown_dca(mgp);
39533953
#endif
39543954
myri10ge_dummy_rdma(mgp, 0);
@@ -3993,7 +3993,7 @@ static struct pci_driver myri10ge_driver = {
39933993
#endif
39943994
};
39953995

3996-
#if (defined CONFIG_DCA) || (defined CONFIG_DCA_MODULE)
3996+
#ifdef CONFIG_MYRI10GE_DCA
39973997
static int
39983998
myri10ge_notify_dca(struct notifier_block *nb, unsigned long event, void *p)
39993999
{
@@ -4024,7 +4024,7 @@ static __init int myri10ge_init_module(void)
40244024
myri10ge_driver.name, myri10ge_rss_hash);
40254025
myri10ge_rss_hash = MXGEFW_RSS_HASH_TYPE_SRC_PORT;
40264026
}
4027-
#if (defined CONFIG_DCA) || (defined CONFIG_DCA_MODULE)
4027+
#ifdef CONFIG_MYRI10GE_DCA
40284028
dca_register_notify(&myri10ge_dca_notifier);
40294029
#endif
40304030
if (myri10ge_max_slices > MYRI10GE_MAX_SLICES)
@@ -4037,7 +4037,7 @@ module_init(myri10ge_init_module);
40374037

40384038
static __exit void myri10ge_cleanup_module(void)
40394039
{
4040-
#if (defined CONFIG_DCA) || (defined CONFIG_DCA_MODULE)
4040+
#ifdef CONFIG_MYRI10GE_DCA
40414041
dca_unregister_notify(&myri10ge_dca_notifier);
40424042
#endif
40434043
pci_unregister_driver(&myri10ge_driver);

drivers/net/pcmcia/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ config ARCNET_COM20020_CS
111111

112112
config PCMCIA_IBMTR
113113
tristate "IBM PCMCIA tokenring adapter support"
114-
depends on IBMTR!=y && TR && !64BIT
114+
depends on IBMTR!=y && TR
115115
help
116116
Say Y here if you intend to attach this type of Token Ring PCMCIA
117117
card to your computer. You then also need to say Y to "Token Ring

0 commit comments

Comments
 (0)