From owner-svn-src-all@freebsd.org Mon Oct 19 14:22:58 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 989CDA19109; Mon, 19 Oct 2015 14:22:58 +0000 (UTC) (envelope-from royger@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4CD151C1E; Mon, 19 Oct 2015 14:22:58 +0000 (UTC) (envelope-from royger@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t9JEMvQc016020; Mon, 19 Oct 2015 14:22:57 GMT (envelope-from royger@FreeBSD.org) Received: (from royger@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t9JEMvoO016019; Mon, 19 Oct 2015 14:22:57 GMT (envelope-from royger@FreeBSD.org) Message-Id: <201510191422.t9JEMvoO016019@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: royger set sender to royger@FreeBSD.org using -f From: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= Date: Mon, 19 Oct 2015 14:22:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r289584 - head/sys/dev/xen/netfront X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2015 14:22:58 -0000 Author: royger Date: Mon Oct 19 14:22:57 2015 New Revision: 289584 URL: https://svnweb.freebsd.org/changeset/base/289584 Log: xen-netfront: clean up netfront stats structure Rename it with netfront_ prefix and purge a bunch of unused fields. Submitted by: Wei Liu Reviewed by: royger Differential Revision: https://reviews.freebsd.org/D3889 Sponsored by: Citrix Systems R&D Modified: head/sys/dev/xen/netfront/netfront.c Modified: head/sys/dev/xen/netfront/netfront.c ============================================================================== --- head/sys/dev/xen/netfront/netfront.c Mon Oct 19 14:20:06 2015 (r289583) +++ head/sys/dev/xen/netfront/netfront.c Mon Oct 19 14:22:57 2015 (r289584) @@ -191,7 +191,7 @@ struct xn_chain_data { struct mbuf *xn_rx_chain[NET_RX_RING_SIZE+1]; }; -struct net_device_stats +struct netfront_stats { u_long rx_packets; /* total packets received */ u_long tx_packets; /* total packets transmitted */ @@ -199,29 +199,6 @@ struct net_device_stats u_long tx_bytes; /* total bytes transmitted */ u_long rx_errors; /* bad packets received */ u_long tx_errors; /* packet transmit problems */ - u_long rx_dropped; /* no space in linux buffers */ - u_long tx_dropped; /* no space available in linux */ - u_long multicast; /* multicast packets received */ - u_long collisions; - - /* detailed rx_errors: */ - u_long rx_length_errors; - u_long rx_over_errors; /* receiver ring buff overflow */ - u_long rx_crc_errors; /* recved pkt with crc error */ - u_long rx_frame_errors; /* recv'd frame alignment error */ - u_long rx_fifo_errors; /* recv'r fifo overrun */ - u_long rx_missed_errors; /* receiver missed packet */ - - /* detailed tx_errors */ - u_long tx_aborted_errors; - u_long tx_carrier_errors; - u_long tx_fifo_errors; - u_long tx_heartbeat_errors; - u_long tx_window_errors; - - /* for cslip etc */ - u_long rx_compressed; - u_long tx_compressed; }; struct netfront_info { @@ -230,7 +207,7 @@ struct netfront_info { struct lro_ctrl xn_lro; #endif - struct net_device_stats stats; + struct netfront_stats stats; u_int tx_full; netif_tx_front_ring_t tx;