mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
This commit is contained in:
commit
c337ffb68e
13 changed files with 70 additions and 45 deletions
|
|
@ -425,11 +425,6 @@ static irqreturn_t ariadne_interrupt(int irq, void *data)
|
|||
int csr0, boguscnt;
|
||||
int handled = 0;
|
||||
|
||||
if (dev == NULL) {
|
||||
printk(KERN_WARNING "ariadne_interrupt(): irq for unknown device.\n");
|
||||
return IRQ_NONE;
|
||||
}
|
||||
|
||||
lance->RAP = CSR0; /* PCnet-ISA Controller Status */
|
||||
|
||||
if (!(lance->RDP & INTR)) /* Check if any interrupt has been */
|
||||
|
|
|
|||
|
|
@ -4229,7 +4229,7 @@ void bnx2x_update_coalesce(struct bnx2x *bp)
|
|||
|
||||
for_each_eth_queue(bp, i)
|
||||
bnx2x_update_coalesce_sb(bp, bp->fp[i].fw_sb_id,
|
||||
bp->rx_ticks, bp->tx_ticks);
|
||||
bp->tx_ticks, bp->rx_ticks);
|
||||
}
|
||||
|
||||
static void bnx2x_init_sp_ring(struct bnx2x *bp)
|
||||
|
|
|
|||
|
|
@ -659,7 +659,7 @@ failed:
|
|||
static void unlink_all_urbs(struct esd_usb2 *dev)
|
||||
{
|
||||
struct esd_usb2_net_priv *priv;
|
||||
int i;
|
||||
int i, j;
|
||||
|
||||
usb_kill_anchored_urbs(&dev->rx_submitted);
|
||||
for (i = 0; i < dev->net_count; i++) {
|
||||
|
|
@ -668,8 +668,8 @@ static void unlink_all_urbs(struct esd_usb2 *dev)
|
|||
usb_kill_anchored_urbs(&priv->tx_submitted);
|
||||
atomic_set(&priv->active_tx_jobs, 0);
|
||||
|
||||
for (i = 0; i < MAX_TX_URBS; i++)
|
||||
priv->tx_contexts[i].echo_index = MAX_TX_URBS;
|
||||
for (j = 0; j < MAX_TX_URBS; j++)
|
||||
priv->tx_contexts[j].echo_index = MAX_TX_URBS;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1730,7 +1730,7 @@ static struct net_device_stats *emac_dev_getnetstats(struct net_device *ndev)
|
|||
emac_read(EMAC_TXCARRIERSENSE);
|
||||
emac_write(EMAC_TXCARRIERSENSE, stats_clear_mask);
|
||||
|
||||
ndev->stats.tx_fifo_errors = emac_read(EMAC_TXUNDERRUN);
|
||||
ndev->stats.tx_fifo_errors += emac_read(EMAC_TXUNDERRUN);
|
||||
emac_write(EMAC_TXUNDERRUN, stats_clear_mask);
|
||||
|
||||
return &ndev->stats;
|
||||
|
|
|
|||
|
|
@ -219,9 +219,11 @@ static int macvlan_queue_xmit(struct sk_buff *skb, struct net_device *dev)
|
|||
const struct macvlan_dev *vlan = netdev_priv(dev);
|
||||
const struct macvlan_port *port = vlan->port;
|
||||
const struct macvlan_dev *dest;
|
||||
__u8 ip_summed = skb->ip_summed;
|
||||
|
||||
if (vlan->mode == MACVLAN_MODE_BRIDGE) {
|
||||
const struct ethhdr *eth = (void *)skb->data;
|
||||
skb->ip_summed = CHECKSUM_UNNECESSARY;
|
||||
|
||||
/* send to other bridge ports directly */
|
||||
if (is_multicast_ether_addr(eth->h_dest)) {
|
||||
|
|
@ -241,6 +243,7 @@ static int macvlan_queue_xmit(struct sk_buff *skb, struct net_device *dev)
|
|||
}
|
||||
|
||||
xmit_world:
|
||||
skb->ip_summed = ip_summed;
|
||||
skb_set_dev(skb, vlan->lowerdev);
|
||||
return dev_queue_xmit(skb);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -791,8 +791,8 @@ static int smsc911x_mii_probe(struct net_device *dev)
|
|||
return -ENODEV;
|
||||
}
|
||||
|
||||
SMSC_TRACE(PROBE, "PHY %d: addr %d, phy_id 0x%08X",
|
||||
phy_addr, phydev->addr, phydev->phy_id);
|
||||
SMSC_TRACE(PROBE, "PHY: addr %d, phy_id 0x%08X",
|
||||
phydev->addr, phydev->phy_id);
|
||||
|
||||
ret = phy_connect_direct(dev, phydev,
|
||||
&smsc911x_phy_adjust_link, 0,
|
||||
|
|
|
|||
|
|
@ -328,13 +328,13 @@ int usbpn_probe(struct usb_interface *intf, const struct usb_device_id *id)
|
|||
{
|
||||
static const char ifname[] = "usbpn%d";
|
||||
const struct usb_cdc_union_desc *union_header = NULL;
|
||||
const struct usb_cdc_header_desc *phonet_header = NULL;
|
||||
const struct usb_host_interface *data_desc;
|
||||
struct usb_interface *data_intf;
|
||||
struct usb_device *usbdev = interface_to_usbdev(intf);
|
||||
struct net_device *dev;
|
||||
struct usbpn_dev *pnd;
|
||||
u8 *data;
|
||||
int phonet = 0;
|
||||
int len, err;
|
||||
|
||||
data = intf->altsetting->extra;
|
||||
|
|
@ -355,10 +355,7 @@ int usbpn_probe(struct usb_interface *intf, const struct usb_device_id *id)
|
|||
(struct usb_cdc_union_desc *)data;
|
||||
break;
|
||||
case 0xAB:
|
||||
if (phonet_header || dlen < 5)
|
||||
break;
|
||||
phonet_header =
|
||||
(struct usb_cdc_header_desc *)data;
|
||||
phonet = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -366,7 +363,7 @@ int usbpn_probe(struct usb_interface *intf, const struct usb_device_id *id)
|
|||
len -= dlen;
|
||||
}
|
||||
|
||||
if (!union_header || !phonet_header)
|
||||
if (!union_header || !phonet)
|
||||
return -EINVAL;
|
||||
|
||||
data_intf = usb_ifnum_to_if(usbdev, union_header->bSlaveInterface0);
|
||||
|
|
@ -392,7 +389,6 @@ int usbpn_probe(struct usb_interface *intf, const struct usb_device_id *id)
|
|||
|
||||
pnd = netdev_priv(dev);
|
||||
SET_NETDEV_DEV(dev, &intf->dev);
|
||||
netif_stop_queue(dev);
|
||||
|
||||
pnd->dev = dev;
|
||||
pnd->usb = usb_get_dev(usbdev);
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ struct netfront_info {
|
|||
struct mmu_update rx_mmu[NET_RX_RING_SIZE];
|
||||
|
||||
/* Statistics */
|
||||
int rx_gso_checksum_fixup;
|
||||
unsigned long rx_gso_checksum_fixup;
|
||||
};
|
||||
|
||||
struct netfront_rx_info {
|
||||
|
|
@ -1692,7 +1692,7 @@ static void xennet_get_ethtool_stats(struct net_device *dev,
|
|||
int i;
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(xennet_stats); i++)
|
||||
data[i] = *(int *)(np + xennet_stats[i].offset);
|
||||
data[i] = *(unsigned long *)(np + xennet_stats[i].offset);
|
||||
}
|
||||
|
||||
static void xennet_get_strings(struct net_device *dev, u32 stringset, u8 * data)
|
||||
|
|
|
|||
Loading…
Reference in a new issue