Author: bryanv
Date: Fri Jun 20 02:31:52 2014
New Revision: 267661
URL: http://svnweb.freebsd.org/changeset/base/267661

Log:
  Remove an unnecessary kick of the host at the end of transmitting
  
  MFC after:    1 week

Modified:
  head/sys/dev/vmware/vmxnet3/if_vmx.c

Modified: head/sys/dev/vmware/vmxnet3/if_vmx.c
==============================================================================
--- head/sys/dev/vmware/vmxnet3/if_vmx.c        Fri Jun 20 01:45:03 2014        
(r267660)
+++ head/sys/dev/vmware/vmxnet3/if_vmx.c        Fri Jun 20 02:31:52 2014        
(r267661)
@@ -168,7 +168,6 @@ static int  vmxnet3_txq_load_mbuf(struct 
                    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
        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 vmxne
                ETHER_BPF_MTAP(ifp, m);
        }
 
-       if (tx > 0) {
-               vmxnet3_txq_update_pending(txq);
+       if (tx > 0)
                txq->vxtxq_watchdog = VMXNET3_WATCHDOG_TIMEOUT;
-       }
 
        return (0);
 }
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to