Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-arrange output columns #376

Merged
merged 15 commits into from
May 28, 2024
Merged

Re-arrange output columns #376

merged 15 commits into from
May 28, 2024

Commits on May 17, 2024

  1. Complete column names

    Signed-off-by: gray <gray.liang@isovalent.com>
    jschwinger233 committed May 17, 2024
    Configuration menu
    Copy the full SHA
    dfaba43 View commit details
    Browse the repository at this point in the history
  2. Move FUNC to the last column

    Because it has variant length.
    
    Signed-off-by: gray <gray.liang@isovalent.com>
    jschwinger233 committed May 17, 2024
    Configuration menu
    Copy the full SHA
    660854d View commit details
    Browse the repository at this point in the history
  3. Left align

    Signed-off-by: gray <gray.liang@isovalent.com>
    jschwinger233 committed May 17, 2024
    Configuration menu
    Copy the full SHA
    a12ebc6 View commit details
    Browse the repository at this point in the history
  4. Reduce CPU column width to 3

    Signed-off-by: gray <gray.liang@isovalent.com>
    jschwinger233 committed May 17, 2024
    Configuration menu
    Copy the full SHA
    2eb1124 View commit details
    Browse the repository at this point in the history
  5. Limit PROCESS to 16 bytes

    Signed-off-by: gray <gray.liang@isovalent.com>
    jschwinger233 committed May 17, 2024
    Configuration menu
    Copy the full SHA
    5199131 View commit details
    Browse the repository at this point in the history
  6. Set 10 width to NETNS column

    Signed-off-by: gray <gray.liang@isovalent.com>
    jschwinger233 committed May 17, 2024
    Configuration menu
    Copy the full SHA
    69d268b View commit details
    Browse the repository at this point in the history
  7. Set 8 width to MARK column

    Also strip 0x prefix.
    
    Signed-off-by: gray <gray.liang@isovalent.com>
    jschwinger233 committed May 17, 2024
    Configuration menu
    Copy the full SHA
    145a57d View commit details
    Browse the repository at this point in the history
  8. Set 16 to IFACE column width

    ifname can be as long as 16 bytes, plust len of ifindex
    len(str(1<<32))=10, it should be at least 26.
    
    However, 16 is enough for most of situations, so let's make it 16.
    
    Also center align this column out of aesthetics.
    
    Signed-off-by: gray <gray.liang@isovalent.com>
    jschwinger233 committed May 17, 2024
    Configuration menu
    Copy the full SHA
    c738749 View commit details
    Browse the repository at this point in the history
  9. Limit PROTO column to 6 bytes

    Signed-off-by: gray <gray.liang@isovalent.com>
    jschwinger233 committed May 17, 2024
    Configuration menu
    Copy the full SHA
    9a860be View commit details
    Browse the repository at this point in the history
  10. MTU has 5 bytes

    Actually it's a uint32, but let's make it 5 that fits most scenarios.
    
    Signed-off-by: gray <gray.liang@isovalent.com>
    jschwinger233 committed May 17, 2024
    Configuration menu
    Copy the full SHA
    0774a64 View commit details
    Browse the repository at this point in the history
  11. LEN has 5 bytes

    Still, it's a u32, but let's treat it as u16 for most cases.
    
    Signed-off-by: gray <gray.liang@isovalent.com>
    jschwinger233 committed May 17, 2024
    Configuration menu
    Copy the full SHA
    cc69af0 View commit details
    Browse the repository at this point in the history
  12. Print TUPLE with historical max length

    So that the following FUNC can be aligned
    
    Signed-off-by: gray <gray.liang@isovalent.com>
    jschwinger233 committed May 17, 2024
    Configuration menu
    Copy the full SHA
    928a72b View commit details
    Browse the repository at this point in the history
  13. ci: Adjust test cases

    Signed-off-by: gray <gray.liang@isovalent.com>
    jschwinger233 committed May 17, 2024
    Configuration menu
    Copy the full SHA
    385a9f9 View commit details
    Browse the repository at this point in the history

Commits on May 21, 2024

  1. Left align zero NETNS

    Signed-off-by: gray <gray.liang@isovalent.com>
    jschwinger233 committed May 21, 2024
    Configuration menu
    Copy the full SHA
    6034b50 View commit details
    Browse the repository at this point in the history
  2. Use 0 instead of 00000000 for MARK

    Otherwise it's hard to distinguish 00000000 from 08000000.
    
    Signed-off-by: gray <gray.liang@isovalent.com>
    jschwinger233 committed May 21, 2024
    Configuration menu
    Copy the full SHA
    945cb58 View commit details
    Browse the repository at this point in the history