Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband: (42 commits) IB/qib: Add missing <linux/slab.h> include IB/ehca: Drop unnecessary NULL test RDMA/nes: Fix confusing if statement indentation IB/ehca: Init irq tasklet before irq can happen RDMA/nes: Fix misindented code RDMA/nes: Fix showing wqm_quanta RDMA/nes: Get rid of "set but not used" variables RDMA/nes: Read firmware version from correct place IB/srp: Export req_lim via sysfs IB/srp: Make receive buffer handling more robust IB/srp: Use print_hex_dump() IB: Rename RAW_ETY to RAW_ETHERTYPE RDMA/nes: Fix two sparse warnings RDMA/cxgb3: Make needlessly global iwch_l2t_send() static IB/iser: Make needlessly global iser_alloc_rx_descriptors() static RDMA/cxgb4: Add timeouts when waiting for FW responses IB/qib: Fix race between qib_error_qp() and receive packet processing IB/qib: Limit the number of packets processed per interrupt IB/qib: Allow writes to the diag_counters to be able to clear them IB/qib: Set cfgctxts to number of CPUs by default ...
This commit is contained in:
@@ -232,6 +232,13 @@ static int nes_netdev_open(struct net_device *netdev)
|
||||
NES_MAC_INT_TX_UNDERFLOW | NES_MAC_INT_TX_ERROR));
|
||||
first_nesvnic = nesvnic;
|
||||
}
|
||||
|
||||
if (nesvnic->of_device_registered) {
|
||||
nesdev->iw_status = 1;
|
||||
nesdev->nesadapter->send_term_ok = 1;
|
||||
nes_port_ibevent(nesvnic);
|
||||
}
|
||||
|
||||
if (first_nesvnic->linkup) {
|
||||
/* Enable network packets */
|
||||
nesvnic->linkup = 1;
|
||||
@@ -309,9 +316,9 @@ static int nes_netdev_stop(struct net_device *netdev)
|
||||
|
||||
|
||||
if (nesvnic->of_device_registered) {
|
||||
nes_destroy_ofa_device(nesvnic->nesibdev);
|
||||
nesvnic->nesibdev = NULL;
|
||||
nesvnic->of_device_registered = 0;
|
||||
nesdev->nesadapter->send_term_ok = 0;
|
||||
nesdev->iw_status = 0;
|
||||
nes_port_ibevent(nesvnic);
|
||||
}
|
||||
nes_destroy_nic_qp(nesvnic);
|
||||
|
||||
@@ -463,7 +470,6 @@ static int nes_netdev_start_xmit(struct sk_buff *skb, struct net_device *netdev)
|
||||
u16 nhoffset;
|
||||
u16 wqes_needed;
|
||||
u16 wqes_available;
|
||||
u32 old_head;
|
||||
u32 wqe_misc;
|
||||
|
||||
/*
|
||||
@@ -503,7 +509,6 @@ sq_no_longer_full:
|
||||
if (skb_is_gso(skb)) {
|
||||
nesvnic->segmented_tso_requests++;
|
||||
nesvnic->tso_requests++;
|
||||
old_head = nesnic->sq_head;
|
||||
/* Basically 4 fragments available per WQE with extended fragments */
|
||||
wqes_needed = nr_frags >> 2;
|
||||
wqes_needed += (nr_frags&3)?1:0;
|
||||
|
Reference in New Issue
Block a user