diff options
author | David S. Miller <davem@davemloft.net> | 2008-12-06 01:54:40 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-06 01:54:40 -0500 |
commit | 730c30ec646bd252a9448a66ecd51d794853513f (patch) | |
tree | c0d413860f9d8bf37374f17cfabb4911143465d7 | |
parent | 726e07a8a38168266ac95d87736f9501a2d9e7b2 (diff) | |
parent | 0a0755c9fe47dc9f8271935909c66096e43efbfe (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
drivers/net/wireless/iwlwifi/iwl-core.c
drivers/net/wireless/iwlwifi/iwl-sta.c
-rw-r--r-- | drivers/isdn/hardware/avm/b1isa.c | 6 | ||||
-rw-r--r-- | drivers/isdn/hysdn/hysdn_net.c | 4 | ||||
-rw-r--r-- | drivers/net/bnx2.c | 35 | ||||
-rw-r--r-- | drivers/net/bnx2.h | 6 | ||||
-rw-r--r-- | drivers/net/enc28j60.c | 16 | ||||
-rw-r--r-- | drivers/net/netx-eth.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ipw2x00/ipw2200.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-sta.c | 26 | ||||
-rw-r--r-- | drivers/net/wireless/zd1211rw/zd_mac.c | 2 | ||||
-rw-r--r-- | include/linux/can/core.h | 2 | ||||
-rw-r--r-- | net/atm/svc.c | 6 | ||||
-rw-r--r-- | net/can/af_can.c | 68 | ||||
-rw-r--r-- | net/can/bcm.c | 7 | ||||
-rw-r--r-- | net/ipv4/tcp_output.c | 22 | ||||
-rw-r--r-- | net/ipv4/tcp_vegas.c | 2 | ||||
-rw-r--r-- | net/mac80211/sta_info.c | 2 | ||||
-rw-r--r-- | net/netlabel/netlabel_unlabeled.c | 10 | ||||
-rw-r--r-- | net/phonet/pn_netlink.c | 3 |
19 files changed, 169 insertions, 55 deletions
diff --git a/drivers/isdn/hardware/avm/b1isa.c b/drivers/isdn/hardware/avm/b1isa.c index 1e288eeb5e2a..6461a32bc838 100644 --- a/drivers/isdn/hardware/avm/b1isa.c +++ b/drivers/isdn/hardware/avm/b1isa.c | |||
@@ -233,10 +233,8 @@ static void __exit b1isa_exit(void) | |||
233 | int i; | 233 | int i; |
234 | 234 | ||
235 | for (i = 0; i < MAX_CARDS; i++) { | 235 | for (i = 0; i < MAX_CARDS; i++) { |
236 | if (!io[i]) | 236 | if (isa_dev[i].resource[0].start) |
237 | break; | 237 | b1isa_remove(&isa_dev[i]); |
238 | |||
239 | b1isa_remove(&isa_dev[i]); | ||
240 | } | 238 | } |
241 | unregister_capi_driver(&capi_driver_b1isa); | 239 | unregister_capi_driver(&capi_driver_b1isa); |
242 | } | 240 | } |
diff --git a/drivers/isdn/hysdn/hysdn_net.c b/drivers/isdn/hysdn/hysdn_net.c index 5b4ae67339af..7ee5bd9f2bb4 100644 --- a/drivers/isdn/hysdn/hysdn_net.c +++ b/drivers/isdn/hysdn/hysdn_net.c | |||
@@ -83,12 +83,12 @@ net_open(struct net_device *dev) | |||
83 | 83 | ||
84 | /* Fill in the MAC-level header (if not already set) */ | 84 | /* Fill in the MAC-level header (if not already set) */ |
85 | if (!card->mac_addr[0]) { | 85 | if (!card->mac_addr[0]) { |
86 | for (i = 0; i < ETH_ALEN - sizeof(unsigned long); i++) | 86 | for (i = 0; i < ETH_ALEN; i++) |
87 | dev->dev_addr[i] = 0xfc; | 87 | dev->dev_addr[i] = 0xfc; |
88 | if ((in_dev = dev->ip_ptr) != NULL) { | 88 | if ((in_dev = dev->ip_ptr) != NULL) { |
89 | struct in_ifaddr *ifa = in_dev->ifa_list; | 89 | struct in_ifaddr *ifa = in_dev->ifa_list; |
90 | if (ifa != NULL) | 90 | if (ifa != NULL) |
91 | memcpy(dev->dev_addr + (ETH_ALEN - sizeof(unsigned long)), &ifa->ifa_local, sizeof(unsigned long)); | 91 | memcpy(dev->dev_addr + (ETH_ALEN - sizeof(ifa->ifa_local)), &ifa->ifa_local, sizeof(ifa->ifa_local)); |
92 | } | 92 | } |
93 | } else | 93 | } else |
94 | memcpy(dev->dev_addr, card->mac_addr, ETH_ALEN); | 94 | memcpy(dev->dev_addr, card->mac_addr, ETH_ALEN); |
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index 182f2410c23d..0e2218dadb3d 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c | |||
@@ -3147,6 +3147,28 @@ bnx2_has_work(struct bnx2_napi *bnapi) | |||
3147 | return 0; | 3147 | return 0; |
3148 | } | 3148 | } |
3149 | 3149 | ||
3150 | static void | ||
3151 | bnx2_chk_missed_msi(struct bnx2 *bp) | ||
3152 | { | ||
3153 | struct bnx2_napi *bnapi = &bp->bnx2_napi[0]; | ||
3154 | u32 msi_ctrl; | ||
3155 | |||
3156 | if (bnx2_has_work(bnapi)) { | ||
3157 | msi_ctrl = REG_RD(bp, BNX2_PCICFG_MSI_CONTROL); | ||
3158 | if (!(msi_ctrl & BNX2_PCICFG_MSI_CONTROL_ENABLE)) | ||
3159 | return; | ||
3160 | |||
3161 | if (bnapi->last_status_idx == bp->idle_chk_status_idx) { | ||
3162 | REG_WR(bp, BNX2_PCICFG_MSI_CONTROL, msi_ctrl & | ||
3163 | ~BNX2_PCICFG_MSI_CONTROL_ENABLE); | ||
3164 | REG_WR(bp, BNX2_PCICFG_MSI_CONTROL, msi_ctrl); | ||
3165 | bnx2_msi(bp->irq_tbl[0].vector, bnapi); | ||
3166 | } | ||
3167 | } | ||
3168 | |||
3169 | bp->idle_chk_status_idx = bnapi->last_status_idx; | ||
3170 | } | ||
3171 | |||
3150 | static void bnx2_poll_link(struct bnx2 *bp, struct bnx2_napi *bnapi) | 3172 | static void bnx2_poll_link(struct bnx2 *bp, struct bnx2_napi *bnapi) |
3151 | { | 3173 | { |
3152 | struct status_block *sblk = bnapi->status_blk.msi; | 3174 | struct status_block *sblk = bnapi->status_blk.msi; |
@@ -3221,14 +3243,15 @@ static int bnx2_poll(struct napi_struct *napi, int budget) | |||
3221 | 3243 | ||
3222 | work_done = bnx2_poll_work(bp, bnapi, work_done, budget); | 3244 | work_done = bnx2_poll_work(bp, bnapi, work_done, budget); |
3223 | 3245 | ||
3224 | if (unlikely(work_done >= budget)) | ||
3225 | break; | ||
3226 | |||
3227 | /* bnapi->last_status_idx is used below to tell the hw how | 3246 | /* bnapi->last_status_idx is used below to tell the hw how |
3228 | * much work has been processed, so we must read it before | 3247 | * much work has been processed, so we must read it before |
3229 | * checking for more work. | 3248 | * checking for more work. |
3230 | */ | 3249 | */ |
3231 | bnapi->last_status_idx = sblk->status_idx; | 3250 | bnapi->last_status_idx = sblk->status_idx; |
3251 | |||
3252 | if (unlikely(work_done >= budget)) | ||
3253 | break; | ||
3254 | |||
3232 | rmb(); | 3255 | rmb(); |
3233 | if (likely(!bnx2_has_work(bnapi))) { | 3256 | if (likely(!bnx2_has_work(bnapi))) { |
3234 | netif_rx_complete(bp->dev, napi); | 3257 | netif_rx_complete(bp->dev, napi); |
@@ -4581,6 +4604,8 @@ bnx2_init_chip(struct bnx2 *bp) | |||
4581 | for (i = 0; i < BNX2_MAX_MSIX_VEC; i++) | 4604 | for (i = 0; i < BNX2_MAX_MSIX_VEC; i++) |
4582 | bp->bnx2_napi[i].last_status_idx = 0; | 4605 | bp->bnx2_napi[i].last_status_idx = 0; |
4583 | 4606 | ||
4607 | bp->idle_chk_status_idx = 0xffff; | ||
4608 | |||
4584 | bp->rx_mode = BNX2_EMAC_RX_MODE_SORT_MODE; | 4609 | bp->rx_mode = BNX2_EMAC_RX_MODE_SORT_MODE; |
4585 | 4610 | ||
4586 | /* Set up how to generate a link change interrupt. */ | 4611 | /* Set up how to generate a link change interrupt. */ |
@@ -5729,6 +5754,10 @@ bnx2_timer(unsigned long data) | |||
5729 | if (atomic_read(&bp->intr_sem) != 0) | 5754 | if (atomic_read(&bp->intr_sem) != 0) |
5730 | goto bnx2_restart_timer; | 5755 | goto bnx2_restart_timer; |
5731 | 5756 | ||
5757 | if ((bp->flags & (BNX2_FLAG_USING_MSI | BNX2_FLAG_ONE_SHOT_MSI)) == | ||
5758 | BNX2_FLAG_USING_MSI) | ||
5759 | bnx2_chk_missed_msi(bp); | ||
5760 | |||
5732 | bnx2_send_heart_beat(bp); | 5761 | bnx2_send_heart_beat(bp); |
5733 | 5762 | ||
5734 | bp->stats_blk->stat_FwRxDrop = | 5763 | bp->stats_blk->stat_FwRxDrop = |
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h index 0763108fa1c5..2f43c45b7ad6 100644 --- a/drivers/net/bnx2.h +++ b/drivers/net/bnx2.h | |||
@@ -378,6 +378,9 @@ struct l2_fhdr { | |||
378 | * pci_config_l definition | 378 | * pci_config_l definition |
379 | * offset: 0000 | 379 | * offset: 0000 |
380 | */ | 380 | */ |
381 | #define BNX2_PCICFG_MSI_CONTROL 0x00000058 | ||
382 | #define BNX2_PCICFG_MSI_CONTROL_ENABLE (1L<<16) | ||
383 | |||
381 | #define BNX2_PCICFG_MISC_CONFIG 0x00000068 | 384 | #define BNX2_PCICFG_MISC_CONFIG 0x00000068 |
382 | #define BNX2_PCICFG_MISC_CONFIG_TARGET_BYTE_SWAP (1L<<2) | 385 | #define BNX2_PCICFG_MISC_CONFIG_TARGET_BYTE_SWAP (1L<<2) |
383 | #define BNX2_PCICFG_MISC_CONFIG_TARGET_MB_WORD_SWAP (1L<<3) | 386 | #define BNX2_PCICFG_MISC_CONFIG_TARGET_MB_WORD_SWAP (1L<<3) |
@@ -6882,6 +6885,9 @@ struct bnx2 { | |||
6882 | 6885 | ||
6883 | u8 num_tx_rings; | 6886 | u8 num_tx_rings; |
6884 | u8 num_rx_rings; | 6887 | u8 num_rx_rings; |
6888 | |||
6889 | u32 idle_chk_status_idx; | ||
6890 | |||
6885 | }; | 6891 | }; |
6886 | 6892 | ||
6887 | #define REG_RD(bp, offset) \ | 6893 | #define REG_RD(bp, offset) \ |
diff --git a/drivers/net/enc28j60.c b/drivers/net/enc28j60.c index 32c19790d013..d3c8e742e9ea 100644 --- a/drivers/net/enc28j60.c +++ b/drivers/net/enc28j60.c | |||
@@ -566,6 +566,17 @@ static u16 erxrdpt_workaround(u16 next_packet_ptr, u16 start, u16 end) | |||
566 | return erxrdpt; | 566 | return erxrdpt; |
567 | } | 567 | } |
568 | 568 | ||
569 | /* | ||
570 | * Calculate wrap around when reading beyond the end of the RX buffer | ||
571 | */ | ||
572 | static u16 rx_packet_start(u16 ptr) | ||
573 | { | ||
574 | if (ptr + RSV_SIZE > RXEND_INIT) | ||
575 | return (ptr + RSV_SIZE) - (RXEND_INIT - RXSTART_INIT + 1); | ||
576 | else | ||
577 | return ptr + RSV_SIZE; | ||
578 | } | ||
579 | |||
569 | static void nolock_rxfifo_init(struct enc28j60_net *priv, u16 start, u16 end) | 580 | static void nolock_rxfifo_init(struct enc28j60_net *priv, u16 start, u16 end) |
570 | { | 581 | { |
571 | u16 erxrdpt; | 582 | u16 erxrdpt; |
@@ -936,8 +947,9 @@ static void enc28j60_hw_rx(struct net_device *ndev) | |||
936 | skb->dev = ndev; | 947 | skb->dev = ndev; |
937 | skb_reserve(skb, NET_IP_ALIGN); | 948 | skb_reserve(skb, NET_IP_ALIGN); |
938 | /* copy the packet from the receive buffer */ | 949 | /* copy the packet from the receive buffer */ |
939 | enc28j60_mem_read(priv, priv->next_pk_ptr + sizeof(rsv), | 950 | enc28j60_mem_read(priv, |
940 | len, skb_put(skb, len)); | 951 | rx_packet_start(priv->next_pk_ptr), |
952 | len, skb_put(skb, len)); | ||
941 | if (netif_msg_pktdata(priv)) | 953 | if (netif_msg_pktdata(priv)) |
942 | dump_packet(__func__, skb->len, skb->data); | 954 | dump_packet(__func__, skb->len, skb->data); |
943 | skb->protocol = eth_type_trans(skb, ndev); | 955 | skb->protocol = eth_type_trans(skb, ndev); |
diff --git a/drivers/net/netx-eth.c b/drivers/net/netx-eth.c index b418771f6811..1861d5bbd96b 100644 --- a/drivers/net/netx-eth.c +++ b/drivers/net/netx-eth.c | |||
@@ -400,6 +400,8 @@ static int netx_eth_drv_probe(struct platform_device *pdev) | |||
400 | priv->xmac_base = priv->xc->xmac_base; | 400 | priv->xmac_base = priv->xc->xmac_base; |
401 | priv->sram_base = priv->xc->sram_base; | 401 | priv->sram_base = priv->xc->sram_base; |
402 | 402 | ||
403 | spin_lock_init(&priv->lock); | ||
404 | |||
403 | ret = pfifo_request(PFIFO_MASK(priv->id)); | 405 | ret = pfifo_request(PFIFO_MASK(priv->id)); |
404 | if (ret) { | 406 | if (ret) { |
405 | printk("unable to request PFIFO\n"); | 407 | printk("unable to request PFIFO\n"); |
diff --git a/drivers/net/wireless/ipw2x00/ipw2200.c b/drivers/net/wireless/ipw2x00/ipw2200.c index 48fa6df3a774..23728eb6110a 100644 --- a/drivers/net/wireless/ipw2x00/ipw2200.c +++ b/drivers/net/wireless/ipw2x00/ipw2200.c | |||
@@ -3895,6 +3895,7 @@ static int ipw_disassociate(void *data) | |||
3895 | if (!(priv->status & (STATUS_ASSOCIATED | STATUS_ASSOCIATING))) | 3895 | if (!(priv->status & (STATUS_ASSOCIATED | STATUS_ASSOCIATING))) |
3896 | return 0; | 3896 | return 0; |
3897 | ipw_send_disassociate(data, 0); | 3897 | ipw_send_disassociate(data, 0); |
3898 | netif_carrier_off(priv->net_dev); | ||
3898 | return 1; | 3899 | return 1; |
3899 | } | 3900 | } |
3900 | 3901 | ||
@@ -10155,6 +10156,9 @@ static int ipw_tx_skb(struct ipw_priv *priv, struct ieee80211_txb *txb, | |||
10155 | u16 remaining_bytes; | 10156 | u16 remaining_bytes; |
10156 | int fc; | 10157 | int fc; |
10157 | 10158 | ||
10159 | if (!(priv->status & STATUS_ASSOCIATED)) | ||
10160 | goto drop; | ||
10161 | |||
10158 | hdr_len = ieee80211_get_hdrlen(le16_to_cpu(hdr->frame_ctl)); | 10162 | hdr_len = ieee80211_get_hdrlen(le16_to_cpu(hdr->frame_ctl)); |
10159 | switch (priv->ieee->iw_mode) { | 10163 | switch (priv->ieee->iw_mode) { |
10160 | case IW_MODE_ADHOC: | 10164 | case IW_MODE_ADHOC: |
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index 1b021ca74e25..d00dfe4edc3b 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -238,7 +238,6 @@ int iwl_hw_nic_init(struct iwl_priv *priv) | |||
238 | } | 238 | } |
239 | EXPORT_SYMBOL(iwl_hw_nic_init); | 239 | EXPORT_SYMBOL(iwl_hw_nic_init); |
240 | 240 | ||
241 | |||
242 | void iwl_reset_qos(struct iwl_priv *priv) | 241 | void iwl_reset_qos(struct iwl_priv *priv) |
243 | { | 242 | { |
244 | u16 cw_min = 15; | 243 | u16 cw_min = 15; |
diff --git a/drivers/net/wireless/iwlwifi/iwl-sta.c b/drivers/net/wireless/iwlwifi/iwl-sta.c index f86a8ca2aa3b..4a2479a1622a 100644 --- a/drivers/net/wireless/iwlwifi/iwl-sta.c +++ b/drivers/net/wireless/iwlwifi/iwl-sta.c | |||
@@ -494,7 +494,7 @@ static int iwl_get_free_ucode_key_index(struct iwl_priv *priv) | |||
494 | if (!test_and_set_bit(i, &priv->ucode_key_table)) | 494 | if (!test_and_set_bit(i, &priv->ucode_key_table)) |
495 | return i; | 495 | return i; |
496 | 496 | ||
497 | return -1; | 497 | return WEP_INVALID_OFFSET; |
498 | } | 498 | } |
499 | 499 | ||
500 | int iwl_send_static_wepkey_cmd(struct iwl_priv *priv, u8 send_if_empty) | 500 | int iwl_send_static_wepkey_cmd(struct iwl_priv *priv, u8 send_if_empty) |
@@ -639,6 +639,9 @@ static int iwl_set_wep_dynamic_key_info(struct iwl_priv *priv, | |||
639 | /* else, we are overriding an existing key => no need to allocated room | 639 | /* else, we are overriding an existing key => no need to allocated room |
640 | * in uCode. */ | 640 | * in uCode. */ |
641 | 641 | ||
642 | WARN(priv->stations[sta_id].sta.key.key_offset == WEP_INVALID_OFFSET, | ||
643 | "no space for new kew"); | ||
644 | |||
642 | priv->stations[sta_id].sta.key.key_flags = key_flags; | 645 | priv->stations[sta_id].sta.key.key_flags = key_flags; |
643 | priv->stations[sta_id].sta.sta.modify_mask = STA_MODIFY_KEY_MASK; | 646 | priv->stations[sta_id].sta.sta.modify_mask = STA_MODIFY_KEY_MASK; |
644 | priv->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK; | 647 | priv->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK; |
@@ -656,6 +659,7 @@ static int iwl_set_ccmp_dynamic_key_info(struct iwl_priv *priv, | |||
656 | { | 659 | { |
657 | unsigned long flags; | 660 | unsigned long flags; |
658 | __le16 key_flags = 0; | 661 | __le16 key_flags = 0; |
662 | int ret; | ||
659 | 663 | ||
660 | key_flags |= (STA_KEY_FLG_CCMP | STA_KEY_FLG_MAP_KEY_MSK); | 664 | key_flags |= (STA_KEY_FLG_CCMP | STA_KEY_FLG_MAP_KEY_MSK); |
661 | key_flags |= cpu_to_le16(keyconf->keyidx << STA_KEY_FLG_KEYID_POS); | 665 | key_flags |= cpu_to_le16(keyconf->keyidx << STA_KEY_FLG_KEYID_POS); |
@@ -683,14 +687,18 @@ static int iwl_set_ccmp_dynamic_key_info(struct iwl_priv *priv, | |||
683 | /* else, we are overriding an existing key => no need to allocated room | 687 | /* else, we are overriding an existing key => no need to allocated room |
684 | * in uCode. */ | 688 | * in uCode. */ |
685 | 689 | ||
690 | WARN(priv->stations[sta_id].sta.key.key_offset == WEP_INVALID_OFFSET, | ||
691 | "no space for new kew"); | ||
692 | |||
686 | priv->stations[sta_id].sta.key.key_flags = key_flags; | 693 | priv->stations[sta_id].sta.key.key_flags = key_flags; |
687 | priv->stations[sta_id].sta.sta.modify_mask = STA_MODIFY_KEY_MASK; | 694 | priv->stations[sta_id].sta.sta.modify_mask = STA_MODIFY_KEY_MASK; |
688 | priv->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK; | 695 | priv->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK; |
689 | 696 | ||
697 | ret = iwl_send_add_sta(priv, &priv->stations[sta_id].sta, CMD_ASYNC); | ||
698 | |||
690 | spin_unlock_irqrestore(&priv->sta_lock, flags); | 699 | spin_unlock_irqrestore(&priv->sta_lock, flags); |
691 | 700 | ||
692 | IWL_DEBUG_INFO("hwcrypto: modify ucode station key info\n"); | 701 | return ret; |
693 | return iwl_send_add_sta(priv, &priv->stations[sta_id].sta, CMD_ASYNC); | ||
694 | } | 702 | } |
695 | 703 | ||
696 | static int iwl_set_tkip_dynamic_key_info(struct iwl_priv *priv, | 704 | static int iwl_set_tkip_dynamic_key_info(struct iwl_priv *priv, |
@@ -715,7 +723,10 @@ static int iwl_set_tkip_dynamic_key_info(struct iwl_priv *priv, | |||
715 | /* else, we are overriding an existing key => no need to allocated room | 723 | /* else, we are overriding an existing key => no need to allocated room |
716 | * in uCode. */ | 724 | * in uCode. */ |
717 | 725 | ||
718 | /* This copy is actually not needed: we get the key with each TX */ | 726 | WARN(priv->stations[sta_id].sta.key.key_offset == WEP_INVALID_OFFSET, |
727 | "no space for new kew"); | ||
728 | |||
729 | /* This copy is acutally not needed: we get the key with each TX */ | ||
719 | memcpy(priv->stations[sta_id].keyinfo.key, keyconf->key, 16); | 730 | memcpy(priv->stations[sta_id].keyinfo.key, keyconf->key, 16); |
720 | 731 | ||
721 | memcpy(priv->stations[sta_id].sta.key.key, keyconf->key, 16); | 732 | memcpy(priv->stations[sta_id].sta.key.key, keyconf->key, 16); |
@@ -802,6 +813,13 @@ int iwl_remove_dynamic_key(struct iwl_priv *priv, | |||
802 | return 0; | 813 | return 0; |
803 | } | 814 | } |
804 | 815 | ||
816 | if (priv->stations[sta_id].sta.key.key_offset == WEP_INVALID_OFFSET) { | ||
817 | IWL_WARNING("Removing wrong key %d 0x%x\n", | ||
818 | keyconf->keyidx, key_flags); | ||
819 | spin_unlock_irqrestore(&priv->sta_lock, flags); | ||
820 | return 0; | ||
821 | } | ||
822 | |||
805 | if (!test_and_clear_bit(priv->stations[sta_id].sta.key.key_offset, | 823 | if (!test_and_clear_bit(priv->stations[sta_id].sta.key.key_offset, |
806 | &priv->ucode_key_table)) | 824 | &priv->ucode_key_table)) |
807 | IWL_ERROR("index %d not used in uCode key table.\n", | 825 | IWL_ERROR("index %d not used in uCode key table.\n", |
diff --git a/drivers/net/wireless/zd1211rw/zd_mac.c b/drivers/net/wireless/zd1211rw/zd_mac.c index 07513e48b8f2..9caa96a13586 100644 --- a/drivers/net/wireless/zd1211rw/zd_mac.c +++ b/drivers/net/wireless/zd1211rw/zd_mac.c | |||
@@ -615,7 +615,7 @@ static int filter_ack(struct ieee80211_hw *hw, struct ieee80211_hdr *rx_hdr, | |||
615 | struct ieee80211_hdr *tx_hdr; | 615 | struct ieee80211_hdr *tx_hdr; |
616 | 616 | ||
617 | tx_hdr = (struct ieee80211_hdr *)skb->data; | 617 | tx_hdr = (struct ieee80211_hdr *)skb->data; |
618 | if (likely(!compare_ether_addr(tx_hdr->addr2, rx_hdr->addr1))) | 618 | if (likely(!memcmp(tx_hdr->addr2, rx_hdr->addr1, ETH_ALEN))) |
619 | { | 619 | { |
620 | __skb_unlink(skb, q); | 620 | __skb_unlink(skb, q); |
621 | tx_status(hw, skb, stats->signal, 1); | 621 | tx_status(hw, skb, stats->signal, 1); |
diff --git a/include/linux/can/core.h b/include/linux/can/core.h index e9ca210ffa5b..f50785ad4781 100644 --- a/include/linux/can/core.h +++ b/include/linux/can/core.h | |||
@@ -19,7 +19,7 @@ | |||
19 | #include <linux/skbuff.h> | 19 | #include <linux/skbuff.h> |
20 | #include <linux/netdevice.h> | 20 | #include <linux/netdevice.h> |
21 | 21 | ||
22 | #define CAN_VERSION "20071116" | 22 | #define CAN_VERSION "20081130" |
23 | 23 | ||
24 | /* increment this number each time you change some user-space interface */ | 24 | /* increment this number each time you change some user-space interface */ |
25 | #define CAN_ABI_VERSION "8" | 25 | #define CAN_ABI_VERSION "8" |
diff --git a/net/atm/svc.c b/net/atm/svc.c index e9c65500f84e..7b831b526d0b 100644 --- a/net/atm/svc.c +++ b/net/atm/svc.c | |||
@@ -293,7 +293,10 @@ static int svc_listen(struct socket *sock,int backlog) | |||
293 | error = -EINVAL; | 293 | error = -EINVAL; |
294 | goto out; | 294 | goto out; |
295 | } | 295 | } |
296 | vcc_insert_socket(sk); | 296 | if (test_bit(ATM_VF_LISTEN, &vcc->flags)) { |
297 | error = -EADDRINUSE; | ||
298 | goto out; | ||
299 | } | ||
297 | set_bit(ATM_VF_WAITING, &vcc->flags); | 300 | set_bit(ATM_VF_WAITING, &vcc->flags); |
298 | prepare_to_wait(sk->sk_sleep, &wait, TASK_UNINTERRUPTIBLE); | 301 | prepare_to_wait(sk->sk_sleep, &wait, TASK_UNINTERRUPTIBLE); |
299 | sigd_enq(vcc,as_listen,NULL,NULL,&vcc->local); | 302 | sigd_enq(vcc,as_listen,NULL,NULL,&vcc->local); |
@@ -307,6 +310,7 @@ static int svc_listen(struct socket *sock,int backlog) | |||
307 | goto out; | 310 | goto out; |
308 | } | 311 | } |
309 | set_bit(ATM_VF_LISTEN,&vcc->flags); | 312 | set_bit(ATM_VF_LISTEN,&vcc->flags); |
313 | vcc_insert_socket(sk); | ||
310 | sk->sk_max_ack_backlog = backlog > 0 ? backlog : ATM_BACKLOG_DEFAULT; | 314 | sk->sk_max_ack_backlog = backlog > 0 ? backlog : ATM_BACKLOG_DEFAULT; |
311 | error = -sk->sk_err; | 315 | error = -sk->sk_err; |
312 | out: | 316 | out: |
diff --git a/net/can/af_can.c b/net/can/af_can.c index 7d4d2b3c137e..3dadb338addd 100644 --- a/net/can/af_can.c +++ b/net/can/af_can.c | |||
@@ -319,23 +319,52 @@ static struct dev_rcv_lists *find_dev_rcv_lists(struct net_device *dev) | |||
319 | return n ? d : NULL; | 319 | return n ? d : NULL; |
320 | } | 320 | } |
321 | 321 | ||
322 | /** | ||
323 | * find_rcv_list - determine optimal filterlist inside device filter struct | ||
324 | * @can_id: pointer to CAN identifier of a given can_filter | ||
325 | * @mask: pointer to CAN mask of a given can_filter | ||
326 | * @d: pointer to the device filter struct | ||
327 | * | ||
328 | * Description: | ||
329 | * Returns the optimal filterlist to reduce the filter handling in the | ||
330 | * receive path. This function is called by service functions that need | ||
331 | * to register or unregister a can_filter in the filter lists. | ||
332 | * | ||
333 | * A filter matches in general, when | ||
334 | * | ||
335 | * <received_can_id> & mask == can_id & mask | ||
336 | * | ||
337 | * so every bit set in the mask (even CAN_EFF_FLAG, CAN_RTR_FLAG) describe | ||
338 | * relevant bits for the filter. | ||
339 | * | ||
340 | * The filter can be inverted (CAN_INV_FILTER bit set in can_id) or it can | ||
341 | * filter for error frames (CAN_ERR_FLAG bit set in mask). For error frames | ||
342 | * there is a special filterlist and a special rx path filter handling. | ||
343 | * | ||
344 | * Return: | ||
345 | * Pointer to optimal filterlist for the given can_id/mask pair. | ||
346 | * Constistency checked mask. | ||
347 | * Reduced can_id to have a preprocessed filter compare value. | ||
348 | */ | ||
322 | static struct hlist_head *find_rcv_list(canid_t *can_id, canid_t *mask, | 349 | static struct hlist_head *find_rcv_list(canid_t *can_id, canid_t *mask, |
323 | struct dev_rcv_lists *d) | 350 | struct dev_rcv_lists *d) |
324 | { | 351 | { |
325 | canid_t inv = *can_id & CAN_INV_FILTER; /* save flag before masking */ | 352 | canid_t inv = *can_id & CAN_INV_FILTER; /* save flag before masking */ |
326 | 353 | ||
327 | /* filter error frames */ | 354 | /* filter for error frames in extra filterlist */ |
328 | if (*mask & CAN_ERR_FLAG) { | 355 | if (*mask & CAN_ERR_FLAG) { |
329 | /* clear CAN_ERR_FLAG in list entry */ | 356 | /* clear CAN_ERR_FLAG in filter entry */ |
330 | *mask &= CAN_ERR_MASK; | 357 | *mask &= CAN_ERR_MASK; |
331 | return &d->rx[RX_ERR]; | 358 | return &d->rx[RX_ERR]; |
332 | } | 359 | } |
333 | 360 | ||
334 | /* ensure valid values in can_mask */ | 361 | /* with cleared CAN_ERR_FLAG we have a simple mask/value filterpair */ |
335 | if (*mask & CAN_EFF_FLAG) | 362 | |
336 | *mask &= (CAN_EFF_MASK | CAN_EFF_FLAG | CAN_RTR_FLAG); | 363 | #define CAN_EFF_RTR_FLAGS (CAN_EFF_FLAG | CAN_RTR_FLAG) |
337 | else | 364 | |
338 | *mask &= (CAN_SFF_MASK | CAN_RTR_FLAG); | 365 | /* ensure valid values in can_mask for 'SFF only' frame filtering */ |
366 | if ((*mask & CAN_EFF_FLAG) && !(*can_id & CAN_EFF_FLAG)) | ||
367 | *mask &= (CAN_SFF_MASK | CAN_EFF_RTR_FLAGS); | ||
339 | 368 | ||
340 | /* reduce condition testing at receive time */ | 369 | /* reduce condition testing at receive time */ |
341 | *can_id &= *mask; | 370 | *can_id &= *mask; |
@@ -348,15 +377,19 @@ static struct hlist_head *find_rcv_list(canid_t *can_id, canid_t *mask, | |||
348 | if (!(*mask)) | 377 | if (!(*mask)) |
349 | return &d->rx[RX_ALL]; | 378 | return &d->rx[RX_ALL]; |
350 | 379 | ||
351 | /* use extra filterset for the subscription of exactly *ONE* can_id */ | 380 | /* extra filterlists for the subscription of a single non-RTR can_id */ |
352 | if (*can_id & CAN_EFF_FLAG) { | 381 | if (((*mask & CAN_EFF_RTR_FLAGS) == CAN_EFF_RTR_FLAGS) |
353 | if (*mask == (CAN_EFF_MASK | CAN_EFF_FLAG)) { | 382 | && !(*can_id & CAN_RTR_FLAG)) { |
354 | /* RFC: a use-case for hash-tables in the future? */ | 383 | |
355 | return &d->rx[RX_EFF]; | 384 | if (*can_id & CAN_EFF_FLAG) { |
385 | if (*mask == (CAN_EFF_MASK | CAN_EFF_RTR_FLAGS)) { | ||
386 | /* RFC: a future use-case for hash-tables? */ | ||
387 | return &d->rx[RX_EFF]; | ||
388 | } | ||
389 | } else { | ||
390 | if (*mask == (CAN_SFF_MASK | CAN_EFF_RTR_FLAGS)) | ||
391 | return &d->rx_sff[*can_id]; | ||
356 | } | 392 | } |
357 | } else { | ||
358 | if (*mask == CAN_SFF_MASK) | ||
359 | return &d->rx_sff[*can_id]; | ||
360 | } | 393 | } |
361 | 394 | ||
362 | /* default: filter via can_id/can_mask */ | 395 | /* default: filter via can_id/can_mask */ |
@@ -589,7 +622,10 @@ static int can_rcv_filter(struct dev_rcv_lists *d, struct sk_buff *skb) | |||
589 | } | 622 | } |
590 | } | 623 | } |
591 | 624 | ||
592 | /* check CAN_ID specific entries */ | 625 | /* check filterlists for single non-RTR can_ids */ |
626 | if (can_id & CAN_RTR_FLAG) | ||
627 | return matches; | ||
628 | |||
593 | if (can_id & CAN_EFF_FLAG) { | 629 | if (can_id & CAN_EFF_FLAG) { |
594 | hlist_for_each_entry_rcu(r, n, &d->rx[RX_EFF], list) { | 630 | hlist_for_each_entry_rcu(r, n, &d->rx[RX_EFF], list) { |
595 | if (r->can_id == can_id) { | 631 | if (r->can_id == can_id) { |
diff --git a/net/can/bcm.c b/net/can/bcm.c index d0dd382001e2..da0d426c0ce4 100644 --- a/net/can/bcm.c +++ b/net/can/bcm.c | |||
@@ -64,10 +64,11 @@ | |||
64 | #define BCM_CAN_DLC_MASK 0x0F /* clean private flags in can_dlc by masking */ | 64 | #define BCM_CAN_DLC_MASK 0x0F /* clean private flags in can_dlc by masking */ |
65 | 65 | ||
66 | /* get best masking value for can_rx_register() for a given single can_id */ | 66 | /* get best masking value for can_rx_register() for a given single can_id */ |
67 | #define REGMASK(id) ((id & CAN_RTR_FLAG) | ((id & CAN_EFF_FLAG) ? \ | 67 | #define REGMASK(id) ((id & CAN_EFF_FLAG) ? \ |
68 | (CAN_EFF_MASK | CAN_EFF_FLAG) : CAN_SFF_MASK)) | 68 | (CAN_EFF_MASK | CAN_EFF_FLAG | CAN_RTR_FLAG) : \ |
69 | (CAN_SFF_MASK | CAN_EFF_FLAG | CAN_RTR_FLAG)) | ||
69 | 70 | ||
70 | #define CAN_BCM_VERSION "20080415" | 71 | #define CAN_BCM_VERSION CAN_VERSION |
71 | static __initdata const char banner[] = KERN_INFO | 72 | static __initdata const char banner[] = KERN_INFO |
72 | "can: broadcast manager protocol (rev " CAN_BCM_VERSION ")\n"; | 73 | "can: broadcast manager protocol (rev " CAN_BCM_VERSION ")\n"; |
73 | 74 | ||
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 80147ba44141..59505ce0c8fd 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -722,8 +722,7 @@ static void tcp_queue_skb(struct sock *sk, struct sk_buff *skb) | |||
722 | static void tcp_set_skb_tso_segs(struct sock *sk, struct sk_buff *skb, | 722 | static void tcp_set_skb_tso_segs(struct sock *sk, struct sk_buff *skb, |
723 | unsigned int mss_now) | 723 | unsigned int mss_now) |
724 | { | 724 | { |
725 | if (skb->len <= mss_now || !sk_can_gso(sk) || | 725 | if (skb->len <= mss_now || !sk_can_gso(sk)) { |
726 | tcp_urg_mode(tcp_sk(sk))) { | ||
727 | /* Avoid the costly divide in the normal | 726 | /* Avoid the costly divide in the normal |
728 | * non-TSO case. | 727 | * non-TSO case. |
729 | */ | 728 | */ |
@@ -1029,10 +1028,6 @@ unsigned int tcp_sync_mss(struct sock *sk, u32 pmtu) | |||
1029 | 1028 | ||
1030 | /* Compute the current effective MSS, taking SACKs and IP options, | 1029 | /* Compute the current effective MSS, taking SACKs and IP options, |
1031 | * and even PMTU discovery events into account. | 1030 | * and even PMTU discovery events into account. |
1032 | * | ||
1033 | * LARGESEND note: !tcp_urg_mode is overkill, only frames up to snd_up | ||
1034 | * cannot be large. However, taking into account rare use of URG, this | ||
1035 | * is not a big flaw. | ||
1036 | */ | 1031 | */ |
1037 | unsigned int tcp_current_mss(struct sock *sk, int large_allowed) | 1032 | unsigned int tcp_current_mss(struct sock *sk, int large_allowed) |
1038 | { | 1033 | { |
@@ -1047,7 +1042,7 @@ unsigned int tcp_current_mss(struct sock *sk, int large_allowed) | |||
1047 | 1042 | ||
1048 | mss_now = tp->mss_cache; | 1043 | mss_now = tp->mss_cache; |
1049 | 1044 | ||
1050 | if (large_allowed && sk_can_gso(sk) && !tcp_urg_mode(tp)) | 1045 | if (large_allowed && sk_can_gso(sk)) |
1051 | doing_tso = 1; | 1046 | doing_tso = 1; |
1052 | 1047 | ||
1053 | if (dst) { | 1048 | if (dst) { |
@@ -1164,9 +1159,7 @@ static int tcp_init_tso_segs(struct sock *sk, struct sk_buff *skb, | |||
1164 | { | 1159 | { |
1165 | int tso_segs = tcp_skb_pcount(skb); | 1160 | int tso_segs = tcp_skb_pcount(skb); |
1166 | 1161 | ||
1167 | if (!tso_segs || | 1162 | if (!tso_segs || (tso_segs > 1 && tcp_skb_mss(skb) != mss_now)) { |
1168 | (tso_segs > 1 && (tcp_skb_mss(skb) != mss_now || | ||
1169 | tcp_urg_mode(tcp_sk(sk))))) { | ||
1170 | tcp_set_skb_tso_segs(sk, skb, mss_now); | 1163 | tcp_set_skb_tso_segs(sk, skb, mss_now); |
1171 | tso_segs = tcp_skb_pcount(skb); | 1164 | tso_segs = tcp_skb_pcount(skb); |
1172 | } | 1165 | } |
@@ -1519,6 +1512,10 @@ static int tcp_mtu_probe(struct sock *sk) | |||
1519 | * send_head. This happens as incoming acks open up the remote | 1512 | * send_head. This happens as incoming acks open up the remote |
1520 | * window for us. | 1513 | * window for us. |
1521 | * | 1514 | * |
1515 | * LARGESEND note: !tcp_urg_mode is overkill, only frames between | ||
1516 | * snd_up-64k-mss .. snd_up cannot be large. However, taking into | ||
1517 | * account rare use of URG, this is not a big flaw. | ||
1518 | * | ||
1522 | * Returns 1, if no segments are in flight and we have queued segments, but | 1519 | * Returns 1, if no segments are in flight and we have queued segments, but |
1523 | * cannot send anything now because of SWS or another problem. | 1520 | * cannot send anything now because of SWS or another problem. |
1524 | */ | 1521 | */ |
@@ -1563,7 +1560,7 @@ static int tcp_write_xmit(struct sock *sk, unsigned int mss_now, int nonagle) | |||
1563 | } | 1560 | } |
1564 | 1561 | ||
1565 | limit = mss_now; | 1562 | limit = mss_now; |
1566 | if (tso_segs > 1) | 1563 | if (tso_segs > 1 && !tcp_urg_mode(tp)) |
1567 | limit = tcp_mss_split_point(sk, skb, mss_now, | 1564 | limit = tcp_mss_split_point(sk, skb, mss_now, |
1568 | cwnd_quota); | 1565 | cwnd_quota); |
1569 | 1566 | ||
@@ -1620,6 +1617,7 @@ void __tcp_push_pending_frames(struct sock *sk, unsigned int cur_mss, | |||
1620 | */ | 1617 | */ |
1621 | void tcp_push_one(struct sock *sk, unsigned int mss_now) | 1618 | void tcp_push_one(struct sock *sk, unsigned int mss_now) |
1622 | { | 1619 | { |
1620 | struct tcp_sock *tp = tcp_sk(sk); | ||
1623 | struct sk_buff *skb = tcp_send_head(sk); | 1621 | struct sk_buff *skb = tcp_send_head(sk); |
1624 | unsigned int tso_segs, cwnd_quota; | 1622 | unsigned int tso_segs, cwnd_quota; |
1625 | 1623 | ||
@@ -1634,7 +1632,7 @@ void tcp_push_one(struct sock *sk, unsigned int mss_now) | |||
1634 | BUG_ON(!tso_segs); | 1632 | BUG_ON(!tso_segs); |
1635 | 1633 | ||
1636 | limit = mss_now; | 1634 | limit = mss_now; |
1637 | if (tso_segs > 1) | 1635 | if (tso_segs > 1 && !tcp_urg_mode(tp)) |
1638 | limit = tcp_mss_split_point(sk, skb, mss_now, | 1636 | limit = tcp_mss_split_point(sk, skb, mss_now, |
1639 | cwnd_quota); | 1637 | cwnd_quota); |
1640 | 1638 | ||
diff --git a/net/ipv4/tcp_vegas.c b/net/ipv4/tcp_vegas.c index 14504dada116..7cd22262de3a 100644 --- a/net/ipv4/tcp_vegas.c +++ b/net/ipv4/tcp_vegas.c | |||
@@ -326,6 +326,8 @@ static void tcp_vegas_cong_avoid(struct sock *sk, u32 ack, u32 in_flight) | |||
326 | tp->snd_cwnd = 2; | 326 | tp->snd_cwnd = 2; |
327 | else if (tp->snd_cwnd > tp->snd_cwnd_clamp) | 327 | else if (tp->snd_cwnd > tp->snd_cwnd_clamp) |
328 | tp->snd_cwnd = tp->snd_cwnd_clamp; | 328 | tp->snd_cwnd = tp->snd_cwnd_clamp; |
329 | |||
330 | tp->snd_ssthresh = tcp_current_ssthresh(sk); | ||
329 | } | 331 | } |
330 | 332 | ||
331 | /* Wipe the slate clean for the next RTT. */ | 333 | /* Wipe the slate clean for the next RTT. */ |
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index b22110a4a75e..10c5539c20ab 100644 --- a/net/mac80211/sta_info.c +++ b/net/mac80211/sta_info.c | |||
@@ -99,7 +99,7 @@ struct sta_info *sta_info_get(struct ieee80211_local *local, const u8 *addr) | |||
99 | 99 | ||
100 | sta = rcu_dereference(local->sta_hash[STA_HASH(addr)]); | 100 | sta = rcu_dereference(local->sta_hash[STA_HASH(addr)]); |
101 | while (sta) { | 101 | while (sta) { |
102 | if (compare_ether_addr(sta->sta.addr, addr) == 0) | 102 | if (memcmp(sta->sta.addr, addr, ETH_ALEN) == 0) |
103 | break; | 103 | break; |
104 | sta = rcu_dereference(sta->hnext); | 104 | sta = rcu_dereference(sta->hnext); |
105 | } | 105 | } |
diff --git a/net/netlabel/netlabel_unlabeled.c b/net/netlabel/netlabel_unlabeled.c index e8a5c32b0f10..90c8506a0aac 100644 --- a/net/netlabel/netlabel_unlabeled.c +++ b/net/netlabel/netlabel_unlabeled.c | |||
@@ -574,9 +574,10 @@ static int netlbl_unlhsh_remove_addr4(struct net *net, | |||
574 | list_entry = netlbl_af4list_remove(addr->s_addr, mask->s_addr, | 574 | list_entry = netlbl_af4list_remove(addr->s_addr, mask->s_addr, |
575 | &iface->addr4_list); | 575 | &iface->addr4_list); |
576 | spin_unlock(&netlbl_unlhsh_lock); | 576 | spin_unlock(&netlbl_unlhsh_lock); |
577 | if (list_entry == NULL) | 577 | if (list_entry != NULL) |
578 | entry = netlbl_unlhsh_addr4_entry(list_entry); | ||
579 | else | ||
578 | ret_val = -ENOENT; | 580 | ret_val = -ENOENT; |
579 | entry = netlbl_unlhsh_addr4_entry(list_entry); | ||
580 | 581 | ||
581 | audit_buf = netlbl_audit_start_common(AUDIT_MAC_UNLBL_STCDEL, | 582 | audit_buf = netlbl_audit_start_common(AUDIT_MAC_UNLBL_STCDEL, |
582 | audit_info); | 583 | audit_info); |
@@ -634,9 +635,10 @@ static int netlbl_unlhsh_remove_addr6(struct net *net, | |||
634 | spin_lock(&netlbl_unlhsh_lock); | 635 | spin_lock(&netlbl_unlhsh_lock); |
635 | list_entry = netlbl_af6list_remove(addr, mask, &iface->addr6_list); | 636 | list_entry = netlbl_af6list_remove(addr, mask, &iface->addr6_list); |
636 | spin_unlock(&netlbl_unlhsh_lock); | 637 | spin_unlock(&netlbl_unlhsh_lock); |
637 | if (list_entry == NULL) | 638 | if (list_entry != NULL) |
639 | entry = netlbl_unlhsh_addr6_entry(list_entry); | ||
640 | else | ||
638 | ret_val = -ENOENT; | 641 | ret_val = -ENOENT; |
639 | entry = netlbl_unlhsh_addr6_entry(list_entry); | ||
640 | 642 | ||
641 | audit_buf = netlbl_audit_start_common(AUDIT_MAC_UNLBL_STCDEL, | 643 | audit_buf = netlbl_audit_start_common(AUDIT_MAC_UNLBL_STCDEL, |
642 | audit_info); | 644 | audit_info); |
diff --git a/net/phonet/pn_netlink.c b/net/phonet/pn_netlink.c index b1770d66bc8d..242fe8f8c322 100644 --- a/net/phonet/pn_netlink.c +++ b/net/phonet/pn_netlink.c | |||
@@ -123,6 +123,7 @@ nla_put_failure: | |||
123 | 123 | ||
124 | static int getaddr_dumpit(struct sk_buff *skb, struct netlink_callback *cb) | 124 | static int getaddr_dumpit(struct sk_buff *skb, struct netlink_callback *cb) |
125 | { | 125 | { |
126 | struct net *net = sock_net(skb->sk); | ||
126 | struct phonet_device *pnd; | 127 | struct phonet_device *pnd; |
127 | int dev_idx = 0, dev_start_idx = cb->args[0]; | 128 | int dev_idx = 0, dev_start_idx = cb->args[0]; |
128 | int addr_idx = 0, addr_start_idx = cb->args[1]; | 129 | int addr_idx = 0, addr_start_idx = cb->args[1]; |
@@ -131,6 +132,8 @@ static int getaddr_dumpit(struct sk_buff *skb, struct netlink_callback *cb) | |||
131 | list_for_each_entry(pnd, &pndevs.list, list) { | 132 | list_for_each_entry(pnd, &pndevs.list, list) { |
132 | u8 addr; | 133 | u8 addr; |
133 | 134 | ||
135 | if (!net_eq(dev_net(pnd->netdev), net)) | ||
136 | continue; | ||
134 | if (dev_idx > dev_start_idx) | 137 | if (dev_idx > dev_start_idx) |
135 | addr_start_idx = 0; | 138 | addr_start_idx = 0; |
136 | if (dev_idx++ < dev_start_idx) | 139 | if (dev_idx++ < dev_start_idx) |