X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fnet%2Fbnxt%2Fbnxt_stats.h;fp=lib%2Flibrte_vhost%2Fvirtio-net.h;h=65408a44953fbc2b535960a7fa11a76f2623038a;hb=8b25d1ad5d2264bdfc2818c7bda74ee2697df6db;hp=75fb57e5fa096fc34fb5214bed242ba8f29fce06;hpb=97f17497d162afdb82c8704bf097f0fee3724b2e;p=deb_dpdk.git diff --git a/lib/librte_vhost/virtio-net.h b/drivers/net/bnxt/bnxt_stats.h similarity index 80% rename from lib/librte_vhost/virtio-net.h rename to drivers/net/bnxt/bnxt_stats.h index 75fb57e5..65408a44 100644 --- a/lib/librte_vhost/virtio-net.h +++ b/drivers/net/bnxt/bnxt_stats.h @@ -1,7 +1,7 @@ /*- * BSD LICENSE * - * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. + * Copyright(c) 2014-2015 Broadcom Corporation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * * Neither the name of Intel Corporation nor the names of its + * * Neither the name of Broadcom Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * @@ -31,13 +31,14 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _VIRTIO_NET_H -#define _VIRTIO_NET_H +#ifndef _BNXT_STATS_H_ +#define _BNXT_STATS_H_ -#include "vhost-net.h" -#include "rte_virtio_net.h" +#include -struct virtio_net_device_ops const *notify_ops; -struct virtio_net *get_device(struct vhost_device_ctx ctx); +void bnxt_free_stats(struct bnxt *bp); +void bnxt_stats_get_op(struct rte_eth_dev *eth_dev, + struct rte_eth_stats *bnxt_stats); +void bnxt_stats_reset_op(struct rte_eth_dev *eth_dev); #endif