virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
  • [parent not found: <20211123163955.154512-9-alexandr.lobakin@intel.com>]
  • [parent not found: <20211123163955.154512-8-alexandr.lobakin@intel.com>]
  • * Re: [PATCH v2 net-next 00/26] net: introduce and use generic XDP stats
           [not found] <20211123163955.154512-1-alexandr.lobakin@intel.com>
                       ` (2 preceding siblings ...)
           [not found] ` <20211123163955.154512-8-alexandr.lobakin@intel.com>
    @ 2021-11-28 22:23 ` David Ahern
           [not found] ` <20211123163955.154512-2-alexandr.lobakin@intel.com>
           [not found] ` <20211130155612.594688-1-alexandr.lobakin@intel.com>
      5 siblings, 0 replies; 17+ messages in thread
    From: David Ahern @ 2021-11-28 22:23 UTC (permalink / raw)
      To: Alexander Lobakin, David S. Miller, Jakub Kicinski
      Cc: Song Liu, Sergey Ryazanov, Michael S. Tsirkin, Vladimir Oltean,
    	Alexei Starovoitov, Andrei Vagin, Tony Nguyen, Thomas Petazzoni,
    	Ioana Ciornei, Noam Dagan, Daniel Borkmann, Jonathan Corbet,
    	linux-rdma, linux-doc, John Fastabend, Russell King,
    	Arthur Kiyanovski, Cong Wang, Martin Habets, Lorenzo Bianconi,
    	Maciej Fijalkowski, Jesper Dangaard Brouer, Johannes Berg,
    	KP Singh, Andrii Nakryiko, Claudiu Manoil, Yonghong Song,
    	Shay Agroskin, Marcin Wojtas, Leon Romanovsky, David Arinzon,
    	David Ahern, Toke Høiland-Jørgensen, virtualization,
    	linux-kernel, Edward Cree, Yajun Deng, netdev, Saeed Bishara,
    	Michal Swiatkowski, bpf, Saeed Mahameed, Martin KaFai Lau
    
    On 11/23/21 9:39 AM, Alexander Lobakin wrote:
    > This is an almost complete rework of [0].
    > 
    > This series introduces generic XDP statistics infra based on rtnl
    > xstats (Ethtool standard stats previously), and wires up the drivers
    > which collect appropriate statistics to this new interface. Finally,
    > it introduces XDP/XSK statistics to all XDP-capable Intel drivers.
    > 
    > Those counters are:
    > * packets: number of frames passed to bpf_prog_run_xdp().
    > * bytes: number of bytes went through bpf_prog_run_xdp().
    > * errors: number of general XDP errors, if driver has one unified
    >   counter.
    > * aborted: number of XDP_ABORTED returns.
    > * drop: number of XDP_DROP returns.
    > * invalid: number of returns of unallowed values (i.e. not XDP_*).
    > * pass: number of XDP_PASS returns.
    > * redirect: number of successfully performed XDP_REDIRECT requests.
    > * redirect_errors: number of failed XDP_REDIRECT requests.
    > * tx: number of successfully performed XDP_TX requests.
    > * tx_errors: number of failed XDP_TX requests.
    > * xmit_packets: number of successfully transmitted XDP/XSK frames.
    > * xmit_bytes: number of successfully transmitted XDP/XSK frames.
    > * xmit_errors: of XDP/XSK frames failed to transmit.
    > * xmit_full: number of XDP/XSK queue being full at the moment of
    >   transmission.
    > 
    > To provide them, developers need to implement .ndo_get_xdp_stats()
    > and, if they want to expose stats on a per-channel basis,
    > .ndo_get_xdp_stats_nch(). include/net/xdp.h contains some helper
    
    Why the tie to a channel? There are Rx queues and Tx queues and no
    requirement to link them into a channel. It would be better (more
    flexible) to allow them to be independent. Rather than ask the driver
    "how many channels", ask 'how many Rx queues' and 'how many Tx queues'
    for which xdp stats are reported.
    
    From there, allow queue numbers or queue id's to be non-consecutive and
    add a queue id or number as an attribute. e.g.,
    
    [XDP stats]
    	[ Rx queue N]
    		counters
    
    
    	[ Tx queue N]
    		counters
    
    This would allow a follow on patch set to do something like "Give me XDP
    stats for Rx queue N" instead of doing a full dump.
    _______________________________________________
    Virtualization mailing list
    Virtualization@lists.linux-foundation.org
    https://lists.linuxfoundation.org/mailman/listinfo/virtualization
    
    ^ permalink raw reply	[flat|nested] 17+ messages in thread
  • [parent not found: <20211123163955.154512-2-alexandr.lobakin@intel.com>]
  • [parent not found: <20211130155612.594688-1-alexandr.lobakin@intel.com>]

  • end of thread, other threads:[~2021-12-01 15:21 UTC | newest]
    
    Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <20211123163955.154512-1-alexandr.lobakin@intel.com>
         [not found] ` <20211123163955.154512-22-alexandr.lobakin@intel.com>
    2021-11-24  0:52   ` [PATCH v2 net-next 21/26] ice: add XDP and XSK generic per-channel statistics Daniel Borkmann
    2021-11-25 11:56     ` Toke Høiland-Jørgensen
         [not found]       ` <20211125170708.127323-1-alexandr.lobakin@intel.com>
         [not found]         ` <20211125094440.6c402d63@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
         [not found]           ` <20211125204007.133064-1-alexandr.lobakin@intel.com>
    2021-11-26 12:30             ` Toke Høiland-Jørgensen
         [not found]               ` <20211126100611.514df099@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
    2021-11-26 18:47                 ` Toke Høiland-Jørgensen
         [not found]                   ` <20211126111431.4a2ed007@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
    2021-11-28 17:54                     ` Ido Schimmel
    2021-11-26 22:27                 ` Daniel Borkmann
    2021-11-29 11:51                   ` Toke Høiland-Jørgensen
         [not found] ` <20211123163955.154512-9-alexandr.lobakin@intel.com>
    2021-11-24 11:33   ` [PATCH v2 net-next 08/26] mvpp2: provide .ndo_get_xdp_stats() callback Russell King (Oracle)
    2021-11-24 11:36   ` Russell King (Oracle)
         [not found] ` <20211123163955.154512-8-alexandr.lobakin@intel.com>
    2021-11-24 11:39   ` [PATCH v2 net-next 07/26] mvneta: add " Russell King (Oracle)
    2021-11-28 22:23 ` [PATCH v2 net-next 00/26] net: introduce and use generic XDP stats David Ahern
         [not found] ` <20211123163955.154512-2-alexandr.lobakin@intel.com>
    2021-11-30  2:36   ` [PATCH v2 net-next 01/26] rtnetlink: introduce generic XDP statistics David Ahern
         [not found] ` <20211130155612.594688-1-alexandr.lobakin@intel.com>
    2021-11-30 16:17   ` [PATCH v2 net-next 00/26] net: introduce and use generic XDP stats Toke Høiland-Jørgensen
         [not found]     ` <20211130090716.4a557036@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
    2021-11-30 17:56       ` David Ahern
         [not found]   ` <20211130081207.228f42ba@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
         [not found]     ` <20211130163454.595897-1-alexandr.lobakin@intel.com>
         [not found]       ` <20211130090449.58a8327d@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
    2021-11-30 17:38         ` David Ahern
    2021-12-01 15:21           ` Jamal Hadi Salim
    2021-11-30 17:45   ` David Ahern
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox;
    as well as URLs for NNTP newsgroup(s).