net-next updates for .27
Subsystems (2)
PATCH 1/1 net-next updates for .27
Please pull from 'upstream-next' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git upstream-next
to receive the following updates:
drivers/net/3c523.c | 37 +++++++-------- drivers/net/3c527.c | 45 +++++++++---------- drivers/net/8139cp.c | 43 +++++++++--------- drivers/net/8139too.c | 53 +++++++++++----------- drivers/net/8390.h | 1 - drivers/net/acenic.c | 21 +++----- drivers/net/acenic.h | 1 - drivers/net/cpmac.c | 2 +- drivers/net/dm9000.c | 6 +- drivers/net/gianfar.c | 2 +- drivers/net/hamradio/6pack.c | 24 +++------- drivers/net/lib8390.c | 96 +++++++++++++++++++-------------------- drivers/net/natsemi.c | 4 +- drivers/net/niu.h | 2 +- drivers/net/pcmcia/3c574_cs.c | 47 +++++++++----------- drivers/net/pcmcia/3c589_cs.c | 49 +++++++++----------- drivers/net/pcmcia/axnet_cs.c | 70 ++++++++++++++--------------- drivers/net/pcnet32.c | 6 +- drivers/net/qla3xxx.c | 4 +- drivers/net/s2io.c | 4 +- drivers/net/s2io.h | 2 +- drivers/net/sb1250-mac.c | 2 +- drivers/net/sis190.c | 2 +- drivers/net/sis900.c | 2 +- drivers/net/sky2.c | 2 +- drivers/net/spider_net.c | 4 +- drivers/net/tokenring/3c359.c | 20 +++------ drivers/net/tokenring/3c359.h | 2 - drivers/net/tsi108_eth.c | 4 +- drivers/net/ucc_geth_ethtool.c | 4 +- 30 files changed, 257 insertions(+), 304 deletions(-)
Jeff Garzik (2):
drivers/net/lib8390: fix warning, trim trailing whitespace [netdrvr] Trim trailing whitespace for several drivers
Paulius Zaleckas (12):
axnet_cs: use netstats in net_device structure
lib8390: use netstats in net_device structure 8390.h: remove net_device_stats 8139cp: use netstats in net_device structure 8139too: use netstats in net_device structure 3c574_cs: use netstats in net_device structure 3c589_cs: use netstats in net_device structure 6pack: use netstats in net_device structure
acenic: use netstats in net_device structure 3c523: use netstats in net_device structure 3c527: use netstats in net_device structure 3c359: use netstats in net_device structure
drivers/net/3c523.c +18 -19
@@ -202,7 +202,6 @@ static void elmc_xmt_int(struct net_device *dev);static void elmc_rnr_int (struct net_device *dev);struct priv { -struct net_device_stats stats;unsigned long base;char *memtop;unsigned long mapped_start;/* Start of ioremap */
@@ -989,18 +988,18 @@ static void elmc_rcv_int(struct net_device *dev) skb->protocol =eth_type_trans (skb, dev);netif_rx (skb); dev->last_rx = jiffies; - p->stats.rx_packets++; - p->stats.rx_bytes += totlen; + dev->stats.rx_packets++; + dev->stats.rx_bytes += totlen; }else { - p->stats.rx_dropped++; + dev->stats.rx_dropped++; } }else {printk (KERN_WARNING "%s: received oversized frame.\n" , dev->name); - p->stats.rx_dropped++; + dev->stats.rx_dropped++; } }else {/* frame !(ok), only with 'save-bad-frames' */ printk (KERN_WARNING "%s: oops! rfd-error-status: %04x\n" , dev->name, status); - p->stats.rx_errors++; + dev->stats.rx_errors++; } p->rfd_top->status =0 ; p->rfd_top->last =RFD_SUSP ;
@@ -1018,7 +1017,7 @@ static void elmc_rnr_int(struct net_device *dev) {struct priv *p = (struct priv *) dev->priv; - p->stats.rx_errors++; + dev->stats.rx_errors++;WAIT_4_SCB_CMD ();/* wait for the last cmd */ p->scb->cmd =RUC_ABORT ;/* usually the RU is in the 'no resource'-state .. abort it now. */
@@ -1046,24 +1045,24 @@ static void elmc_xmt_int(struct net_device *dev)printk (KERN_WARNING "%s: strange .. xmit-int without a 'COMPLETE'\n" , dev->name); }if (status &STAT_OK ) { - p->stats.tx_packets++; - p->stats.collisions += (status &TCMD_MAXCOLLMASK ); + dev->stats.tx_packets++; + dev->stats.collisions += (status &TCMD_MAXCOLLMASK ); }else { - p->stats.tx_errors++; + dev->stats.tx_errors++;if (status &TCMD_LATECOLL ) {printk (KERN_WARNING "%s: late collision detected.\n" , dev->name); - p->stats.collisions++; + dev->stats.collisions++; }else if (status &TCMD_NOCARRIER ) { - p->stats.tx_carrier_errors++; + dev->stats.tx_carrier_errors++;printk (KERN_WARNING "%s: no carrier detected.\n" , dev->name); }else if (status &TCMD_LOSTCTS ) {printk (KERN_WARNING "%s: loss of CTS detected.\n" , dev->name); }else if (status &TCMD_UNDERRUN ) { - p->stats.tx_fifo_errors++; + dev->stats.tx_fifo_errors++;printk (KERN_WARNING "%s: DMA underrun detected.\n" , dev->name); }else if (status &TCMD_MAXCOLL ) {printk (KERN_WARNING "%s: Max. collisions exceeded.\n" , dev->name); - p->stats.collisions +=16 ; + dev->stats.collisions +=16 ; } }
@@ -1215,12 +1214,12 @@ static struct net_device_stats *elmc_get_stats(struct net_device *dev) ovrn = p->scb->ovrn_errs; p->scb->ovrn_errs -= ovrn; - p->stats.rx_crc_errors += crc; - p->stats.rx_fifo_errors += ovrn; - p->stats.rx_frame_errors += aln; - p->stats.rx_dropped += rsc; + dev->stats.rx_crc_errors += crc; + dev->stats.rx_fifo_errors += ovrn; + dev->stats.rx_frame_errors += aln; + dev->stats.rx_dropped += rsc; -return &p->stats; +return &dev->stats; }/********************************************************
drivers/net/3c527.c +21 -24
118 lines not on this page · raw message
drivers/net/8139cp.c +21 -22
108 lines not on this page · raw message
drivers/net/8139too.c +26 -27
154 lines not on this page · raw message
drivers/net/8390.h +0 -1
@@ -69,7 +69,6 @@ struct ei_device {unsigned char reg0;/* Register '0' in a WD8013 */ unsigned char reg5;/* Register '5' in a WD8013 */ unsigned char saved_irq;/* Original dev->irq value. */ -struct net_device_stats stat;/* The new statistics table. */ u32 *reg_offset;/* Register mapping table */ spinlock_t page_lock;/* Page register locks */ unsigned long priv;/* Private field to store bus IDs etc. */
drivers/net/acenic.c +8 -13
@@ -1457,11 +1457,6 @@ static int __devinit ace_init(struct net_device *dev)ace_set_txprd (regs, ap,0 );writel (0 , ®s->RxRetCsm); -/* -* Zero the stats before starting the interface -*/ -memset (&ap->stats,0 ,sizeof (ap->stats)); -/* * Enable DMA engine now. * If we do this sooner, Mckinley box pukes.
@@ -2041,8 +2036,8 @@ static void ace_rx_int(struct net_device *dev, u32 rxretprd, u32 rxretcsm)netif_rx (skb); dev->last_rx = jiffies; - ap->stats.rx_packets++; - ap->stats.rx_bytes += retdesc->size; + dev->stats.rx_packets++; + dev->stats.rx_bytes += retdesc->size; idx = (idx +1 ) %RX_RETURN_RING_ENTRIES ; }
@@ -2090,8 +2085,8 @@ static inline void ace_tx_int(struct net_device *dev, }if (skb) { - ap->stats.tx_packets++; - ap->stats.tx_bytes += skb->len; + dev->stats.tx_packets++; + dev->stats.tx_bytes += skb->len;dev_kfree_skb_irq (skb); info->skb =NULL ; }
@@ -2863,11 +2858,11 @@ static struct net_device_stats *ace_get_stats(struct net_device *dev)struct ace_mac_stats __iomem *mac_stats = (struct ace_mac_stats __iomem *)ap->regs->Stats; - ap->stats.rx_missed_errors =readl (&mac_stats->drop_space); - ap->stats.multicast =readl (&mac_stats->kept_mc); - ap->stats.collisions =readl (&mac_stats->coll); + dev->stats.rx_missed_errors =readl (&mac_stats->drop_space); + dev->stats.multicast =readl (&mac_stats->kept_mc); + dev->stats.collisions =readl (&mac_stats->coll); -return &ap->stats; +return &dev->stats; }
drivers/net/acenic.h +0 -1
@@ -693,7 +693,6 @@ struct ace_private __attribute__ ((aligned (SMP_CACHE_BYTES)));u32 last_tx, last_std_rx, last_mini_rx;#endif -struct net_device_stats stats;int pci_using_dac; };
drivers/net/cpmac.c +1 -1
@@ -708,7 +708,7 @@ static void cpmac_tx_timeout(struct net_device *dev)spin_unlock (&priv->lock);if (netif_msg_tx_err (priv) &&net_ratelimit ())printk (KERN_WARNING "%s: transmit timeout\n" , dev->name); -/* +/* * FIXME: waking up random queue is not the best thing to * do... on the other hand why we got here at all? */
drivers/net/dm9000.c +3 -3
@@ -696,7 +696,7 @@ dm9000_probe(struct platform_device *pdev)if (!is_valid_ether_addr (ndev->dev_addr)) {/* try reading from mac */ - + mac_src ="chip" ;for (i =0 ; i <6 ; i++) ndev->dev_addr[i] =ior (db, i+DM9000_PAR );
@@ -746,7 +746,7 @@ dm9000_open(struct net_device *dev)dev_warn (db->dev,"WARNING: no IRQ resource flags set.\n" ); irqflags =DEFAULT_TRIGGER ; } - + irqflags |=IRQF_SHARED ;if (request_irq (dev->irq, &dm9000_interrupt, irqflags, dev->name, dev))
@@ -1089,7 +1089,7 @@ static int dm9000_wait_eeprom(board_info_t *db)/* The DM9000 data sheets say we should be able to * poll the ERRE bit in EPCR to wait for the EEPROM * operation. From testing several chips, this bit -* does not seem to work. +* does not seem to work. * * We attempt to use the bit, but fall back to the * timeout (which is why we do not return an error
drivers/net/gianfar.c +1 -1
@@ -925,7 +925,7 @@ rx_irq_fail: tx_irq_fail:free_irq (priv->interruptError, dev); err_irq_fail: -err_rxalloc_fail: +err_rxalloc_fail: rx_skb_fail:free_skb_resources (priv); tx_skb_fail:
drivers/net/hamradio/6pack.c +7 -17
@@ -99,9 +99,6 @@ struct sixpack {unsigned int rx_count;unsigned int rx_count_cooked; -/* 6pack interface statistics. */ -struct net_device_stats stats; -int mtu;/* Our mtu (to spot changes!) */ int buffsize;/* Max buffers sizes */
@@ -237,7 +234,7 @@ static void sp_encaps(struct sixpack *sp, unsigned char *icp, int len)return ; out_drop: - sp->stats.tx_dropped++; + sp->dev->stats.tx_dropped++;netif_start_queue (sp->dev);if (net_ratelimit ())printk (KERN_DEBUG "%s: %s - dropped.\n" , sp->dev->name, msg);
@@ -252,7 +249,7 @@ static int sp_xmit(struct sk_buff *skb, struct net_device *dev)spin_lock_bh (&sp->lock);/* We were not busy, so we are now... :-) */ netif_stop_queue (dev); - sp->stats.tx_bytes += skb->len; + dev->stats.tx_bytes += skb->len;sp_encaps (sp, skb->data, skb->len);spin_unlock_bh (&sp->lock);
@@ -298,12 +295,6 @@ static int sp_header(struct sk_buff *skb, struct net_device *dev,return 0 ; } -static struct net_device_stats *sp_get_stats (struct net_device *dev) -{ -struct sixpack *sp =netdev_priv (dev); -return &sp->stats; -} -static int sp_set_mac_address (struct net_device *dev,void *addr) {struct sockaddr_ax25 *sa = addr;
@@ -338,7 +329,6 @@ static void sp_setup(struct net_device *dev) dev->destructor = free_netdev; dev->stop = sp_close; - dev->get_stats = sp_get_stats; dev->set_mac_address = sp_set_mac_address; dev->hard_header_len =AX25_MAX_HEADER_LEN ; dev->header_ops = &sp_header_ops;
@@ -370,7 +360,7 @@ static void sp_bump(struct sixpack *sp, char cmd) count = sp->rcount +1 ; - sp->stats.rx_bytes += count; + sp->dev->stats.rx_bytes += count;if ((skb =dev_alloc_skb (count)) ==NULL ) goto out_mem;
@@ -382,12 +372,12 @@ static void sp_bump(struct sixpack *sp, char cmd) skb->protocol =ax25_type_trans (skb, sp->dev);netif_rx (skb); sp->dev->last_rx = jiffies; - sp->stats.rx_packets++; + sp->dev->stats.rx_packets++;return ; out_mem: - sp->stats.rx_dropped++; + sp->dev->stats.rx_dropped++; }
@@ -436,7 +426,7 @@ static void sixpack_write_wakeup(struct tty_struct *tty)if (sp->xleft <=0 ) {/* Now serial buffer is almost free & we can start * transmission of another packet */ - sp->stats.tx_packets++; + sp->dev->stats.tx_packets++;clear_bit (TTY_DO_WRITE_WAKEUP , &tty->flags); sp->tx_enable =0 ;netif_wake_queue (sp->dev);
@@ -484,7 +474,7 @@ static void sixpack_receive_buf(struct tty_struct *tty, count--;if (fp && *fp++) {if (!test_and_set_bit (SIXPF_ERROR , &sp->flags)) - sp->stats.rx_errors++; + sp->dev->stats.rx_errors++;continue ; } }
drivers/net/lib8390.c +47 -49
239 lines not on this page · raw message
drivers/net/natsemi.c +2 -2
@@ -664,7 +664,7 @@ static ssize_t natsemi_show_##_name(struct device *dev, \NATSEMI_ATTR (dspcfg_workaround);static ssize_t natsemi_show_dspcfg_workaround (struct device *dev, -struct device_attribute *attr, +struct device_attribute *attr,char *buf) {struct netdev_private *np =netdev_priv (to_net_dev (dev));
@@ -687,7 +687,7 @@ static ssize_t natsemi_set_dspcfg_workaround(struct device *dev, || !strncmp("0", buf, count - 1)) new_setting =0 ; else - return count; + return count;spin_lock_irqsave (&np->lock, flags);
drivers/net/niu.h +1 -1
@@ -281,7 +281,7 @@#define XMAC_ADDR1 0x000a8UL#define XMAC_ADDR1_ADDR1 0x000000000000ffffULL -#define XMAC_ADDR2 0x000b0UL +#define XMAC_ADDR2 0x000b0UL#define XMAC_ADDR2_ADDR2 0x000000000000ffffULL#define XMAC_ADDR_CMPEN 0x00208UL
drivers/net/pcmcia/3c574_cs.c +21 -26
123 lines not on this page · raw message
drivers/net/pcmcia/3c589_cs.c +22 -27
136 lines not on this page · raw message
drivers/net/pcmcia/axnet_cs.c +34 -36
178 lines not on this page · raw message
drivers/net/pcnet32.c +3 -3
@@ -2006,7 +2006,7 @@ pcnet32_probe1(unsigned long ioaddr, int shared, struct pci_dev *pdev) err_free_ring:pcnet32_free_ring (dev); err_free_consistent: -pci_free_consistent (lp->pci_dev,sizeof (*lp->init_block), +pci_free_consistent (lp->pci_dev,sizeof (*lp->init_block), lp->init_block, lp->init_dma_addr); err_free_netdev:free_netdev (dev);
@@ -3006,7 +3006,7 @@ static void __devexit pcnet32_remove_one(struct pci_dev *pdev)unregister_netdev (dev);pcnet32_free_ring (dev);release_region (dev->base_addr,PCNET32_TOTAL_SIZE ); -pci_free_consistent (lp->pci_dev,sizeof (*lp->init_block), +pci_free_consistent (lp->pci_dev,sizeof (*lp->init_block), lp->init_block, lp->init_dma_addr);free_netdev (dev);pci_disable_device (pdev);
@@ -3089,7 +3089,7 @@ static void __exit pcnet32_cleanup_module(void)unregister_netdev (pcnet32_dev);pcnet32_free_ring (pcnet32_dev);release_region (pcnet32_dev->base_addr,PCNET32_TOTAL_SIZE ); -pci_free_consistent (lp->pci_dev,sizeof (*lp->init_block), +pci_free_consistent (lp->pci_dev,sizeof (*lp->init_block), lp->init_block, lp->init_dma_addr);free_netdev (pcnet32_dev); pcnet32_dev = next_dev;
drivers/net/qla3xxx.c +2 -2
@@ -1437,9 +1437,9 @@ static void ql_phy_start_neg_ex(struct ql3_adapter *qdev) reg &= ~PHY_GIG_ALL_PARAMS ;if (portConfiguration &PORT_CONFIG_1000MB_SPEED ) { -if (portConfiguration &PORT_CONFIG_FULL_DUPLEX_ENABLED ) +if (portConfiguration &PORT_CONFIG_FULL_DUPLEX_ENABLED ) reg |=PHY_GIG_ADV_1000F ; -else +else reg |=PHY_GIG_ADV_1000H ; }
drivers/net/s2io.c +2 -2
@@ -2547,7 +2547,7 @@ static int fill_rx_buffers(struct ring_info *ring)if (block_no) rxd_index += (block_no * ring->rxd_count); -if ((block_no == block_no1) && +if ((block_no == block_no1) && (off == ring->rx_curr_get_info.offset) && (rxdp->Host_Control)) { DBG_PRINT(INTR_DBG, "%s: Get and Put",
@@ -2593,7 +2593,7 @@ static int fill_rx_buffers(struct ring_info *ring) first_rxdp->Control_1 |=RXD_OWN_XENA ; } stats->mem_alloc_fail_cnt++; - +return -ENOMEM ; } stats->mem_allocated += skb->truesize;
drivers/net/s2io.h +1 -1
@@ -747,7 +747,7 @@ struct ring_info {/* interface MTU value */ unsigned mtu; - +/* Buffer Address store. */ struct buffAdd **ba;
drivers/net/sb1250-mac.c +1 -1
@@ -1063,7 +1063,7 @@ static void sbmac_netpoll(struct net_device *netdev) ((M_MAC_INT_EOP_COUNT |M_MAC_INT_EOP_TIMER ) <<S_MAC_RX_CH0 ), sc->sbm_imr);#else -__raw_writeq ((M_MAC_INT_CHANNEL <<S_MAC_TX_CH0 ) | +__raw_writeq ((M_MAC_INT_CHANNEL <<S_MAC_TX_CH0 ) | (M_MAC_INT_CHANNEL <<S_MAC_RX_CH0 ), sc->sbm_imr);#endif }
drivers/net/sis190.c +1 -1
@@ -1656,7 +1656,7 @@ static inline void sis190_init_rxfilter(struct net_device *dev)SIS_PCI_COMMIT (); } -static int __devinit sis190_get_mac_addr (struct pci_dev *pdev, +static int __devinit sis190_get_mac_addr (struct pci_dev *pdev,struct net_device *dev) {int rc;
drivers/net/sis900.c +1 -1
@@ -1766,7 +1766,7 @@ static int sis900_rx(struct net_device *net_dev) skb = sis_priv->rx_skbuff[entry]; net_dev->stats.rx_dropped++; goto refill_rx_ring; - } + }/* This situation should never happen, but due to some unknow bugs, it is possible that
drivers/net/sky2.c +1 -1
@@ -3369,7 +3369,7 @@ static void sky2_led(struct sky2_port *sky2, enum led_mode mode)gm_phy_write (hw, port,PHY_MARV_EXT_ADR , pg); }else - gm_phy_write(hw, port, PHY_MARV_LED_OVER, + gm_phy_write(hw, port, PHY_MARV_LED_OVER, PHY_M_LED_MO_DUP(mode) | PHY_M_LED_MO_10(mode) | PHY_M_LED_MO_100(mode) |
drivers/net/spider_net.c +2 -2
@@ -1704,7 +1704,7 @@ spider_net_poll_controller(struct net_device *netdev)* * spider_net_enable_interrupt enables several interrupts */ -static void +static void spider_net_enable_interrupts (struct spider_net_card *card) { spider_net_write_reg(card, SPIDER_NET_GHIINT0MSK,
@@ -1721,7 +1721,7 @@ spider_net_enable_interrupts(struct spider_net_card *card)* * spider_net_disable_interrupts disables all the interrupts */ -static void +static void spider_net_disable_interrupts (struct spider_net_card *card) {spider_net_write_reg (card,SPIDER_NET_GHIINT0MSK ,0 );
drivers/net/tokenring/3c359.c +6 -14
@@ -132,7 +132,6 @@ static void xl_dn_comp(struct net_device *dev);static int xl_close (struct net_device *dev);static void xl_set_rx_mode (struct net_device *dev);static irqreturn_t xl_interrupt (int irq,void *dev_id); -static struct net_device_stats *xl_get_stats (struct net_device *dev);static int xl_set_mac_address (struct net_device *dev,void *addr) ;static void xl_arb_cmd (struct net_device *dev);static void xl_asb_cmd (struct net_device *dev) ;
@@ -343,7 +342,6 @@ static int __devinit xl_probe(struct pci_dev *pdev, dev->stop=&xl_close; dev->do_ioctl=NULL ; dev->set_multicast_list=&xl_set_rx_mode; - dev->get_stats=&xl_get_stats ; dev->set_mac_address=&xl_set_mac_address ;SET_NETDEV_DEV (dev, &pdev->dev);
@@ -921,7 +919,7 @@ static void xl_rx(struct net_device *dev)adv_rx_ring (dev) ;adv_rx_ring (dev) ;/* One more time just for luck :) */ - xl_priv->xl_stats.rx_dropped++ ; + dev->stats.rx_dropped++ ;writel (ACK_INTERRUPT |UPCOMPACK |LATCH_ACK , xl_mmio +MMIO_COMMAND ) ;return ;
@@ -957,7 +955,7 @@ static void xl_rx(struct net_device *dev)if (skb==NULL ) {/* Still need to fix the rx ring */ printk (KERN_WARNING "%s: dev_alloc_skb failed in rx, single buffer \n" ,dev->name) ;adv_rx_ring (dev) ; - xl_priv->xl_stats.rx_dropped++ ; + dev->stats.rx_dropped++ ;writel (ACK_INTERRUPT |UPCOMPACK |LATCH_ACK , xl_mmio +MMIO_COMMAND ) ;return ; }
@@ -971,8 +969,8 @@ static void xl_rx(struct net_device *dev) xl_priv->xl_rx_ring[xl_priv->rx_ring_tail].upfragaddr =cpu_to_le32 (pci_map_single (xl_priv->pdev,skb->data,xl_priv->pkt_buf_sz,PCI_DMA_FROMDEVICE )); xl_priv->xl_rx_ring[xl_priv->rx_ring_tail].upfraglen =cpu_to_le32 (xl_priv->pkt_buf_sz) |RXUPLASTFRAG ;adv_rx_ring (dev) ; - xl_priv->xl_stats.rx_packets++ ; - xl_priv->xl_stats.rx_bytes += frame_length ; + dev->stats.rx_packets++ ; + dev->stats.rx_bytes += frame_length ;netif_rx (skb2) ; }/* if multiple buffers */
@@ -1182,8 +1180,8 @@ static int xl_xmit(struct sk_buff *skb, struct net_device *dev) txd->buffer =cpu_to_le32 (pci_map_single (xl_priv->pdev, skb->data, skb->len,PCI_DMA_TODEVICE )); txd->buffer_length =cpu_to_le32 (skb->len) |TXDNFRAGLAST ; xl_priv->tx_ring_skb[tx_head] = skb ; - xl_priv->xl_stats.tx_packets++ ; - xl_priv->xl_stats.tx_bytes += skb->len ; + dev->stats.tx_packets++ ; + dev->stats.tx_bytes += skb->len ;/* * Set the nextptr of the previous descriptor equal to this descriptor, add XL_TX_RING_SIZE -1
@@ -1463,12 +1461,6 @@ static void xl_srb_bh(struct net_device *dev)return ; } -static struct net_device_stats *xl_get_stats (struct net_device *dev) -{ -struct xl_private *xl_priv =netdev_priv (dev); -return (struct net_device_stats *) &xl_priv->xl_stats; -} -static int xl_set_mac_address (struct net_device *dev,void *addr) {struct sockaddr *saddr = addr ;
drivers/net/tokenring/3c359.h +0 -2
@@ -273,8 +273,6 @@ struct xl_private {struct wait_queue *srb_wait;volatile int asb_queued; -struct net_device_stats xl_stats ; -u16 mac_buffer ;u16 xl_lan_status ;u8 xl_ring_speed ;
drivers/net/tsi108_eth.c +2 -2
@@ -1526,7 +1526,7 @@ static int tsi108_get_settings(struct net_device *dev, struct ethtool_cmd *cmd)struct tsi108_prv_data *data =netdev_priv (dev);unsigned long flags;int rc; - +spin_lock_irqsave (&data->txlock, flags); rc =mii_ethtool_gset (&data->mii_if, cmd);spin_unlock_irqrestore (&data->txlock, flags);
@@ -1543,7 +1543,7 @@ static int tsi108_set_settings(struct net_device *dev, struct ethtool_cmd *cmd)spin_lock_irqsave (&data->txlock, flags); rc =mii_ethtool_sset (&data->mii_if, cmd);spin_unlock_irqrestore (&data->txlock, flags); - +return rc; }
drivers/net/ucc_geth_ethtool.c +2 -2
@@ -5,7 +5,7 @@* * Author: Li Yang <[email protected]> * -* Limitation: +* Limitation: * Can only get/set setttings of the first queue. * Need to re-open the interface manually after changing some paramters. *
@@ -165,7 +165,7 @@ uec_set_pauseparam(struct net_device *netdev, ugeth->ug_info->receiveFlowControl = pause->rx_pause; ugeth->ug_info->transmitFlowControl = pause->tx_pause; - +if (ugeth->phydev->autoneg) {if (netif_running (netdev)) {/* FIXME: automatically restart */
David Miller
maintainerFrom: Jeff Garzik <[email protected]>
Date: Tue, 13 May 2008 01:57:01 -0400
Quoted 3 lines
Please pull from 'upstream-next' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git upstream-next
Pulled and pushed back out to net-next-2.6, thanks Jeff!