• Magnus Karlsson's avatar
    selftests/xsk: print per packet info in verbose mode · 2d2712ca
    Magnus Karlsson authored
    Print info about every packet in verbose mode, both for Tx and
    Rx. This is useful to have when a test fails or to validate that a
    test is really doing what it was designed to do. Info on what is
    supposed to be received and sent is also printed for the custom packet
    streams since they differ from the base line. Here is an example:
    
    Tx addr: 37e0 len: 64 options: 0 pkt_nb: 8
    Tx addr: 4000 len: 64 options: 0 pkt_nb: 9
    Rx: addr: 100 len: 64 options: 0 pkt_nb: 0 valid: 1
    Rx: addr: 1100 len: 64 options: 0 pkt_nb: 1 valid: 1
    Rx: addr: 2100 len: 64 options: 0 pkt_nb: 4 valid: 1
    Rx: addr: 3100 len: 64 options: 0 pkt_nb: 8 valid: 1
    Rx: addr: 4100 len: 64 options: 0 pkt_nb: 9 valid: 1
    
    One pointless verbose print statement is also deleted and another one
    is made clearer.
    Signed-off-by: default avatarMagnus Karlsson <magnus.karlsson@intel.com>
    Link: https://lore.kernel.org/r/20230914084900.492-2-magnus.karlsson@gmail.comSigned-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
    2d2712ca
xskxceiver.c 63.2 KB