summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbryanv <bryanv@FreeBSD.org>2014-06-20 02:31:52 +0000
committerbryanv <bryanv@FreeBSD.org>2014-06-20 02:31:52 +0000
commitba0687caa6af98e6157723f1fb582b5f4f687283 (patch)
tree6d6e3bde1a5d78d2816f5d837cc687b24f2ad112
parent64db28af1a5835fefff2fdb9a0816c86874788f3 (diff)
downloadFreeBSD-src-ba0687caa6af98e6157723f1fb582b5f4f687283.zip
FreeBSD-src-ba0687caa6af98e6157723f1fb582b5f4f687283.tar.gz
Remove an unnecessary kick of the host at the end of transmitting
MFC after: 1 week
-rw-r--r--sys/dev/vmware/vmxnet3/if_vmx.c23
1 files changed, 2 insertions, 21 deletions
diff --git a/sys/dev/vmware/vmxnet3/if_vmx.c b/sys/dev/vmware/vmxnet3/if_vmx.c
index fd2dd51..0e0315e 100644
--- a/sys/dev/vmware/vmxnet3/if_vmx.c
+++ b/sys/dev/vmware/vmxnet3/if_vmx.c
@@ -168,7 +168,6 @@ static int vmxnet3_txq_load_mbuf(struct vmxnet3_txqueue *, struct mbuf **,
bus_dmamap_t, bus_dma_segment_t [], int *);
static void vmxnet3_txq_unload_mbuf(struct vmxnet3_txqueue *, bus_dmamap_t);
static int vmxnet3_txq_encap(struct vmxnet3_txqueue *, struct mbuf **);
-static void vmxnet3_txq_update_pending(struct vmxnet3_txqueue *);
#ifdef VMXNET3_LEGACY_TX
static void vmxnet3_start_locked(struct ifnet *);
static void vmxnet3_start(struct ifnet *);
@@ -2852,20 +2851,6 @@ vmxnet3_txq_encap(struct vmxnet3_txqueue *txq, struct mbuf **m0)
return (0);
}
-static void
-vmxnet3_txq_update_pending(struct vmxnet3_txqueue *txq)
-{
- struct vmxnet3_txring *txr;
-
- txr = &txq->vxtxq_cmd_ring;
-
- if (txq->vxtxq_ts->npending > 0) {
- txq->vxtxq_ts->npending = 0;
- vmxnet3_write_bar0(txq->vxtxq_sc,
- VMXNET3_BAR0_TXH(txq->vxtxq_id), txr->vxtxr_head);
- }
-}
-
#ifdef VMXNET3_LEGACY_TX
static void
@@ -2912,10 +2897,8 @@ vmxnet3_start_locked(struct ifnet *ifp)
ETHER_BPF_MTAP(ifp, m_head);
}
- if (tx > 0) {
- vmxnet3_txq_update_pending(txq);
+ if (tx > 0)
txq->vxtxq_watchdog = VMXNET3_WATCHDOG_TIMEOUT;
- }
}
static void
@@ -2990,10 +2973,8 @@ vmxnet3_txq_mq_start_locked(struct vmxnet3_txqueue *txq, struct mbuf *m)
ETHER_BPF_MTAP(ifp, m);
}
- if (tx > 0) {
- vmxnet3_txq_update_pending(txq);
+ if (tx > 0)
txq->vxtxq_watchdog = VMXNET3_WATCHDOG_TIMEOUT;
- }
return (0);
}
OpenPOWER on IntegriCloud