Home
last modified time | relevance | path

Searched refs:vf_stats (Results 1 – 17 of 17) sorted by relevance

/linux/drivers/net/ethernet/intel/ice/
H A Dice_sriov.c1619 * @vf_stats: pointer to the OS memory to be initialized in ice_get_vf_stats()
1622 struct ifla_vf_stats *vf_stats) in ice_get_vf_stats()
1647 memset(vf_stats, 0, sizeof(*vf_stats));
1649 vf_stats->rx_packets = stats->rx_unicast + stats->rx_broadcast +
1651 vf_stats->tx_packets = stats->tx_unicast + stats->tx_broadcast +
1653 vf_stats->rx_bytes = stats->rx_bytes; in ice_is_supported_port_vlan_proto()
1654 vf_stats->tx_bytes = stats->tx_bytes; in ice_is_supported_port_vlan_proto()
1655 vf_stats->broadcast = stats->rx_broadcast; in ice_is_supported_port_vlan_proto()
1656 vf_stats in ice_is_supported_port_vlan_proto()
1600 ice_get_vf_stats(struct net_device * netdev,int vf_id,struct ifla_vf_stats * vf_stats) ice_get_vf_stats() argument
[all...]
/linux/drivers/net/hyperv/
H A Dnetvsc_drv.c429 = this_cpu_ptr(ndev_ctx->vf_stats); in netvsc_vf_xmit()
436 this_cpu_inc(ndev_ctx->vf_stats->tx_dropped); in netvsc_vf_xmit()
1234 = per_cpu_ptr(ndev_ctx->vf_stats, i); in netvsc_get_vf_stats()
1264 per_cpu_ptr(ndev_ctx->vf_stats, i); in netvsc_get_pcpu_stats()
1434 }, vf_stats[] = { variable
1443 #define NETVSC_VF_STATS_LEN ARRAY_SIZE(vf_stats)
1496 data[i++] = *(u64 *)((void *)&sum + vf_stats[j].offset); in netvsc_get_ethtool_stats()
1557 for (i = 0; i < ARRAY_SIZE(vf_stats); i++) in netvsc_get_strings()
1558 ethtool_puts(&p, vf_stats[i].name); in netvsc_get_strings()
2127 = this_cpu_ptr(ndev_ctx->vf_stats); in netvsc_vf_handle_frame()
[all …]
H A Dhyperv_net.h1064 struct netvsc_vf_pcpu_stats __percpu *vf_stats; member
/linux/drivers/net/ethernet/marvell/octeon_ep_vf/
H A Doctep_vf_main.c757 struct octep_vf_iface_rxtx_stats vf_stats; in octep_vf_get_if_stats() local
760 memset(&vf_stats, 0, sizeof(struct octep_vf_iface_rxtx_stats)); in octep_vf_get_if_stats()
762 (u8 *)&vf_stats, &size); in octep_vf_get_if_stats()
767 memcpy(&oct->iface_rx_stats, &vf_stats.iface_rx_stats, in octep_vf_get_if_stats()
769 memcpy(&oct->iface_tx_stats, &vf_stats.iface_tx_stats, in octep_vf_get_if_stats()
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_virtchnl_pf.h155 struct ifla_vf_stats *vf_stats);
H A Di40e_virtchnl_pf.c5027 * @vf_stats: pointer to the OS memory to be initialized in i40e_get_vf_stats()
5030 struct ifla_vf_stats *vf_stats) in i40e_get_vf_stats()
5055 memset(vf_stats, 0, sizeof(*vf_stats));
5057 vf_stats->rx_packets = stats->rx_unicast + stats->rx_broadcast +
5059 vf_stats->tx_packets = stats->tx_unicast + stats->tx_broadcast +
5061 vf_stats->rx_bytes = stats->rx_bytes;
5062 vf_stats->tx_bytes = stats->tx_bytes;
5063 vf_stats->broadcast = stats->rx_broadcast;
5064 vf_stats
5015 i40e_get_vf_stats(struct net_device * netdev,int vf_id,struct ifla_vf_stats * vf_stats) i40e_get_vf_stats() argument
[all...]
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe.h204 struct vf_stats { struct
218 struct vf_stats vfstats; argument
219 struct vf_stats last_vfstats;
220 struct vf_stats saved_rst_vfstats;
H A Dixgbe_main.c9765 struct ifla_vf_stats *vf_stats) in ixgbe_ndo_get_vf_stats() argument
9772 vf_stats->rx_packets = adapter->vfinfo[vf].vfstats.gprc; in ixgbe_ndo_get_vf_stats()
9773 vf_stats->rx_bytes = adapter->vfinfo[vf].vfstats.gorc; in ixgbe_ndo_get_vf_stats()
9774 vf_stats->tx_packets = adapter->vfinfo[vf].vfstats.gptc; in ixgbe_ndo_get_vf_stats()
9775 vf_stats->tx_bytes = adapter->vfinfo[vf].vfstats.gotc; in ixgbe_ndo_get_vf_stats()
9776 vf_stats->multicast = adapter->vfinfo[vf].vfstats.mprc; in ixgbe_ndo_get_vf_stats()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch.c2828 struct ifla_vf_stats *vf_stats) in mlx5_eswitch_get_vport_stats() argument
2857 memset(vf_stats, 0, sizeof(*vf_stats)); in mlx5_eswitch_get_vport_stats()
2858 vf_stats->rx_packets = in mlx5_eswitch_get_vport_stats()
2865 vf_stats->rx_bytes = in mlx5_eswitch_get_vport_stats()
2872 vf_stats->tx_packets = in mlx5_eswitch_get_vport_stats()
2879 vf_stats->tx_bytes = in mlx5_eswitch_get_vport_stats()
2886 vf_stats->multicast = in mlx5_eswitch_get_vport_stats()
2890 vf_stats->broadcast = in mlx5_eswitch_get_vport_stats()
2896 vf_stats->rx_dropped = stats.rx_dropped; in mlx5_eswitch_get_vport_stats()
2897 vf_stats->tx_dropped = stats.tx_dropped; in mlx5_eswitch_get_vport_stats()
H A Den.h1304 int mlx5e_get_vf_stats(struct net_device *dev, int vf, struct ifla_vf_stats *vf_stats);
H A Deswitch.h496 struct ifla_vf_stats *vf_stats);
H A Den_main.c5016 int vf, struct ifla_vf_stats *vf_stats) in mlx5e_get_vf_stats() argument
5022 vf_stats); in mlx5e_get_vf_stats()
/linux/include/linux/mlx4/
H A Dcmd.h309 struct ifla_vf_stats *vf_stats);
/linux/net/core/
H A Drtnetlink.c1578 struct ifla_vf_stats vf_stats; in rtnl_fill_vfinfo() local
1678 memset(&vf_stats, 0, sizeof(vf_stats)); in rtnl_fill_vfinfo()
1681 &vf_stats); in rtnl_fill_vfinfo()
1686 vf_stats.rx_packets, IFLA_VF_STATS_PAD) || in rtnl_fill_vfinfo()
1688 vf_stats.tx_packets, IFLA_VF_STATS_PAD) || in rtnl_fill_vfinfo()
1690 vf_stats.rx_bytes, IFLA_VF_STATS_PAD) || in rtnl_fill_vfinfo()
1692 vf_stats.tx_bytes, IFLA_VF_STATS_PAD) || in rtnl_fill_vfinfo()
1694 vf_stats.broadcast, IFLA_VF_STATS_PAD) || in rtnl_fill_vfinfo()
1696 vf_stats.multicast, IFLA_VF_STATS_PAD) || in rtnl_fill_vfinfo()
1698 vf_stats.rx_dropped, IFLA_VF_STATS_PAD) || in rtnl_fill_vfinfo()
[all …]
/linux/drivers/net/ethernet/cavium/liquidio/
H A Dlio_main.c3181 struct ifla_vf_stats *vf_stats) in liquidio_get_vf_stats() argument
3194 vf_stats->rx_packets = stats.rx_packets; in liquidio_get_vf_stats()
3195 vf_stats->tx_packets = stats.tx_packets; in liquidio_get_vf_stats()
3196 vf_stats->rx_bytes = stats.rx_bytes; in liquidio_get_vf_stats()
3197 vf_stats->tx_bytes = stats.tx_bytes; in liquidio_get_vf_stats()
3198 vf_stats->broadcast = stats.broadcast; in liquidio_get_vf_stats()
3199 vf_stats->multicast = stats.multicast; in liquidio_get_vf_stats()
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_netdev.c2611 struct ifla_vf_stats *vf_stats) in mlx4_en_get_vf_stats() argument
2616 return mlx4_get_vf_stats(mdev->dev, en_priv->port, vf, vf_stats); in mlx4_en_get_vf_stats()
/linux/include/linux/
H A Dnetdevice.h1540 *vf_stats);