Skip to content

Xilinx/tsn-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TSN Utility Applications

tsn-utils repo contains all tsn user space applications, out of box scripts and various config files related to TSN.

For more information, please refer to TSN Software User Guide or wiki page: https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/25034864/Xilinx+TSN+Solution

Build Instructions

  • Install build pre-requisites

    sudo apt install -y build-essential bzip2 cmake libtool libconfig-dev libnl-3-dev libreadline-dev flex libnl-genl-3-dev libmnl-dev
  • Clone repo

        git clone https://github.com/Xilinx/tsn-utils.git
        cd tsn-utils
  • Build and Install

        sudo make install

Run Instructions

  1. Run interface setup on Board1 : source /usr/bin/net_setup.sh -b1
  2. Run interface setup on Board2 : source /usr/bin/net_setup.sh -b2
  3. Run PTP on Board1 in master mode : source /usr/bin/start_ptp.sh -m
  4. Run PTP on Board2 in slave mode : source /usr/bin/start_ptp.sh -s
  5. switch_prog : Example for forwarding
    switch_prog -s <swp number> 4
    
  6. qci_prog : Example usage on receiver side, to filter based on size
    qci_prog -s <swp number> <mtu size> 1 0 1 1
    
  7. cb_prog : Example to demonstrate redundant streams with vlan id 10 and 20
    (Receiver)
    switch_cam -a <mac address> 10 swp0 7
    switch_cam -a <mac address> swp0 8
    cb_prog -a swp1 0 32 noport 0 0 7 7 0 0 1 1
    cb_prog -a swp2 0 32 noport 0 0 8 7 0 0 1 1
    
    (Sender)
    switch_cam -a <destination mac address> 10 swp1,swp2 35
    cb_prog -a noport 65535 0 swp2 20 0 35 24 0 0 1 1
    
  8. switch_cam : Example
    To add
    switch_cam -a <mac address> <vlan id> <swp number> <gate>
    
    To delete
    switch_cam -d <mac address> <vlan id>
    
  9. br_prog : Example
    br_prog <interface name> enable
    br_prog <interface name> stats
    

License

Copyright (c) 2016-2022 Xilinx, Inc. All rights reserved.
Copyright (C) 2022 - 2023 Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: MIT