aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/packetengines/Kconfig1
-rw-r--r--drivers/net/ethernet/qlogic/qla3xxx.c5
-rw-r--r--drivers/net/ethernet/realtek/r8169.c8
-rw-r--r--drivers/net/vmxnet3/vmxnet3_drv.c7
-rw-r--r--drivers/net/vmxnet3/vmxnet3_int.h4
5 files changed, 14 insertions, 11 deletions
diff --git a/drivers/net/ethernet/packetengines/Kconfig b/drivers/net/ethernet/packetengines/Kconfig
index b97132d9dff0..8f29feb35548 100644
--- a/drivers/net/ethernet/packetengines/Kconfig
+++ b/drivers/net/ethernet/packetengines/Kconfig
@@ -4,6 +4,7 @@
4 4
5config NET_PACKET_ENGINE 5config NET_PACKET_ENGINE
6 bool "Packet Engine devices" 6 bool "Packet Engine devices"
7 default y
7 depends on PCI 8 depends on PCI
8 ---help--- 9 ---help---
9 If you have a network (Ethernet) card belonging to this class, say Y 10 If you have a network (Ethernet) card belonging to this class, say Y
diff --git a/drivers/net/ethernet/qlogic/qla3xxx.c b/drivers/net/ethernet/qlogic/qla3xxx.c
index d49f6dac51fd..8da3e41058ca 100644
--- a/drivers/net/ethernet/qlogic/qla3xxx.c
+++ b/drivers/net/ethernet/qlogic/qla3xxx.c
@@ -3017,7 +3017,6 @@ static int ql_adapter_initialize(struct ql3_adapter *qdev)
3017 (void __iomem *)port_regs; 3017 (void __iomem *)port_regs;
3018 u32 delay = 10; 3018 u32 delay = 10;
3019 int status = 0; 3019 int status = 0;
3020 unsigned long hw_flags = 0;
3021 3020
3022 if (ql_mii_setup(qdev)) 3021 if (ql_mii_setup(qdev))
3023 return -1; 3022 return -1;
@@ -3228,9 +3227,9 @@ static int ql_adapter_initialize(struct ql3_adapter *qdev)
3228 value = ql_read_page0_reg(qdev, &port_regs->portStatus); 3227 value = ql_read_page0_reg(qdev, &port_regs->portStatus);
3229 if (value & PORT_STATUS_IC) 3228 if (value & PORT_STATUS_IC)
3230 break; 3229 break;
3231 spin_unlock_irqrestore(&qdev->hw_lock, hw_flags); 3230 spin_unlock_irq(&qdev->hw_lock);
3232 msleep(500); 3231 msleep(500);
3233 spin_lock_irqsave(&qdev->hw_lock, hw_flags); 3232 spin_lock_irq(&qdev->hw_lock);
3234 } while (--delay); 3233 } while (--delay);
3235 3234
3236 if (delay == 0) { 3235 if (delay == 0) {
diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
index 515a7edb605c..817302c86069 100644
--- a/drivers/net/ethernet/realtek/r8169.c
+++ b/drivers/net/ethernet/realtek/r8169.c
@@ -3854,12 +3854,20 @@ static void rtl8169_init_ring_indexes(struct rtl8169_private *tp)
3854 3854
3855static void rtl_hw_jumbo_enable(struct rtl8169_private *tp) 3855static void rtl_hw_jumbo_enable(struct rtl8169_private *tp)
3856{ 3856{
3857 void __iomem *ioaddr = tp->mmio_addr;
3858
3859 RTL_W8(Cfg9346, Cfg9346_Unlock);
3857 rtl_generic_op(tp, tp->jumbo_ops.enable); 3860 rtl_generic_op(tp, tp->jumbo_ops.enable);
3861 RTL_W8(Cfg9346, Cfg9346_Lock);
3858} 3862}
3859 3863
3860static void rtl_hw_jumbo_disable(struct rtl8169_private *tp) 3864static void rtl_hw_jumbo_disable(struct rtl8169_private *tp)
3861{ 3865{
3866 void __iomem *ioaddr = tp->mmio_addr;
3867
3868 RTL_W8(Cfg9346, Cfg9346_Unlock);
3862 rtl_generic_op(tp, tp->jumbo_ops.disable); 3869 rtl_generic_op(tp, tp->jumbo_ops.disable);
3870 RTL_W8(Cfg9346, Cfg9346_Lock);
3863} 3871}
3864 3872
3865static void r8168c_hw_jumbo_enable(struct rtl8169_private *tp) 3873static void r8168c_hw_jumbo_enable(struct rtl8169_private *tp)
diff --git a/drivers/net/vmxnet3/vmxnet3_drv.c b/drivers/net/vmxnet3/vmxnet3_drv.c
index a9684a53af19..3f04ba0a5454 100644
--- a/drivers/net/vmxnet3/vmxnet3_drv.c
+++ b/drivers/net/vmxnet3/vmxnet3_drv.c
@@ -825,12 +825,7 @@ vmxnet3_parse_and_copy_hdr(struct sk_buff *skb, struct vmxnet3_tx_queue *tq,
825 if (iph->protocol == IPPROTO_TCP) 825 if (iph->protocol == IPPROTO_TCP)
826 ctx->l4_hdr_size = tcp_hdrlen(skb); 826 ctx->l4_hdr_size = tcp_hdrlen(skb);
827 else if (iph->protocol == IPPROTO_UDP) 827 else if (iph->protocol == IPPROTO_UDP)
828 /* 828 ctx->l4_hdr_size = sizeof(struct udphdr);
829 * Use tcp header size so that bytes to
830 * be copied are more than required by
831 * the device.
832 */
833 ctx->l4_hdr_size = sizeof(struct tcphdr);
834 else 829 else
835 ctx->l4_hdr_size = 0; 830 ctx->l4_hdr_size = 0;
836 } else { 831 } else {
diff --git a/drivers/net/vmxnet3/vmxnet3_int.h b/drivers/net/vmxnet3/vmxnet3_int.h
index ed54797db191..fc46a81ad538 100644
--- a/drivers/net/vmxnet3/vmxnet3_int.h
+++ b/drivers/net/vmxnet3/vmxnet3_int.h
@@ -70,10 +70,10 @@
70/* 70/*
71 * Version numbers 71 * Version numbers
72 */ 72 */
73#define VMXNET3_DRIVER_VERSION_STRING "1.1.18.0-k" 73#define VMXNET3_DRIVER_VERSION_STRING "1.1.29.0-k"
74 74
75/* a 32-bit int, each byte encode a verion number in VMXNET3_DRIVER_VERSION */ 75/* a 32-bit int, each byte encode a verion number in VMXNET3_DRIVER_VERSION */
76#define VMXNET3_DRIVER_VERSION_NUM 0x01011200 76#define VMXNET3_DRIVER_VERSION_NUM 0x01011D00
77 77
78#if defined(CONFIG_PCI_MSI) 78#if defined(CONFIG_PCI_MSI)
79 /* RSS only makes sense if MSI-X is supported. */ 79 /* RSS only makes sense if MSI-X is supported. */