Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts: drivers/net/wireless/ath/ath9k/recv.c drivers/net/wireless/mwifiex/pcie.c net/ipv6/sit.c The SIT driver conflict consists of a bug fix being done by hand in 'net' (missing u64_stats_init()) whilst in 'net-next' a helper was created (netdev_alloc_pcpu_stats()) which takes care of this. The two wireless conflicts were overlapping changes. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -1484,6 +1484,10 @@ static int b44_open(struct net_device *dev)
|
||||
add_timer(&bp->timer);
|
||||
|
||||
b44_enable_ints(bp);
|
||||
|
||||
if (bp->flags & B44_FLAG_EXTERNAL_PHY)
|
||||
phy_start(bp->phydev);
|
||||
|
||||
netif_start_queue(dev);
|
||||
out:
|
||||
return err;
|
||||
@@ -1646,6 +1650,9 @@ static int b44_close(struct net_device *dev)
|
||||
|
||||
netif_stop_queue(dev);
|
||||
|
||||
if (bp->flags & B44_FLAG_EXTERNAL_PHY)
|
||||
phy_stop(bp->phydev);
|
||||
|
||||
napi_disable(&bp->napi);
|
||||
|
||||
del_timer_sync(&bp->timer);
|
||||
@@ -2222,7 +2229,12 @@ static void b44_adjust_link(struct net_device *dev)
|
||||
}
|
||||
|
||||
if (status_changed) {
|
||||
b44_check_phy(bp);
|
||||
u32 val = br32(bp, B44_TX_CTRL);
|
||||
if (bp->flags & B44_FLAG_FULL_DUPLEX)
|
||||
val |= TX_CTRL_DUPLEX;
|
||||
else
|
||||
val &= ~TX_CTRL_DUPLEX;
|
||||
bw32(bp, B44_TX_CTRL, val);
|
||||
phy_print_status(phydev);
|
||||
}
|
||||
}
|
||||
|
@@ -3875,7 +3875,9 @@ netdev_tx_t bnx2x_start_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
xmit_type);
|
||||
}
|
||||
|
||||
/* Add the macs to the parsing BD this is a vf */
|
||||
/* Add the macs to the parsing BD if this is a vf or if
|
||||
* Tx Switching is enabled.
|
||||
*/
|
||||
if (IS_VF(bp)) {
|
||||
/* override GRE parameters in BD */
|
||||
bnx2x_set_fw_mac_addr(&pbd_e2->data.mac_addr.src_hi,
|
||||
@@ -3883,6 +3885,11 @@ netdev_tx_t bnx2x_start_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
&pbd_e2->data.mac_addr.src_lo,
|
||||
eth->h_source);
|
||||
|
||||
bnx2x_set_fw_mac_addr(&pbd_e2->data.mac_addr.dst_hi,
|
||||
&pbd_e2->data.mac_addr.dst_mid,
|
||||
&pbd_e2->data.mac_addr.dst_lo,
|
||||
eth->h_dest);
|
||||
} else if (bp->flags & TX_SWITCHING) {
|
||||
bnx2x_set_fw_mac_addr(&pbd_e2->data.mac_addr.dst_hi,
|
||||
&pbd_e2->data.mac_addr.dst_mid,
|
||||
&pbd_e2->data.mac_addr.dst_lo,
|
||||
|
@@ -6843,8 +6843,7 @@ static int tg3_rx(struct tg3_napi *tnapi, int budget)
|
||||
|
||||
work_mask |= opaque_key;
|
||||
|
||||
if ((desc->err_vlan & RXD_ERR_MASK) != 0 &&
|
||||
(desc->err_vlan != RXD_ERR_ODD_NIBBLE_RCVD_MII)) {
|
||||
if (desc->err_vlan & RXD_ERR_MASK) {
|
||||
drop_it:
|
||||
tg3_recycle_rx(tnapi, tpr, opaque_key,
|
||||
desc_idx, *post_ptr);
|
||||
|
@@ -2608,7 +2608,11 @@ struct tg3_rx_buffer_desc {
|
||||
#define RXD_ERR_TOO_SMALL 0x00400000
|
||||
#define RXD_ERR_NO_RESOURCES 0x00800000
|
||||
#define RXD_ERR_HUGE_FRAME 0x01000000
|
||||
#define RXD_ERR_MASK 0xffff0000
|
||||
|
||||
#define RXD_ERR_MASK (RXD_ERR_BAD_CRC | RXD_ERR_COLLISION | \
|
||||
RXD_ERR_LINK_LOST | RXD_ERR_PHY_DECODE | \
|
||||
RXD_ERR_MAC_ABRT | RXD_ERR_TOO_SMALL | \
|
||||
RXD_ERR_NO_RESOURCES | RXD_ERR_HUGE_FRAME)
|
||||
|
||||
u32 reserved;
|
||||
u32 opaque;
|
||||
|
Reference in New Issue
Block a user