diff options
Diffstat (limited to 'drivers/net/gianfar.c')
-rw-r--r-- | drivers/net/gianfar.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c index 218d31764c5..280b114e253 100644 --- a/drivers/net/gianfar.c +++ b/drivers/net/gianfar.c | |||
@@ -64,7 +64,6 @@ | |||
64 | * The driver then cleans up the buffer. | 64 | * The driver then cleans up the buffer. |
65 | */ | 65 | */ |
66 | 66 | ||
67 | #include <linux/config.h> | ||
68 | #include <linux/kernel.h> | 67 | #include <linux/kernel.h> |
69 | #include <linux/sched.h> | 68 | #include <linux/sched.h> |
70 | #include <linux/string.h> | 69 | #include <linux/string.h> |
@@ -144,7 +143,7 @@ void gfar_start(struct net_device *dev); | |||
144 | static void gfar_clear_exact_match(struct net_device *dev); | 143 | static void gfar_clear_exact_match(struct net_device *dev); |
145 | static void gfar_set_mac_for_addr(struct net_device *dev, int num, u8 *addr); | 144 | static void gfar_set_mac_for_addr(struct net_device *dev, int num, u8 *addr); |
146 | 145 | ||
147 | extern struct ethtool_ops gfar_ethtool_ops; | 146 | extern const struct ethtool_ops gfar_ethtool_ops; |
148 | 147 | ||
149 | MODULE_AUTHOR("Freescale Semiconductor, Inc"); | 148 | MODULE_AUTHOR("Freescale Semiconductor, Inc"); |
150 | MODULE_DESCRIPTION("Gianfar Ethernet Driver"); | 149 | MODULE_DESCRIPTION("Gianfar Ethernet Driver"); |
@@ -948,7 +947,7 @@ static int gfar_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
948 | 947 | ||
949 | /* Set up checksumming */ | 948 | /* Set up checksumming */ |
950 | if (likely((dev->features & NETIF_F_IP_CSUM) | 949 | if (likely((dev->features & NETIF_F_IP_CSUM) |
951 | && (CHECKSUM_HW == skb->ip_summed))) { | 950 | && (CHECKSUM_PARTIAL == skb->ip_summed))) { |
952 | fcb = gfar_add_fcb(skb, txbdp); | 951 | fcb = gfar_add_fcb(skb, txbdp); |
953 | status |= TXBD_TOE; | 952 | status |= TXBD_TOE; |
954 | gfar_tx_checksum(skb, fcb); | 953 | gfar_tx_checksum(skb, fcb); |
@@ -1064,7 +1063,7 @@ static void gfar_vlan_rx_register(struct net_device *dev, | |||
1064 | tempval |= TCTRL_VLINS; | 1063 | tempval |= TCTRL_VLINS; |
1065 | 1064 | ||
1066 | gfar_write(&priv->regs->tctrl, tempval); | 1065 | gfar_write(&priv->regs->tctrl, tempval); |
1067 | 1066 | ||
1068 | /* Enable VLAN tag extraction */ | 1067 | /* Enable VLAN tag extraction */ |
1069 | tempval = gfar_read(&priv->regs->rctrl); | 1068 | tempval = gfar_read(&priv->regs->rctrl); |
1070 | tempval |= RCTRL_VLEX; | 1069 | tempval |= RCTRL_VLEX; |
@@ -1709,9 +1708,6 @@ static void gfar_set_multi(struct net_device *dev) | |||
1709 | u32 tempval; | 1708 | u32 tempval; |
1710 | 1709 | ||
1711 | if(dev->flags & IFF_PROMISC) { | 1710 | if(dev->flags & IFF_PROMISC) { |
1712 | if (netif_msg_drv(priv)) | ||
1713 | printk(KERN_INFO "%s: Entering promiscuous mode.\n", | ||
1714 | dev->name); | ||
1715 | /* Set RCTRL to PROM */ | 1711 | /* Set RCTRL to PROM */ |
1716 | tempval = gfar_read(®s->rctrl); | 1712 | tempval = gfar_read(®s->rctrl); |
1717 | tempval |= RCTRL_PROM; | 1713 | tempval |= RCTRL_PROM; |
@@ -1722,7 +1718,7 @@ static void gfar_set_multi(struct net_device *dev) | |||
1722 | tempval &= ~(RCTRL_PROM); | 1718 | tempval &= ~(RCTRL_PROM); |
1723 | gfar_write(®s->rctrl, tempval); | 1719 | gfar_write(®s->rctrl, tempval); |
1724 | } | 1720 | } |
1725 | 1721 | ||
1726 | if(dev->flags & IFF_ALLMULTI) { | 1722 | if(dev->flags & IFF_ALLMULTI) { |
1727 | /* Set the hash to rx all multicast frames */ | 1723 | /* Set the hash to rx all multicast frames */ |
1728 | gfar_write(®s->igaddr0, 0xffffffff); | 1724 | gfar_write(®s->igaddr0, 0xffffffff); |
@@ -1958,7 +1954,7 @@ static int __init gfar_init(void) | |||
1958 | 1954 | ||
1959 | if (err) | 1955 | if (err) |
1960 | gfar_mdio_exit(); | 1956 | gfar_mdio_exit(); |
1961 | 1957 | ||
1962 | return err; | 1958 | return err; |
1963 | } | 1959 | } |
1964 | 1960 | ||