Home
last modified time | relevance | path

Searched refs:vf_stats (Results 1 - 25 of 39) sorted by relevance

12

/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ice/
H A Dice_sriov.h56 struct ifla_vf_stats *vf_stats);
141 struct ifla_vf_stats __always_unused *vf_stats) in ice_get_vf_stats()
139 ice_get_vf_stats(struct net_device __always_unused *netdev, int __always_unused vf_id, struct ifla_vf_stats __always_unused *vf_stats) ice_get_vf_stats() argument
H A Dice_sriov.c1505 * @vf_stats: pointer to the OS memory to be initialized
1508 struct ifla_vf_stats *vf_stats) in ice_get_vf_stats()
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 in ice_get_vf_stats()
1507 ice_get_vf_stats(struct net_device *netdev, int vf_id, struct ifla_vf_stats *vf_stats) ice_get_vf_stats() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
H A Dice_virtchnl_pf.h137 struct ifla_vf_stats *vf_stats);
229 struct ifla_vf_stats __always_unused *vf_stats) in ice_get_vf_stats()
227 ice_get_vf_stats(struct net_device __always_unused *netdev, int __always_unused vf_id, struct ifla_vf_stats __always_unused *vf_stats) ice_get_vf_stats() argument
H A Dice_virtchnl_pf.c4035 * @vf_stats: pointer to the OS memory to be initialized
4038 struct ifla_vf_stats *vf_stats) in ice_get_vf_stats()
4061 memset(vf_stats, 0, sizeof(*vf_stats)); in ice_get_vf_stats()
4063 vf_stats->rx_packets = stats->rx_unicast + stats->rx_broadcast + in ice_get_vf_stats()
4065 vf_stats->tx_packets = stats->tx_unicast + stats->tx_broadcast + in ice_get_vf_stats()
4067 vf_stats->rx_bytes = stats->rx_bytes; in ice_get_vf_stats()
4068 vf_stats->tx_bytes = stats->tx_bytes; in ice_get_vf_stats()
4069 vf_stats->broadcast = stats->rx_broadcast; in ice_get_vf_stats()
4070 vf_stats in ice_get_vf_stats()
4037 ice_get_vf_stats(struct net_device *netdev, int vf_id, struct ifla_vf_stats *vf_stats) ice_get_vf_stats() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch.c2120 struct ifla_vf_stats *vf_stats) in mlx5_eswitch_get_vport_stats()
2149 memset(vf_stats, 0, sizeof(*vf_stats)); in mlx5_eswitch_get_vport_stats()
2150 vf_stats->rx_packets = in mlx5_eswitch_get_vport_stats()
2157 vf_stats->rx_bytes = in mlx5_eswitch_get_vport_stats()
2164 vf_stats->tx_packets = in mlx5_eswitch_get_vport_stats()
2171 vf_stats->tx_bytes = in mlx5_eswitch_get_vport_stats()
2178 vf_stats->multicast = in mlx5_eswitch_get_vport_stats()
2182 vf_stats->broadcast = in mlx5_eswitch_get_vport_stats()
2188 vf_stats in mlx5_eswitch_get_vport_stats()
2118 mlx5_eswitch_get_vport_stats(struct mlx5_eswitch *esw, u16 vport_num, struct ifla_vf_stats *vf_stats) mlx5_eswitch_get_vport_stats() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/hyperv/
H A Dnetvsc_drv.c510 = this_cpu_ptr(ndev_ctx->vf_stats); in netvsc_vf_xmit()
517 this_cpu_inc(ndev_ctx->vf_stats->tx_dropped); in netvsc_vf_xmit()
1281 = per_cpu_ptr(ndev_ctx->vf_stats, i); in netvsc_get_vf_stats()
1311 per_cpu_ptr(ndev_ctx->vf_stats, i); in netvsc_get_pcpu_stats()
1479 }, vf_stats[] = { variable
1488 #define NETVSC_VF_STATS_LEN ARRAY_SIZE(vf_stats)
1537 data[i++] = *(u64 *)((void *)&sum + vf_stats[j].offset); in netvsc_get_ethtool_stats()
1596 for (i = 0; i < ARRAY_SIZE(vf_stats); i++) { in netvsc_get_strings()
1597 memcpy(p, vf_stats[i].name, ETH_GSTRING_LEN); in netvsc_get_strings()
2178 = this_cpu_ptr(ndev_ctx->vf_stats); in netvsc_vf_handle_frame()
[all...]
/kernel/linux/linux-6.6/drivers/net/hyperv/
H A Dnetvsc_drv.c462 = this_cpu_ptr(ndev_ctx->vf_stats); in netvsc_vf_xmit()
469 this_cpu_inc(ndev_ctx->vf_stats->tx_dropped); in netvsc_vf_xmit()
1266 = per_cpu_ptr(ndev_ctx->vf_stats, i); in netvsc_get_vf_stats()
1296 per_cpu_ptr(ndev_ctx->vf_stats, i); in netvsc_get_pcpu_stats()
1466 }, vf_stats[] = { variable
1475 #define NETVSC_VF_STATS_LEN ARRAY_SIZE(vf_stats)
1528 data[i++] = *(u64 *)((void *)&sum + vf_stats[j].offset); in netvsc_get_ethtool_stats()
1591 for (i = 0; i < ARRAY_SIZE(vf_stats); i++) in netvsc_get_strings()
1592 ethtool_sprintf(&p, vf_stats[i].name); in netvsc_get_strings()
2171 = this_cpu_ptr(ndev_ctx->vf_stats); in netvsc_vf_handle_frame()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_rep.c181 struct ifla_vf_stats vf_stats; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS() local
184 err = mlx5_eswitch_get_vport_stats(esw, rep->vport, &vf_stats); in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS()
193 vport_stats->rx_packets = vf_stats.tx_packets; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS()
194 vport_stats->rx_bytes = vf_stats.tx_bytes; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS()
195 vport_stats->tx_packets = vf_stats.rx_packets; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS()
196 vport_stats->tx_bytes = vf_stats.rx_bytes; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS()
H A Deswitch.c2373 struct ifla_vf_stats *vf_stats) in mlx5_eswitch_get_vport_stats()
2402 memset(vf_stats, 0, sizeof(*vf_stats)); in mlx5_eswitch_get_vport_stats()
2403 vf_stats->rx_packets = in mlx5_eswitch_get_vport_stats()
2410 vf_stats->rx_bytes = in mlx5_eswitch_get_vport_stats()
2417 vf_stats->tx_packets = in mlx5_eswitch_get_vport_stats()
2424 vf_stats->tx_bytes = in mlx5_eswitch_get_vport_stats()
2431 vf_stats->multicast = in mlx5_eswitch_get_vport_stats()
2435 vf_stats->broadcast = in mlx5_eswitch_get_vport_stats()
2441 vf_stats in mlx5_eswitch_get_vport_stats()
2371 mlx5_eswitch_get_vport_stats(struct mlx5_eswitch *esw, u16 vport_num, struct ifla_vf_stats *vf_stats) mlx5_eswitch_get_vport_stats() argument
[all...]
H A Deswitch.h320 struct ifla_vf_stats *vf_stats);
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/
H A Di40e_virtchnl_pf.h143 struct ifla_vf_stats *vf_stats);
H A Di40e_virtchnl_pf.c4799 * @vf_stats: pointer to the OS memory to be initialized
4802 struct ifla_vf_stats *vf_stats) in i40e_get_vf_stats()
4827 memset(vf_stats, 0, sizeof(*vf_stats)); in i40e_get_vf_stats()
4829 vf_stats->rx_packets = stats->rx_unicast + stats->rx_broadcast + in i40e_get_vf_stats()
4831 vf_stats->tx_packets = stats->tx_unicast + stats->tx_broadcast + in i40e_get_vf_stats()
4833 vf_stats->rx_bytes = stats->rx_bytes; in i40e_get_vf_stats()
4834 vf_stats->tx_bytes = stats->tx_bytes; in i40e_get_vf_stats()
4835 vf_stats->broadcast = stats->rx_broadcast; in i40e_get_vf_stats()
4836 vf_stats in i40e_get_vf_stats()
4801 i40e_get_vf_stats(struct net_device *netdev, int vf_id, struct ifla_vf_stats *vf_stats) i40e_get_vf_stats() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/i40e/
H A Di40e_virtchnl_pf.h143 struct ifla_vf_stats *vf_stats);
H A Di40e_virtchnl_pf.c4969 * @vf_stats: pointer to the OS memory to be initialized
4972 struct ifla_vf_stats *vf_stats) in i40e_get_vf_stats()
4997 memset(vf_stats, 0, sizeof(*vf_stats)); in i40e_get_vf_stats()
4999 vf_stats->rx_packets = stats->rx_unicast + stats->rx_broadcast + in i40e_get_vf_stats()
5001 vf_stats->tx_packets = stats->tx_unicast + stats->tx_broadcast + in i40e_get_vf_stats()
5003 vf_stats->rx_bytes = stats->rx_bytes; in i40e_get_vf_stats()
5004 vf_stats->tx_bytes = stats->tx_bytes; in i40e_get_vf_stats()
5005 vf_stats->broadcast = stats->rx_broadcast; in i40e_get_vf_stats()
5006 vf_stats in i40e_get_vf_stats()
4971 i40e_get_vf_stats(struct net_device *netdev, int vf_id, struct ifla_vf_stats *vf_stats) i40e_get_vf_stats() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe.h200 struct vf_stats { struct
214 struct vf_stats vfstats;
215 struct vf_stats last_vfstats;
216 struct vf_stats saved_rst_vfstats;
/kernel/linux/linux-5.10/drivers/net/ethernet/pensando/ionic/
H A Dionic_lif.c1942 struct ifla_vf_stats *vf_stats) in ionic_get_vf_stats()
1957 memset(vf_stats, 0, sizeof(*vf_stats)); in ionic_get_vf_stats()
1960 vf_stats->rx_packets = le64_to_cpu(vs->rx_ucast_packets); in ionic_get_vf_stats()
1961 vf_stats->tx_packets = le64_to_cpu(vs->tx_ucast_packets); in ionic_get_vf_stats()
1962 vf_stats->rx_bytes = le64_to_cpu(vs->rx_ucast_bytes); in ionic_get_vf_stats()
1963 vf_stats->tx_bytes = le64_to_cpu(vs->tx_ucast_bytes); in ionic_get_vf_stats()
1964 vf_stats->broadcast = le64_to_cpu(vs->rx_bcast_packets); in ionic_get_vf_stats()
1965 vf_stats->multicast = le64_to_cpu(vs->rx_mcast_packets); in ionic_get_vf_stats()
1966 vf_stats in ionic_get_vf_stats()
1941 ionic_get_vf_stats(struct net_device *netdev, int vf, struct ifla_vf_stats *vf_stats) ionic_get_vf_stats() argument
[all...]
/kernel/linux/linux-5.10/net/core/
H A Drtnetlink.c1236 struct ifla_vf_stats vf_stats; in rtnl_fill_vfinfo() local
1335 memset(&vf_stats, 0, sizeof(vf_stats)); in rtnl_fill_vfinfo()
1338 &vf_stats); in rtnl_fill_vfinfo()
1343 vf_stats.rx_packets, IFLA_VF_STATS_PAD) || in rtnl_fill_vfinfo()
1345 vf_stats.tx_packets, IFLA_VF_STATS_PAD) || in rtnl_fill_vfinfo()
1347 vf_stats.rx_bytes, IFLA_VF_STATS_PAD) || in rtnl_fill_vfinfo()
1349 vf_stats.tx_bytes, IFLA_VF_STATS_PAD) || in rtnl_fill_vfinfo()
1351 vf_stats.broadcast, IFLA_VF_STATS_PAD) || in rtnl_fill_vfinfo()
1353 vf_stats in rtnl_fill_vfinfo()
[all...]
/kernel/linux/linux-5.10/include/linux/mlx4/
H A Dcmd.h309 struct ifla_vf_stats *vf_stats);
/kernel/linux/linux-6.6/include/linux/mlx4/
H A Dcmd.h309 struct ifla_vf_stats *vf_stats);
/kernel/linux/linux-6.6/drivers/net/ethernet/pensando/ionic/
H A Dionic_lif.c2440 struct ifla_vf_stats *vf_stats) in ionic_get_vf_stats()
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 in ionic_get_vf_stats()
2439 ionic_get_vf_stats(struct net_device *netdev, int vf, struct ifla_vf_stats *vf_stats) ionic_get_vf_stats() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/liquidio/
H A Dlio_main.c3208 struct ifla_vf_stats *vf_stats) in liquidio_get_vf_stats()
3221 vf_stats->rx_packets = stats.rx_packets; in liquidio_get_vf_stats()
3222 vf_stats->tx_packets = stats.tx_packets; in liquidio_get_vf_stats()
3223 vf_stats->rx_bytes = stats.rx_bytes; in liquidio_get_vf_stats()
3224 vf_stats->tx_bytes = stats.tx_bytes; in liquidio_get_vf_stats()
3225 vf_stats->broadcast = stats.broadcast; in liquidio_get_vf_stats()
3226 vf_stats->multicast = stats.multicast; in liquidio_get_vf_stats()
3207 liquidio_get_vf_stats(struct net_device *netdev, int vfidx, struct ifla_vf_stats *vf_stats) liquidio_get_vf_stats() argument
/kernel/linux/linux-6.6/drivers/net/ethernet/cavium/liquidio/
H A Dlio_main.c3198 struct ifla_vf_stats *vf_stats) in liquidio_get_vf_stats()
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()
3197 liquidio_get_vf_stats(struct net_device *netdev, int vfidx, struct ifla_vf_stats *vf_stats) liquidio_get_vf_stats() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
H A Dcmd.c3345 struct ifla_vf_stats *vf_stats) in mlx4_get_vf_stats()
3351 if (!vf_stats) in mlx4_get_vf_stats()
3364 vf_stats->rx_packets = be64_to_cpu(tmp_vf_stats.rx_frames); in mlx4_get_vf_stats()
3365 vf_stats->tx_packets = be64_to_cpu(tmp_vf_stats.tx_frames); in mlx4_get_vf_stats()
3366 vf_stats->rx_bytes = be64_to_cpu(tmp_vf_stats.rx_bytes); in mlx4_get_vf_stats()
3367 vf_stats->tx_bytes = be64_to_cpu(tmp_vf_stats.tx_bytes); in mlx4_get_vf_stats()
3344 mlx4_get_vf_stats(struct mlx4_dev *dev, int port, int vf_idx, struct ifla_vf_stats *vf_stats) mlx4_get_vf_stats() argument
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx4/
H A Dcmd.c3343 struct ifla_vf_stats *vf_stats) in mlx4_get_vf_stats()
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()
3342 mlx4_get_vf_stats(struct mlx4_dev *dev, int port, int vf_idx, struct ifla_vf_stats *vf_stats) mlx4_get_vf_stats() argument
/kernel/linux/linux-6.6/net/core/
H A 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 in rtnl_fill_vfinfo()
[all...]

Completed in 67 milliseconds

12