Skip to content

Commit 6b08f51

Browse files
committed
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: drivers/net/ixgbe/ixgbe_ethtool.c With merge conflict help from Stephen Rothwell. Signed-off-by: David S. Miller <davem@davemloft.net>
2 parents 0b5c25e + 28c8e47 commit 6b08f51

File tree

5 files changed

+21
-39
lines changed

5 files changed

+21
-39
lines changed

drivers/net/e1000/e1000_main.c

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,15 +1047,14 @@ static int __devinit e1000_probe(struct pci_dev *pdev,
10471047
goto err_register;
10481048

10491049
/* print bus type/speed/width info */
1050-
e_info("(PCI%s:%s:%s) ",
1051-
((hw->bus_type == e1000_bus_type_pcix) ? "-X" : ""),
1052-
((hw->bus_speed == e1000_bus_speed_133) ? "133MHz" :
1053-
(hw->bus_speed == e1000_bus_speed_120) ? "120MHz" :
1054-
(hw->bus_speed == e1000_bus_speed_100) ? "100MHz" :
1055-
(hw->bus_speed == e1000_bus_speed_66) ? "66MHz" : "33MHz"),
1056-
((hw->bus_width == e1000_bus_width_64) ? "64-bit" : "32-bit"));
1057-
1058-
e_info("%pM\n", netdev->dev_addr);
1050+
e_info("(PCI%s:%dMHz:%d-bit) %pM\n",
1051+
((hw->bus_type == e1000_bus_type_pcix) ? "-X" : ""),
1052+
((hw->bus_speed == e1000_bus_speed_133) ? 133 :
1053+
(hw->bus_speed == e1000_bus_speed_120) ? 120 :
1054+
(hw->bus_speed == e1000_bus_speed_100) ? 100 :
1055+
(hw->bus_speed == e1000_bus_speed_66) ? 66 : 33),
1056+
((hw->bus_width == e1000_bus_width_64) ? 64 : 32),
1057+
netdev->dev_addr);
10591058

10601059
/* carrier off reporting is important to ethtool even BEFORE open */
10611060
netif_carrier_off(netdev);

drivers/net/enic/vnic_dev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ int vnic_dev_init_prov(struct vnic_dev *vdev, u8 *buf, u32 len)
709709
{
710710
u64 a0, a1 = len;
711711
int wait = 1000;
712-
u64 prov_pa;
712+
dma_addr_t prov_pa;
713713
void *prov_buf;
714714
int ret;
715715

drivers/net/ixgbe/ixgbe_ethtool.c

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2075,25 +2075,6 @@ static int ixgbe_get_coalesce(struct net_device *netdev,
20752075
return 0;
20762076
}
20772077

2078-
/*
2079-
* this function must be called before setting the new value of
2080-
* rx_itr_setting
2081-
*/
2082-
static bool ixgbe_reenable_rsc(struct ixgbe_adapter *adapter,
2083-
struct ethtool_coalesce *ec)
2084-
{
2085-
/* check the old value and enable RSC if necessary */
2086-
if ((adapter->rx_itr_setting == 0) &&
2087-
(adapter->flags2 & IXGBE_FLAG2_RSC_CAPABLE)) {
2088-
adapter->flags2 |= IXGBE_FLAG2_RSC_ENABLED;
2089-
adapter->netdev->features |= NETIF_F_LRO;
2090-
e_info("rx-usecs set to %d, re-enabling RSC\n",
2091-
ec->rx_coalesce_usecs);
2092-
return true;
2093-
}
2094-
return false;
2095-
}
2096-
20972078
static int ixgbe_set_coalesce(struct net_device *netdev,
20982079
struct ethtool_coalesce *ec)
20992080
{
@@ -2122,9 +2103,6 @@ static int ixgbe_set_coalesce(struct net_device *netdev,
21222103
(1000000/ec->rx_coalesce_usecs < IXGBE_MIN_INT_RATE))
21232104
return -EINVAL;
21242105

2125-
/* check the old value and enable RSC if necessary */
2126-
need_reset = ixgbe_reenable_rsc(adapter, ec);
2127-
21282106
/* store the value in ints/second */
21292107
adapter->rx_eitr_param = 1000000/ec->rx_coalesce_usecs;
21302108

@@ -2133,9 +2111,6 @@ static int ixgbe_set_coalesce(struct net_device *netdev,
21332111
/* clear the lower bit as its used for dynamic state */
21342112
adapter->rx_itr_setting &= ~1;
21352113
} else if (ec->rx_coalesce_usecs == 1) {
2136-
/* check the old value and enable RSC if necessary */
2137-
need_reset = ixgbe_reenable_rsc(adapter, ec);
2138-
21392114
/* 1 means dynamic mode */
21402115
adapter->rx_eitr_param = 20000;
21412116
adapter->rx_itr_setting = 1;
@@ -2155,9 +2130,10 @@ static int ixgbe_set_coalesce(struct net_device *netdev,
21552130
*/
21562131
if (adapter->flags2 & IXGBE_FLAG2_RSC_ENABLED) {
21572132
adapter->flags2 &= ~IXGBE_FLAG2_RSC_ENABLED;
2158-
netdev->features &= ~NETIF_F_LRO;
2159-
e_info("rx-usecs set to 0, disabling RSC\n");
2160-
2133+
if (netdev->features & NETIF_F_LRO) {
2134+
netdev->features &= ~NETIF_F_LRO;
2135+
e_info("rx-usecs set to 0, disabling RSC\n");
2136+
}
21612137
need_reset = true;
21622138
}
21632139
}
@@ -2252,6 +2228,9 @@ static int ixgbe_set_flags(struct net_device *netdev, u32 data)
22522228
}
22532229
} else if (!adapter->rx_itr_setting) {
22542230
netdev->features &= ~ETH_FLAG_LRO;
2231+
if (data & ETH_FLAG_LRO)
2232+
e_info("rx-usecs set to 0, "
2233+
"LRO/RSC cannot be enabled.\n");
22552234
}
22562235
}
22572236

drivers/net/ixgbe/ixgbe_main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5269,6 +5269,10 @@ void ixgbe_update_stats(struct ixgbe_adapter *adapter)
52695269
u32 i, missed_rx = 0, mpc, bprc, lxon, lxoff, xon_off_tot;
52705270
u64 non_eop_descs = 0, restart_queue = 0;
52715271

5272+
if (test_bit(__IXGBE_DOWN, &adapter->state) ||
5273+
test_bit(__IXGBE_RESETTING, &adapter->state))
5274+
return;
5275+
52725276
if (adapter->flags2 & IXGBE_FLAG2_RSC_ENABLED) {
52735277
u64 rsc_count = 0;
52745278
u64 rsc_flush = 0;

net/core/skbuff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ static void __copy_skb_header(struct sk_buff *new, const struct sk_buff *old)
532532
new->ip_summed = old->ip_summed;
533533
skb_copy_queue_mapping(new, old);
534534
new->priority = old->priority;
535+
new->deliver_no_wcard = old->deliver_no_wcard;
535536
#if defined(CONFIG_IP_VS) || defined(CONFIG_IP_VS_MODULE)
536537
new->ipvs_property = old->ipvs_property;
537538
#endif
@@ -569,7 +570,6 @@ static struct sk_buff *__skb_clone(struct sk_buff *n, struct sk_buff *skb)
569570
C(len);
570571
C(data_len);
571572
C(mac_len);
572-
C(rxhash);
573573
n->hdr_len = skb->nohdr ? skb_headroom(skb) : skb->hdr_len;
574574
n->cloned = 1;
575575
n->nohdr = 0;

0 commit comments

Comments
 (0)