Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/net/ethernet/intel/ice/
Dice_sriov.c1508 struct ifla_vf_stats *vf_stats) in ice_get_vf_stats() argument
1533 memset(vf_stats, 0, sizeof(*vf_stats)); in ice_get_vf_stats()
1535 vf_stats->rx_packets = stats->rx_unicast + stats->rx_broadcast + in ice_get_vf_stats()
1537 vf_stats->tx_packets = stats->tx_unicast + stats->tx_broadcast + in ice_get_vf_stats()
1539 vf_stats->rx_bytes = stats->rx_bytes; in ice_get_vf_stats()
1540 vf_stats->tx_bytes = stats->tx_bytes; in ice_get_vf_stats()
1541 vf_stats->broadcast = stats->rx_broadcast; in ice_get_vf_stats()
1542 vf_stats->multicast = stats->rx_multicast; in ice_get_vf_stats()
1543 vf_stats->rx_dropped = stats->rx_discards; in ice_get_vf_stats()
1544 vf_stats->tx_dropped = stats->tx_discards; in ice_get_vf_stats()
Dice_sriov.h56 struct ifla_vf_stats *vf_stats);
141 struct ifla_vf_stats __always_unused *vf_stats) in ice_get_vf_stats() argument
/Linux-v6.6/drivers/net/hyperv/
Dnetvsc_drv.c458 = this_cpu_ptr(ndev_ctx->vf_stats); in netvsc_vf_xmit()
465 this_cpu_inc(ndev_ctx->vf_stats->tx_dropped); in netvsc_vf_xmit()
1262 = per_cpu_ptr(ndev_ctx->vf_stats, i); in netvsc_get_vf_stats()
1292 per_cpu_ptr(ndev_ctx->vf_stats, i); in netvsc_get_pcpu_stats()
1462 }, vf_stats[] = { variable
1471 #define NETVSC_VF_STATS_LEN ARRAY_SIZE(vf_stats)
1524 data[i++] = *(u64 *)((void *)&sum + vf_stats[j].offset); in netvsc_get_ethtool_stats()
1587 for (i = 0; i < ARRAY_SIZE(vf_stats); i++) in netvsc_get_strings()
1588 ethtool_sprintf(&p, vf_stats[i].name); in netvsc_get_strings()
2167 = this_cpu_ptr(ndev_ctx->vf_stats); in netvsc_vf_handle_frame()
[all …]
Dhyperv_net.h1051 struct netvsc_vf_pcpu_stats __percpu *vf_stats; member
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch.c2129 struct ifla_vf_stats *vf_stats) in mlx5_eswitch_get_vport_stats() argument
2158 memset(vf_stats, 0, sizeof(*vf_stats)); in mlx5_eswitch_get_vport_stats()
2159 vf_stats->rx_packets = in mlx5_eswitch_get_vport_stats()
2166 vf_stats->rx_bytes = in mlx5_eswitch_get_vport_stats()
2173 vf_stats->tx_packets = in mlx5_eswitch_get_vport_stats()
2180 vf_stats->tx_bytes = in mlx5_eswitch_get_vport_stats()
2187 vf_stats->multicast = in mlx5_eswitch_get_vport_stats()
2191 vf_stats->broadcast = in mlx5_eswitch_get_vport_stats()
2197 vf_stats->rx_dropped = stats.rx_dropped; in mlx5_eswitch_get_vport_stats()
2198 vf_stats->tx_dropped = stats.tx_dropped; in mlx5_eswitch_get_vport_stats()
Deswitch.h438 struct ifla_vf_stats *vf_stats);
Den.h1217 int mlx5e_get_vf_stats(struct net_device *dev, int vf, struct ifla_vf_stats *vf_stats);
Den_main.c4593 int vf, struct ifla_vf_stats *vf_stats) in mlx5e_get_vf_stats() argument
4599 vf_stats); in mlx5e_get_vf_stats()
/Linux-v6.6/drivers/net/ethernet/intel/i40e/
Di40e_virtchnl_pf.h139 struct ifla_vf_stats *vf_stats);
Di40e_virtchnl_pf.c4884 struct ifla_vf_stats *vf_stats) in i40e_get_vf_stats() argument
4909 memset(vf_stats, 0, sizeof(*vf_stats)); in i40e_get_vf_stats()
4911 vf_stats->rx_packets = stats->rx_unicast + stats->rx_broadcast + in i40e_get_vf_stats()
4913 vf_stats->tx_packets = stats->tx_unicast + stats->tx_broadcast + in i40e_get_vf_stats()
4915 vf_stats->rx_bytes = stats->rx_bytes; in i40e_get_vf_stats()
4916 vf_stats->tx_bytes = stats->tx_bytes; in i40e_get_vf_stats()
4917 vf_stats->broadcast = stats->rx_broadcast; in i40e_get_vf_stats()
4918 vf_stats->multicast = stats->rx_multicast; in i40e_get_vf_stats()
4919 vf_stats->rx_dropped = stats->rx_discards; in i40e_get_vf_stats()
4920 vf_stats->tx_dropped = stats->tx_discards; in i40e_get_vf_stats()
/Linux-v6.6/drivers/net/ethernet/intel/ixgbe/
Dixgbe.h200 struct vf_stats { struct
214 struct vf_stats vfstats; argument
215 struct vf_stats last_vfstats;
216 struct vf_stats saved_rst_vfstats;
Dixgbe_main.c9089 struct ifla_vf_stats *vf_stats) in ixgbe_ndo_get_vf_stats() argument
9096 vf_stats->rx_packets = adapter->vfinfo[vf].vfstats.gprc; in ixgbe_ndo_get_vf_stats()
9097 vf_stats->rx_bytes = adapter->vfinfo[vf].vfstats.gorc; in ixgbe_ndo_get_vf_stats()
9098 vf_stats->tx_packets = adapter->vfinfo[vf].vfstats.gptc; in ixgbe_ndo_get_vf_stats()
9099 vf_stats->tx_bytes = adapter->vfinfo[vf].vfstats.gotc; in ixgbe_ndo_get_vf_stats()
9100 vf_stats->multicast = adapter->vfinfo[vf].vfstats.mprc; in ixgbe_ndo_get_vf_stats()
/Linux-v6.6/include/linux/mlx4/
Dcmd.h309 struct ifla_vf_stats *vf_stats);
/Linux-v6.6/drivers/net/ethernet/pensando/ionic/
Dionic_lif.c2440 struct ifla_vf_stats *vf_stats) in ionic_get_vf_stats() argument
2455 memset(vf_stats, 0, sizeof(*vf_stats)); in ionic_get_vf_stats()
2458 vf_stats->rx_packets = le64_to_cpu(vs->rx_ucast_packets); in ionic_get_vf_stats()
2459 vf_stats->tx_packets = le64_to_cpu(vs->tx_ucast_packets); in ionic_get_vf_stats()
2460 vf_stats->rx_bytes = le64_to_cpu(vs->rx_ucast_bytes); in ionic_get_vf_stats()
2461 vf_stats->tx_bytes = le64_to_cpu(vs->tx_ucast_bytes); in ionic_get_vf_stats()
2462 vf_stats->broadcast = le64_to_cpu(vs->rx_bcast_packets); in ionic_get_vf_stats()
2463 vf_stats->multicast = le64_to_cpu(vs->rx_mcast_packets); in ionic_get_vf_stats()
2464 vf_stats->rx_dropped = le64_to_cpu(vs->rx_ucast_drop_packets) + in ionic_get_vf_stats()
2467 vf_stats->tx_dropped = le64_to_cpu(vs->tx_ucast_drop_packets) + in ionic_get_vf_stats()
/Linux-v6.6/net/core/
Drtnetlink.c1284 struct ifla_vf_stats vf_stats; in rtnl_fill_vfinfo() local
1383 memset(&vf_stats, 0, sizeof(vf_stats)); in rtnl_fill_vfinfo()
1386 &vf_stats); in rtnl_fill_vfinfo()
1391 vf_stats.rx_packets, IFLA_VF_STATS_PAD) || in rtnl_fill_vfinfo()
1393 vf_stats.tx_packets, IFLA_VF_STATS_PAD) || in rtnl_fill_vfinfo()
1395 vf_stats.rx_bytes, IFLA_VF_STATS_PAD) || in rtnl_fill_vfinfo()
1397 vf_stats.tx_bytes, IFLA_VF_STATS_PAD) || in rtnl_fill_vfinfo()
1399 vf_stats.broadcast, IFLA_VF_STATS_PAD) || in rtnl_fill_vfinfo()
1401 vf_stats.multicast, IFLA_VF_STATS_PAD) || in rtnl_fill_vfinfo()
1403 vf_stats.rx_dropped, IFLA_VF_STATS_PAD) || in rtnl_fill_vfinfo()
[all …]
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx4/
Dcmd.c3343 struct ifla_vf_stats *vf_stats) in mlx4_get_vf_stats() argument
3349 if (!vf_stats) in mlx4_get_vf_stats()
3362 vf_stats->rx_packets = be64_to_cpu(tmp_vf_stats.rx_frames); in mlx4_get_vf_stats()
3363 vf_stats->tx_packets = be64_to_cpu(tmp_vf_stats.tx_frames); in mlx4_get_vf_stats()
3364 vf_stats->rx_bytes = be64_to_cpu(tmp_vf_stats.rx_bytes); in mlx4_get_vf_stats()
3365 vf_stats->tx_bytes = be64_to_cpu(tmp_vf_stats.tx_bytes); in mlx4_get_vf_stats()
Den_netdev.c2621 struct ifla_vf_stats *vf_stats) in mlx4_en_get_vf_stats() argument
2626 return mlx4_get_vf_stats(mdev->dev, en_priv->port, vf, vf_stats); in mlx4_en_get_vf_stats()
/Linux-v6.6/drivers/net/ethernet/cavium/liquidio/
Dlio_main.c3198 struct ifla_vf_stats *vf_stats) in liquidio_get_vf_stats() argument
3211 vf_stats->rx_packets = stats.rx_packets; in liquidio_get_vf_stats()
3212 vf_stats->tx_packets = stats.tx_packets; in liquidio_get_vf_stats()
3213 vf_stats->rx_bytes = stats.rx_bytes; in liquidio_get_vf_stats()
3214 vf_stats->tx_bytes = stats.tx_bytes; in liquidio_get_vf_stats()
3215 vf_stats->broadcast = stats.broadcast; in liquidio_get_vf_stats()
3216 vf_stats->multicast = stats.multicast; in liquidio_get_vf_stats()
/Linux-v6.6/drivers/infiniband/ulp/ipoib/
Dipoib_main.c2055 struct ifla_vf_stats *vf_stats) in ipoib_get_vf_stats() argument
2059 return ib_get_vf_stats(priv->ca, vf, priv->port, vf_stats); in ipoib_get_vf_stats()
/Linux-v6.6/include/linux/
Dnetdevice.h1487 *vf_stats);