Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/xen/xen completely g/c the #if 0'ed xennetback_tx_f...



details:   https://anonhg.NetBSD.org/src/rev/d138afff95dd
branches:  trunk
changeset: 746357:d138afff95dd
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sun Mar 29 15:38:29 2020 +0000

description:
completely g/c the #if 0'ed xennetback_tx_free(), it's not used any more

diffstat:

 sys/arch/xen/xen/xennetback_xenbus.c |  27 ++-------------------------
 1 files changed, 2 insertions(+), 25 deletions(-)

diffs (55 lines):

diff -r a99ad63c2b83 -r d138afff95dd sys/arch/xen/xen/xennetback_xenbus.c
--- a/sys/arch/xen/xen/xennetback_xenbus.c      Sun Mar 29 15:35:31 2020 +0000
+++ b/sys/arch/xen/xen/xennetback_xenbus.c      Sun Mar 29 15:38:29 2020 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: xennetback_xenbus.c,v 1.87 2020/03/29 15:35:31 jdolecek Exp $      */
+/*      $NetBSD: xennetback_xenbus.c,v 1.88 2020/03/29 15:38:29 jdolecek Exp $      */
 
 /*
  * Copyright (c) 2006 Manuel Bouyer.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xennetback_xenbus.c,v 1.87 2020/03/29 15:35:31 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xennetback_xenbus.c,v 1.88 2020/03/29 15:38:29 jdolecek Exp $");
 
 #include "opt_xen.h"
 
@@ -132,9 +132,6 @@
 static inline void xennetback_tx_response(struct xnetback_instance *,
     int, int);
 static void xennetback_mbuf_addr(struct mbuf *, paddr_t *, int *);
-#if 0  /* XXX */
-static void xennetback_tx_free(struct mbuf * , void *, size_t, void *);
-#endif /* XXX */
 
 static SLIST_HEAD(, xnetback_instance) xnetback_instances;
 static kmutex_t xnetback_lock;
@@ -871,26 +868,6 @@
        return 1;
 }
 
-#if 0  /* XXX */
-static void
-xennetback_tx_free(struct mbuf *m, void *va, size_t size, void *arg)
-{
-       int s = splnet();
-       struct xni_pkt *pkt = arg;
-       struct xnetback_instance *xneti = pkt->pkt_xneti;
-
-       XENPRINTF(("xennetback_tx_free\n"));
-
-       xennetback_tx_response(xneti, pkt->pkt_id, NETIF_RSP_OKAY);
-
-       xni_pkt_unmap(pkt, (vaddr_t)va & ~PAGE_MASK);
-
-       if (m)
-               pool_cache_put(mb_cache, m);
-       splx(s);
-}
-#endif /* XXX */
-
 static int
 xennetback_ifioctl(struct ifnet *ifp, u_long cmd, void *data)
 {



Home | Main Index | Thread Index | Old Index