1acafa4873
Why I did it Add PDDF support on following Ufispace platforms with Broadcom ASIC S9110-32X S8901-54XC S7801-54XS S6301-56ST How I did it Add PDDF configuration files, scripts and python files How to verify it Run pddf commands and show commands. Signed-off-by: nonodark <ef67891@yahoo.com.tw>
503 lines
13 KiB
Plaintext
503 lines
13 KiB
Plaintext
# cfg version: r1, 20230628
|
|
|
|
pbmp_xport_xe=0x7fffffffffffffffdfffffffffffffffe
|
|
|
|
|
|
#FC 0
|
|
phy_chain_tx_polarity_flip_physical{1}=0x0
|
|
phy_chain_tx_polarity_flip_physical{2}=0x0
|
|
phy_chain_tx_polarity_flip_physical{3}=0x0
|
|
phy_chain_tx_polarity_flip_physical{4}=0x0
|
|
|
|
phy_chain_rx_polarity_flip_physical{1}=0x0
|
|
phy_chain_rx_polarity_flip_physical{2}=0x0
|
|
phy_chain_rx_polarity_flip_physical{3}=0x0
|
|
phy_chain_rx_polarity_flip_physical{4}=0x0
|
|
|
|
phy_chain_tx_lane_map_physical{1.0}=0x0123
|
|
phy_chain_rx_lane_map_physical{1.0}=0x0123
|
|
|
|
#FC 1
|
|
phy_chain_tx_polarity_flip_physical{5}=0x0
|
|
phy_chain_tx_polarity_flip_physical{6}=0x0
|
|
phy_chain_tx_polarity_flip_physical{7}=0x0
|
|
phy_chain_tx_polarity_flip_physical{8}=0x0
|
|
|
|
phy_chain_rx_polarity_flip_physical{5}=0x1
|
|
phy_chain_rx_polarity_flip_physical{6}=0x1
|
|
phy_chain_rx_polarity_flip_physical{7}=0x1
|
|
phy_chain_rx_polarity_flip_physical{8}=0x1
|
|
|
|
phy_chain_tx_lane_map_physical{5.0}=0x0123
|
|
phy_chain_rx_lane_map_physical{5.0}=0x0123
|
|
|
|
#FC 2
|
|
phy_chain_tx_polarity_flip_physical{9}=0x0
|
|
phy_chain_tx_polarity_flip_physical{10}=0x0
|
|
phy_chain_tx_polarity_flip_physical{11}=0x0
|
|
phy_chain_tx_polarity_flip_physical{12}=0x0
|
|
|
|
phy_chain_rx_polarity_flip_physical{9}=0x1
|
|
phy_chain_rx_polarity_flip_physical{10}=0x1
|
|
phy_chain_rx_polarity_flip_physical{11}=0x1
|
|
phy_chain_rx_polarity_flip_physical{12}=0x1
|
|
|
|
phy_chain_tx_lane_map_physical{9.0}=0x0123
|
|
phy_chain_rx_lane_map_physical{9.0}=0x0123
|
|
|
|
#FC 3
|
|
phy_chain_tx_polarity_flip_physical{13}=0x0
|
|
phy_chain_tx_polarity_flip_physical{14}=0x0
|
|
phy_chain_tx_polarity_flip_physical{15}=0x0
|
|
phy_chain_tx_polarity_flip_physical{16}=0x0
|
|
|
|
phy_chain_rx_polarity_flip_physical{13}=0x1
|
|
phy_chain_rx_polarity_flip_physical{14}=0x1
|
|
phy_chain_rx_polarity_flip_physical{15}=0x1
|
|
phy_chain_rx_polarity_flip_physical{16}=0x1
|
|
|
|
phy_chain_tx_lane_map_physical{13.0}=0x0123
|
|
phy_chain_rx_lane_map_physical{13.0}=0x0123
|
|
|
|
#FC 4
|
|
phy_chain_tx_polarity_flip_physical{17}=0x0
|
|
phy_chain_tx_polarity_flip_physical{18}=0x0
|
|
phy_chain_tx_polarity_flip_physical{19}=0x0
|
|
phy_chain_tx_polarity_flip_physical{20}=0x0
|
|
|
|
phy_chain_rx_polarity_flip_physical{17}=0x0
|
|
phy_chain_rx_polarity_flip_physical{18}=0x0
|
|
phy_chain_rx_polarity_flip_physical{19}=0x0
|
|
phy_chain_rx_polarity_flip_physical{20}=0x0
|
|
|
|
phy_chain_tx_lane_map_physical{17.0}=0x0123
|
|
phy_chain_rx_lane_map_physical{17.0}=0x0123
|
|
|
|
#FC 5
|
|
phy_chain_tx_polarity_flip_physical{21}=0x0
|
|
phy_chain_tx_polarity_flip_physical{22}=0x0
|
|
phy_chain_tx_polarity_flip_physical{23}=0x0
|
|
phy_chain_tx_polarity_flip_physical{24}=0x0
|
|
|
|
phy_chain_rx_polarity_flip_physical{21}=0x1
|
|
phy_chain_rx_polarity_flip_physical{22}=0x1
|
|
phy_chain_rx_polarity_flip_physical{23}=0x1
|
|
phy_chain_rx_polarity_flip_physical{24}=0x1
|
|
|
|
phy_chain_tx_lane_map_physical{21.0}=0x0123
|
|
phy_chain_rx_lane_map_physical{21.0}=0x0123
|
|
|
|
#FC 6
|
|
phy_chain_tx_polarity_flip_physical{25}=0x0
|
|
phy_chain_tx_polarity_flip_physical{26}=0x0
|
|
phy_chain_tx_polarity_flip_physical{27}=0x0
|
|
phy_chain_tx_polarity_flip_physical{28}=0x0
|
|
|
|
phy_chain_rx_polarity_flip_physical{25}=0x1
|
|
phy_chain_rx_polarity_flip_physical{26}=0x1
|
|
phy_chain_rx_polarity_flip_physical{27}=0x1
|
|
phy_chain_rx_polarity_flip_physical{28}=0x1
|
|
|
|
phy_chain_tx_lane_map_physical{25.0}=0x0123
|
|
phy_chain_rx_lane_map_physical{25.0}=0x0123
|
|
|
|
#FC 7 not use
|
|
phy_chain_tx_polarity_flip_physical{29}=0x0
|
|
phy_chain_tx_polarity_flip_physical{30}=0x0
|
|
phy_chain_tx_polarity_flip_physical{31}=0x0
|
|
phy_chain_tx_polarity_flip_physical{32}=0x0
|
|
|
|
phy_chain_rx_polarity_flip_physical{29}=0x0
|
|
phy_chain_rx_polarity_flip_physical{30}=0x0
|
|
phy_chain_rx_polarity_flip_physical{31}=0x0
|
|
phy_chain_rx_polarity_flip_physical{32}=0x0
|
|
|
|
phy_chain_tx_lane_map_physical{29.0}=0x0123
|
|
phy_chain_rx_lane_map_physical{29.0}=0x0123
|
|
|
|
#FC 8
|
|
phy_chain_tx_polarity_flip_physical{33}=0x1
|
|
phy_chain_tx_polarity_flip_physical{34}=0x0
|
|
phy_chain_tx_polarity_flip_physical{35}=0x1
|
|
phy_chain_tx_polarity_flip_physical{36}=0x1
|
|
|
|
phy_chain_rx_polarity_flip_physical{33}=0x0
|
|
phy_chain_rx_polarity_flip_physical{34}=0x0
|
|
phy_chain_rx_polarity_flip_physical{35}=0x1
|
|
phy_chain_rx_polarity_flip_physical{36}=0x0
|
|
|
|
phy_chain_tx_lane_map_physical{33.0}=0x3120
|
|
phy_chain_rx_lane_map_physical{33.0}=0x0213
|
|
|
|
#FC 9
|
|
phy_chain_tx_polarity_flip_physical{37}=0x0
|
|
phy_chain_tx_polarity_flip_physical{38}=0x0
|
|
phy_chain_tx_polarity_flip_physical{39}=0x1
|
|
phy_chain_tx_polarity_flip_physical{40}=0x1
|
|
|
|
phy_chain_rx_polarity_flip_physical{37}=0x1
|
|
phy_chain_rx_polarity_flip_physical{38}=0x1
|
|
phy_chain_rx_polarity_flip_physical{39}=0x0
|
|
phy_chain_rx_polarity_flip_physical{40}=0x0
|
|
|
|
phy_chain_tx_lane_map_physical{37.0}=0x2031
|
|
phy_chain_rx_lane_map_physical{37.0}=0x1302
|
|
|
|
#FC 10
|
|
phy_chain_tx_polarity_flip_physical{41}=0x0
|
|
phy_chain_tx_polarity_flip_physical{42}=0x0
|
|
phy_chain_tx_polarity_flip_physical{43}=0x0
|
|
phy_chain_tx_polarity_flip_physical{44}=0x0
|
|
|
|
phy_chain_rx_polarity_flip_physical{41}=0x1
|
|
phy_chain_rx_polarity_flip_physical{42}=0x1
|
|
phy_chain_rx_polarity_flip_physical{43}=0x1
|
|
phy_chain_rx_polarity_flip_physical{44}=0x1
|
|
|
|
phy_chain_tx_lane_map_physical{41.0}=0x3210
|
|
phy_chain_rx_lane_map_physical{41.0}=0x0123
|
|
|
|
#FC 11
|
|
phy_chain_tx_polarity_flip_physical{45}=0x0
|
|
phy_chain_tx_polarity_flip_physical{46}=0x0
|
|
phy_chain_tx_polarity_flip_physical{47}=0x1
|
|
phy_chain_tx_polarity_flip_physical{48}=0x1
|
|
|
|
phy_chain_rx_polarity_flip_physical{45}=0x0
|
|
phy_chain_rx_polarity_flip_physical{46}=0x0
|
|
phy_chain_rx_polarity_flip_physical{47}=0x0
|
|
phy_chain_rx_polarity_flip_physical{48}=0x1
|
|
|
|
phy_chain_tx_lane_map_physical{45.0}=0x3120
|
|
phy_chain_rx_lane_map_physical{45.0}=0x2130
|
|
|
|
#FC 12
|
|
phy_chain_tx_polarity_flip_physical{49}=0x1
|
|
phy_chain_tx_polarity_flip_physical{50}=0x0
|
|
phy_chain_tx_polarity_flip_physical{51}=0x0
|
|
phy_chain_tx_polarity_flip_physical{52}=0x1
|
|
|
|
phy_chain_rx_polarity_flip_physical{49}=0x0
|
|
phy_chain_rx_polarity_flip_physical{50}=0x1
|
|
phy_chain_rx_polarity_flip_physical{51}=0x1
|
|
phy_chain_rx_polarity_flip_physical{52}=0x0
|
|
|
|
phy_chain_tx_lane_map_physical{49.0}=0x3201
|
|
phy_chain_rx_lane_map_physical{49.0}=0x1023
|
|
|
|
#FC 13
|
|
phy_chain_tx_polarity_flip_physical{53}=0x0
|
|
phy_chain_tx_polarity_flip_physical{54}=0x0
|
|
phy_chain_tx_polarity_flip_physical{55}=0x1
|
|
phy_chain_tx_polarity_flip_physical{56}=0x1
|
|
|
|
phy_chain_rx_polarity_flip_physical{53}=0x0
|
|
phy_chain_rx_polarity_flip_physical{54}=0x0
|
|
phy_chain_rx_polarity_flip_physical{55}=0x0
|
|
phy_chain_rx_polarity_flip_physical{56}=0x1
|
|
|
|
phy_chain_tx_lane_map_physical{53.0}=0x3120
|
|
phy_chain_rx_lane_map_physical{53.0}=0x2130
|
|
|
|
#FC 14
|
|
phy_chain_tx_polarity_flip_physical{57}=0x1
|
|
phy_chain_tx_polarity_flip_physical{58}=0x0
|
|
phy_chain_tx_polarity_flip_physical{59}=0x0
|
|
phy_chain_tx_polarity_flip_physical{60}=0x1
|
|
|
|
phy_chain_rx_polarity_flip_physical{57}=0x0
|
|
phy_chain_rx_polarity_flip_physical{58}=0x1
|
|
phy_chain_rx_polarity_flip_physical{59}=0x1
|
|
phy_chain_rx_polarity_flip_physical{60}=0x0
|
|
|
|
phy_chain_tx_lane_map_physical{57.0}=0x3201
|
|
phy_chain_rx_lane_map_physical{57.0}=0x1023
|
|
|
|
#FC 15
|
|
phy_chain_tx_polarity_flip_physical{61}=0x0
|
|
phy_chain_tx_polarity_flip_physical{62}=0x0
|
|
phy_chain_tx_polarity_flip_physical{63}=0x0
|
|
phy_chain_tx_polarity_flip_physical{64}=0x0
|
|
|
|
phy_chain_rx_polarity_flip_physical{61}=0x0
|
|
phy_chain_rx_polarity_flip_physical{62}=0x0
|
|
phy_chain_rx_polarity_flip_physical{63}=0x0
|
|
phy_chain_rx_polarity_flip_physical{64}=0x0
|
|
|
|
phy_chain_tx_lane_map_physical{61.0}=0x3210
|
|
phy_chain_rx_lane_map_physical{61.0}=0x3210
|
|
|
|
#FC 16
|
|
phy_chain_tx_polarity_flip_physical{65}=0x0
|
|
phy_chain_tx_polarity_flip_physical{66}=0x0
|
|
phy_chain_tx_polarity_flip_physical{67}=0x0
|
|
phy_chain_tx_polarity_flip_physical{68}=0x0
|
|
|
|
phy_chain_rx_polarity_flip_physical{65}=0x1
|
|
phy_chain_rx_polarity_flip_physical{66}=0x1
|
|
phy_chain_rx_polarity_flip_physical{67}=0x1
|
|
phy_chain_rx_polarity_flip_physical{68}=0x1
|
|
|
|
phy_chain_tx_lane_map_physical{65.0}=0x3210
|
|
phy_chain_rx_lane_map_physical{65.0}=0x3210
|
|
|
|
#FC 17
|
|
phy_chain_tx_polarity_flip_physical{69}=0x0
|
|
phy_chain_tx_polarity_flip_physical{70}=0x0
|
|
phy_chain_tx_polarity_flip_physical{71}=0x0
|
|
phy_chain_tx_polarity_flip_physical{72}=0x0
|
|
|
|
phy_chain_rx_polarity_flip_physical{69}=0x1
|
|
phy_chain_rx_polarity_flip_physical{70}=0x1
|
|
phy_chain_rx_polarity_flip_physical{71}=0x1
|
|
phy_chain_rx_polarity_flip_physical{72}=0x1
|
|
|
|
phy_chain_tx_lane_map_physical{69.0}=0x3210
|
|
phy_chain_rx_lane_map_physical{69.0}=0x3210
|
|
|
|
#FC 18
|
|
phy_chain_tx_polarity_flip_physical{73}=0x0
|
|
phy_chain_tx_polarity_flip_physical{74}=0x0
|
|
phy_chain_tx_polarity_flip_physical{75}=0x0
|
|
phy_chain_tx_polarity_flip_physical{76}=0x0
|
|
|
|
phy_chain_rx_polarity_flip_physical{73}=0x1
|
|
phy_chain_rx_polarity_flip_physical{74}=0x1
|
|
phy_chain_rx_polarity_flip_physical{75}=0x1
|
|
phy_chain_rx_polarity_flip_physical{76}=0x1
|
|
|
|
phy_chain_tx_lane_map_physical{73.0}=0x3210
|
|
phy_chain_rx_lane_map_physical{73.0}=0x3210
|
|
|
|
#FC 19 not use
|
|
phy_chain_tx_polarity_flip_physical{77}=0x0
|
|
phy_chain_tx_polarity_flip_physical{78}=0x0
|
|
phy_chain_tx_polarity_flip_physical{79}=0x0
|
|
phy_chain_tx_polarity_flip_physical{80}=0x0
|
|
|
|
phy_chain_rx_polarity_flip_physical{77}=0x0
|
|
phy_chain_rx_polarity_flip_physical{78}=0x0
|
|
phy_chain_rx_polarity_flip_physical{79}=0x0
|
|
phy_chain_rx_polarity_flip_physical{80}=0x0
|
|
|
|
phy_chain_tx_lane_map_physical{77.0}=0x3210
|
|
phy_chain_rx_lane_map_physical{77.0}=0x3210
|
|
|
|
|
|
#FC0 sfp28 port 0-3
|
|
portmap_1=1:10
|
|
portmap_2=2:10
|
|
portmap_3=3:10
|
|
portmap_4=4:10
|
|
|
|
#FC1 sfp28 port 4-7
|
|
portmap_5=5:10
|
|
portmap_6=6:10
|
|
portmap_7=7:10
|
|
portmap_8=8:10
|
|
|
|
#FC2 sfp28 port 8-11
|
|
portmap_9=9:10
|
|
portmap_10=10:10
|
|
portmap_11=11:10
|
|
portmap_12=12:10
|
|
|
|
#FC3 sfp28 port 12-15
|
|
portmap_13=13:10
|
|
portmap_14=14:10
|
|
portmap_15=15:10
|
|
portmap_16=16:10
|
|
|
|
#FC4 sfp28 port 16-19
|
|
portmap_17=17:10
|
|
portmap_18=18:10
|
|
portmap_19=19:10
|
|
portmap_20=20:10
|
|
|
|
#FC5 sfp28 port 20-23
|
|
portmap_21=21:10
|
|
portmap_22=22:10
|
|
portmap_23=23:10
|
|
portmap_24=24:10
|
|
|
|
#FC6 sfp28 port 24-27
|
|
portmap_25=25:10
|
|
portmap_26=26:10
|
|
portmap_27=27:10
|
|
portmap_28=28:10
|
|
|
|
#FC7 not use
|
|
|
|
#FC10 sfp28 port 28-31
|
|
portmap_33=41:10
|
|
portmap_34=42:10
|
|
portmap_35=43:10
|
|
portmap_36=44:10
|
|
|
|
#FC15 sfp28 port 32-35
|
|
portmap_37=61:10
|
|
portmap_38=62:10
|
|
portmap_39=63:10
|
|
portmap_40=64:10
|
|
|
|
#FC16 sfp28 port 36-39
|
|
portmap_41=65:10
|
|
portmap_42=66:10
|
|
portmap_43=67:10
|
|
portmap_44=68:10
|
|
|
|
#FC17 sfp28 port 40-43
|
|
portmap_45=69:10
|
|
portmap_46=70:10
|
|
portmap_47=71:10
|
|
portmap_48=72:10
|
|
|
|
#FC18 sfp28 port 44-47
|
|
portmap_49=73:10
|
|
portmap_50=74:10
|
|
portmap_51=75:10
|
|
portmap_52=76:10
|
|
|
|
#FC9 qsfp port 48
|
|
portmap_29=37:100
|
|
|
|
#FC8 qsfp port 49
|
|
portmap_30=33:100
|
|
|
|
#FC11 qsfp port 50
|
|
portmap_53=45:100
|
|
|
|
#FC12 qsfp port 51
|
|
portmap_54=49:100
|
|
|
|
#FC13 qsfp port 52
|
|
portmap_55=53:100
|
|
|
|
#FC14 qsfp port 53
|
|
portmap_59=57:100
|
|
|
|
#FC19 not use
|
|
|
|
# dport
|
|
dport_map_enable=1
|
|
|
|
dport_map_port_1=1
|
|
dport_map_port_2=2
|
|
dport_map_port_3=3
|
|
dport_map_port_4=4
|
|
dport_map_port_5=5
|
|
dport_map_port_6=6
|
|
dport_map_port_7=7
|
|
dport_map_port_8=8
|
|
dport_map_port_9=9
|
|
dport_map_port_10=10
|
|
dport_map_port_11=11
|
|
dport_map_port_12=12
|
|
dport_map_port_13=13
|
|
dport_map_port_14=14
|
|
dport_map_port_15=15
|
|
dport_map_port_16=16
|
|
dport_map_port_17=17
|
|
dport_map_port_18=18
|
|
dport_map_port_19=19
|
|
dport_map_port_20=20
|
|
dport_map_port_21=21
|
|
dport_map_port_22=22
|
|
dport_map_port_23=23
|
|
dport_map_port_24=24
|
|
dport_map_port_25=25
|
|
dport_map_port_26=26
|
|
dport_map_port_27=27
|
|
dport_map_port_28=28
|
|
dport_map_port_33=29
|
|
dport_map_port_34=30
|
|
dport_map_port_35=31
|
|
dport_map_port_36=32
|
|
dport_map_port_37=33
|
|
dport_map_port_38=34
|
|
dport_map_port_39=35
|
|
dport_map_port_40=36
|
|
dport_map_port_41=37
|
|
dport_map_port_42=38
|
|
dport_map_port_43=39
|
|
dport_map_port_44=40
|
|
dport_map_port_45=41
|
|
dport_map_port_46=42
|
|
dport_map_port_47=43
|
|
dport_map_port_48=44
|
|
dport_map_port_49=45
|
|
dport_map_port_50=46
|
|
dport_map_port_51=47
|
|
dport_map_port_52=48
|
|
dport_map_port_29=49
|
|
dport_map_port_30=50
|
|
dport_map_port_53=51
|
|
dport_map_port_54=52
|
|
dport_map_port_55=53
|
|
dport_map_port_59=54
|
|
|
|
# cfg for timing
|
|
ptp_bs_fref_0=50000000
|
|
ptp_bs_fref_1=50000000
|
|
|
|
port_flex_enable=1
|
|
oversubscribe_mode=1
|
|
core_clock_frequency=1525
|
|
|
|
#25G,10G and 1G support
|
|
serdes_10g_at_25g_vco=1
|
|
serdes_1000x_at_25g_vco=1
|
|
|
|
l2xmsg_mode=1
|
|
l2xmsg_hostbuf_size=16384
|
|
module_64ports=0
|
|
|
|
#Interrupts and Parity
|
|
max_vp_lags=0
|
|
schan_intr_enable=0
|
|
tdma_timeout_usec=5000000
|
|
stable_size=0x5500000
|
|
|
|
#Default L3 profile
|
|
l2_mem_entries=40960
|
|
l3_alpm_enable=2
|
|
l3_alpm_ipv6_128b_bkt_rsvd=1
|
|
l3_mem_entries=40960
|
|
|
|
#Tunnels
|
|
use_all_splithorizon_groups=1
|
|
sai_tunnel_support=1
|
|
bcm_tunnel_term_compatible_mode=1
|
|
|
|
#RIOT Enable
|
|
riot_enable=1
|
|
riot_overlay_l3_intf_mem_size=8192
|
|
riot_overlay_l3_egress_mem_size=32768
|
|
l3_ecmp_levels=2
|
|
riot_overlay_ecmp_resilient_hash_size=16384
|
|
pfc_deadlock_seq_control=1
|
|
|
|
mem_cache_enable=0
|
|
ifp_inports_support_enable=1
|
|
ipv6_lpm_128b_enable=0x1
|
|
l3_max_ecmp_mode=1
|
|
lpm_scaling_enable=0
|
|
bcm_num_cos=10
|
|
default_cpu_tx_queue=9
|
|
mmu_lossless=0
|
|
host_as_route_disable=1
|
|
sai_fast_convergence_support=1
|
|
flow_init_mode=1
|
|
sai_interface_type_auto_detect=0
|
|
mpls_mem_entries=16384
|
|
vlan_xlate_1_mem_entries=65536
|
|
vlan_xlate_2_mem_entries=16384
|
|
sai_nbr_bcast_ifp_optimized=1
|
|
sai_brcm_sonic_acl_enhancements=1
|
|
|
|
# Reduced Trap Group QSET for BRCM Sonic
|
|
sai_brcm_sonic_trap_group=1
|
|
l2_entry_used_as_my_station=1
|
|
multi_hash_recurse_depth_l3=2
|
|
|