This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VH-Q1: How to expand the number of VLANs supported by it without affecting other functions?

Part Number: TDA4VH-Q1
Other Parts Discussed in Thread: TDA4VH

Tool/software:

Hi TI experts, 

We are using tda4vh SDK0902 for Ethernet adaptation work. The code uses a macro ETHFWVLAN_VLANS_MAX to limit the maximum number of VLANs supported by it to 10. If we modify the definition of the macro to achieve the goal of configurating more VLANs, the Ethernet function will behave abnormally. How can we expand the number of VLANs supported by it without affecting orther functions? 

Best Regards,

Xue

  • Hi,

    How can we expand the number of VLANs supported by it without affecting orther functions? 

    You have to update the value of  "ETHFWVLAN_VLANS_MAX".

    If we modify the definition of the macro to achieve the goal of configurating more VLANs, the Ethernet function will behave abnormally.

    Can you please share details about what problems you are facing, when you increase the above macro value?

    Best Regards,
    Sudheer

  • I increased the macro value from 10 to 15 and conducted the Ethernet function test under the condition of configuring 13 VLANs. The test environment was set up by connecting a laptop to the board. When the laptop pings the board, communication can be intermittently successful (with interruptions during the communication process). However, the board is never able to successfully ping the laptop. On the other hand, when 9 VLANs are set, both sides can successfully ping each other.

    Best Regards,

    Xue

  • Hi,

    Can you please share ETHFW Log? 
    Have you observe any error while adding policers? As the no.of available policers are limited to 55.

    Also, are trying to ping A72 Linux client from Laptop or EthFw Server?

    Best Regards,
    Sudheer

  • ETHFW日志.docx

    Hello,

    the log information is provided in the file, but I didn't see any error message from the alarm system. Currently, we are trying to ping the A72 Linux client from the laptop. However, after configuring 13 VLANs, the laptop can only intermittently ping the board, while the board cannot ping the laptop at all.

    Best Regards,

    Xue

  • Hi,

    the log information is provided in the file, but I didn't see any error message from the alarm system. Currently, we are trying to ping the A72 Linux client from the laptop. However, after configuring 13 VLANs, the laptop can only intermittently ping the board, while the board cannot ping the laptop at all

    I could not not see any error prints from ETHFW, also only 9 VLANs only configured in the log.
    Also, I could see Ports are Link Down from Logs except Port-8.

    Can you please share the log with 13 VLANs,

    Also, can you please dump the ALE and Policer entries by following the patch in FAQ and share with us.


    Best Regards,
    Sudheer

  • root@megatron:/# cd data/
    root@megatron:/data# ./vx_app_arm_remote_log.out | grep MCU2_0
    [MCU2_0]      2.164920 s: CIO: Init ... Done !!!
    [MCU2_0]      2.164970 s: ### CPU Frequency = 1000000000 Hz
    [MCU2_0]      2.164993 s: CPU is running FreeRTOS
    [MCU2_0]      2.165008 s: APP: Init ... !!!
    [MCU2_0]      2.165023 s:
    [MCU2_0]      2.165033 s: Build time: 14:52:47 Sep  3 2024
    [MCU2_0]      2.165068 s: SCICLIENT: Init ... !!!
    [MCU2_0]      2.165188 s: SCICLIENT: DMSC FW version [9.2.4--v09.02.04 (Kool Koala)]
    [MCU2_0]      2.165215 s: SCICLIENT: DMSC FW revision 0x9
    [MCU2_0]      2.165234 s: SCICLIENT: DMSC FW ABI revision 3.1
    [MCU2_0]      2.165270 s: SCICLIENT: Init ... Done !!!
    [MCU2_0]      2.165288 s: UDMA: Init ... !!!
    [MCU2_0]      2.166073 s: UDMA: Init ... Done !!!
    [MCU2_0]      2.166106 s: UDMA: Init for CSITX/CSIRX ... !!!
    [MCU2_0]      2.166530 s: UDMA: Init for CSITX/CSIRX ... Done !!!
    [MCU2_0]      2.166559 s: MEM: Init ... !!!
    [MCU2_0]      2.166583 s: MEM: Created heap (DDR_LOCAL_MEM, id=0, flags=0x00000004) @ bb000000 of size 6291456 bytes !!!
    [MCU2_0]      2.166626 s: MEM: Created heap (L3_MEM, id=1, flags=0x00000000) @ 60000000 of size 262144 bytes !!!
    [MCU2_0]      2.166663 s: MEM: Created heap (DDR_CACHE_WT_MEM, id=7, flags=0x00000000) @ bb600000 of size 2097152 bytes !!!
    [MCU2_0]      2.166699 s: MEM: Init ... Done !!!
    [MCU2_0]      2.166716 s: IPC: Init ... !!!
    [MCU2_0]      2.166746 s: IPC: 11 CPUs participating in IPC !!!
    [MCU2_0]      2.166774 s: IPC: Waiting for HLOS to be ready ... !!!
    [MCU2_0]      6.269179 s: IPC: HLOS is ready !!!
    [MCU2_0]      6.276249 s: IPC: Init ... Done !!!
    [MCU2_0]      6.276289 s: APP: Syncing with 10 CPUs ... !!!
    [MCU2_0]      6.370898 s: APP: Syncing with 10 CPUs ... Done !!!
    [MCU2_0]      6.370926 s: REMOTE_SERVICE: Init ... !!!
    [MCU2_0]      6.371341 s: REMOTE_SERVICE: Init ... Done !!!
    [MCU2_0]      6.371421 s: ETHFW: Init ... !!!
    [MCU2_0]      6.478205 s: ETHFW: Warning: Using 6 MAC address(es) from static pool
    [MCU2_0]      6.478244 s: ETHFW: Warning: Using 6 MAC address(es) from static pool
    [MCU2_0]      6.478309 s: ETHFW: Shared multicasts:
    [MCU2_0]      6.478339 s: ETHFW:   01:00:5e:00:00:01
    [MCU2_0]      6.478363 s: ETHFW:   01:00:5e:00:00:fb
    [MCU2_0]      6.478386 s: ETHFW:   01:00:5e:00:00:fc
    [MCU2_0]      6.478410 s: ETHFW:   33:33:00:00:00:01
    [MCU2_0]      6.478433 s: ETHFW:   33:33:ff:1d:92:c2
    [MCU2_0]      6.478457 s: ETHFW:   01:80:c2:00:00:00
    [MCU2_0]      6.478480 s: ETHFW:   01:80:c2:00:00:03
    [MCU2_0]      6.478501 s: ETHFW: Reserved multicasts:
    [MCU2_0]      6.478525 s: ETHFW:   01:80:c2:00:00:0e
    [MCU2_0]      6.478548 s: ETHFW:   01:1b:19:00:00:00
    [MCU2_0]      6.478576 s: ETHFW: CPSW recovery is not enabled
    [MCU2_0]      6.478692 s: ==============================CPSW_9G=================================
    [MCU2_0]      6.478733 s: EnetMcm: CPSW_9G on MAIN NAVSS
    [MCU2_0]      6.487700 s: EnetPhy_getId: PHY 0: read ID1 register: 0xae02
    [MCU2_0]      6.487739 s:
    [MCU2_0]      6.487847 s: EnetPhy_getId: PHY 0: read ID2 register: 0x503a
    [MCU2_0]      6.487878 s:
    [MCU2_0]      6.487910 s: EnetPhy_bindDriver: PHY 0: OUI:2b8094 Model:03 Ver:0a <-> 'bcm89883' : OK
    [MCU2_0]      6.487938 s:
    [MCU2_0]      6.488907 s: EnetPhy_getId: PHY 1: read ID1 register: 0xae02
    [MCU2_0]      6.488934 s:
    [MCU2_0]      6.489017 s: EnetPhy_getId: PHY 1: read ID2 register: 0x503a
    [MCU2_0]      6.489041 s:
    [MCU2_0]      6.489066 s: EnetPhy_bindDriver: PHY 1: OUI:2b8094 Model:03 Ver:0a <-> 'bcm89883' : OK
    [MCU2_0]      6.489093 s:
    [MCU2_0]      6.490017 s: EnetPhy_getId: PHY 2: read ID1 register: 0xae02
    [MCU2_0]      6.490041 s:
    [MCU2_0]      6.490130 s: EnetPhy_getId: PHY 2: read ID2 register: 0x503a
    [MCU2_0]      6.490152 s:
    [MCU2_0]      6.490175 s: EnetPhy_bindDriver: PHY 2: OUI:2b8094 Model:03 Ver:0a <-> 'bcm89883' : OK
    [MCU2_0]      6.490202 s:
    [MCU2_0]      6.491128 s: EnetPhy_getId: PHY 3: read ID1 register: 0xae02
    [MCU2_0]      6.491153 s:
    [MCU2_0]      6.491242 s: EnetPhy_getId: PHY 3: read ID2 register: 0x503a
    [MCU2_0]      6.491264 s:
    [MCU2_0]      6.491287 s: EnetPhy_bindDriver: PHY 3: OUI:2b8094 Model:03 Ver:0a <-> 'bcm89883' : OK
    [MCU2_0]      6.491315 s:
    [MCU2_0]      6.492242 s: EnetPhy_getId: PHY 4: read ID1 register: 0xae02
    [MCU2_0]      6.492266 s:
    [MCU2_0]      6.492355 s: EnetPhy_getId: PHY 4: read ID2 register: 0x503a
    [MCU2_0]      6.492377 s:
    [MCU2_0]      6.492399 s: EnetPhy_bindDriver: PHY 4: OUI:2b8094 Model:03 Ver:0a <-> 'bcm89883' : OK
    [MCU2_0]      6.492426 s:
    [MCU2_0]      6.493354 s: EnetPhy_getId: PHY 5: read ID1 register: 0xae02
    [MCU2_0]      6.493380 s:
    [MCU2_0]      6.493467 s: EnetPhy_getId: PHY 5: read ID2 register: 0x503a
    [MCU2_0]      6.493489 s:
    [MCU2_0]      6.493512 s: EnetPhy_bindDriver: PHY 5: OUI:2b8094 Model:03 Ver:0a <-> 'bcm89883' : OK
    [MCU2_0]      6.493540 s:
    [MCU2_0]      6.494466 s: EnetPhy_getId: PHY 6: read ID1 register: 0xae02
    [MCU2_0]      6.494491 s:
    [MCU2_0]      6.494580 s: EnetPhy_getId: PHY 6: read ID2 register: 0x503a
    [MCU2_0]      6.494602 s:
    [MCU2_0]      6.494624 s: EnetPhy_bindDriver: PHY 6: OUI:2b8094 Model:03 Ver:0a <-> 'bcm89883' : OK
    [MCU2_0]      6.494652 s:
    [MCU2_0]      6.495580 s: EnetPhy_getId: PHY 7: read ID1 register: 0xae02
    [MCU2_0]      6.495607 s:
    [MCU2_0]      6.495693 s: EnetPhy_getId: PHY 7: read ID2 register: 0x503a
    [MCU2_0]      6.495715 s:
    [MCU2_0]      6.495738 s: EnetPhy_bindDriver: PHY 7: OUI:2b8094 Model:03 Ver:0a <-> 'bcm89883' : OK
    [MCU2_0]      6.495767 s:
    [MCU2_0]      6.496358 s: PHY 0 is alive
    [MCU2_0]      6.496378 s: PHY 1 is alive
    [MCU2_0]      6.496394 s: PHY 2 is alive
    [MCU2_0]      6.496411 s: PHY 3 is alive
    [MCU2_0]      6.496427 s: PHY 4 is alive
    [MCU2_0]      6.496444 s: PHY 5 is alive
    [MCU2_0]      6.496460 s: PHY 6 is alive
    [MCU2_0]      6.496477 s: PHY 7 is alive
    [MCU2_0]      6.499348 s: ETHFW: VLAN 2 member=0x101 virtMember=0x1 regMcastFlood=0x101 unregMcastFlood=0x101 untag=0x0
    [MCU2_0]      6.499397 s: ETHFW: VLAN 3 member=0x3 virtMember=0x1 regMcastFlood=0x3 unregMcastFlood=0x3 untag=0x0
    [MCU2_0]      6.499437 s: ETHFW: VLAN 4 member=0x2b virtMember=0x1 regMcastFlood=0x2b unregMcastFlood=0x2b untag=0x20
    [MCU2_0]      6.499478 s: ETHFW: VLAN 5 member=0xc5 virtMember=0x1 regMcastFlood=0xc5 unregMcastFlood=0xc5 untag=0xc0
    [MCU2_0]      6.499518 s: ETHFW: VLAN 6 member=0xa virtMember=0x1 regMcastFlood=0xa unregMcastFlood=0xa untag=0x0
    [MCU2_0]      6.499557 s: ETHFW: VLAN 7 member=0x11b virtMember=0x1 regMcastFlood=0x11b unregMcastFlood=0x11b untag=0x0
    [MCU2_0]      6.499598 s: ETHFW: VLAN 8 member=0x11b virtMember=0x1 regMcastFlood=0x11b unregMcastFlood=0x11b untag=0x0
    [MCU2_0]      6.499639 s: ETHFW: VLAN 10 member=0x11 virtMember=0x1 regMcastFlood=0x11 unregMcastFlood=0x11 untag=0x0
    [MCU2_0]      6.499680 s: ETHFW: VLAN 11 member=0x1df virtMember=0x1 regMcastFlood=0x1df unregMcastFlood=0x1df untag=0x1df
    [MCU2_0]      6.499722 s: ETHFW: VLAN 12 member=0x101 virtMember=0x1 regMcastFlood=0x101 unregMcastFlood=0x101 untag=0x0
    [MCU2_0]      6.499762 s: ETHFW: VLAN 13 member=0x3 virtMember=0x1 regMcastFlood=0x3 unregMcastFlood=0x3 untag=0x0
    [MCU2_0]      6.499801 s: ETHFW: VLAN 14 member=0x9 virtMember=0x1 regMcastFlood=0x9 unregMcastFlood=0x9 untag=0x0
    [MCU2_0]      6.499841 s: ETHFW: VLAN 20 member=0x5 virtMember=0x1 regMcastFlood=0x5 unregMcastFlood=0x5 untag=0x0
    [MCU2_0]      6.512486 s: ETHFW: 13 VLAN entries added in ALE table
    [MCU2_0]      6.512707 s:
    [MCU2_0] ETHFW Version   : 0.04.00
    [MCU2_0]      6.512735 s: ETHFW Build Date: Sep  3, 2024
    [MCU2_0]      6.512755 s: ETHFW Build Time: 14:52:46
    [MCU2_0]      6.512771 s: ETHFW Commit SHA: 1df6b146
    [MCU2_0]      6.512807 s: ETHFW: Init ... DONE !!!
    [MCU2_0]      6.513025 s: unibase-1.1.5-jacinto
    [MCU2_0]      6.513512 s: Starting lwIP, local interface IP is dhcp-enabled
    [MCU2_0]      6.519067 s: ETHFW: Host MAC address: 48:49:52:41:51:93
    [MCU2_0]      6.521321 s: ETHFW: ETHFW: Enable gPTP on MAC port 3 (tilld3)
    [MCU2_0]      6.521358 s: ETHFW: ETHFW: Enable gPTP on MAC port 5 (tilld5)
    [MCU2_0]      6.522176 s: [LWIPIF_LWIP] Enet LLD netif initialized successfully
    [MCU2_0]      6.526486 s: [LWIPIF_LWIP_IC] Interface started successfully
    [MCU2_0]      6.526527 s: [LWIPIF_LWIP_IC] NETIF INIT SUCCESS
    [MCU2_0]      6.530619 s: [LWIPIF_LWIP_IC] Interface started successfully
    [MCU2_0]      6.530653 s: [LWIPIF_LWIP_IC] NETIF INIT SUCCESS
    [MCU2_0]      6.530713 s: Added interface 'br3', IP is 0.0.0.0
    [MCU2_0]      6.595400 s: ETHFW: EthFwTsn_gptpYangConfig:domain=0
    [MCU2_0]      6.612977 s: ETHFW: ETHFW: TimeSync PTP enabled
    [MCU2_0]      6.613006 s: ETHFW: Remote server Init ... !!!
    [MCU2_0]      6.613277 s: EnetPhy_getLinkCfg: PHY 0: PHY is not linked, can't get link config
    [MCU2_0]      6.613312 s:
    [MCU2_0]      6.613332 s: Cpsw_handleLinkUp: Port 1: Failed to get PHY link config
    [MCU2_0]      6.613357 s: : -12
    [MCU2_0]      6.613377 s: Cpsw_periodicTick: Port 1: Failed to handle link change
    [MCU2_0]      6.613402 s: : -12
    [MCU2_0]      6.613618 s: EnetPhy_getLinkCfg: PHY 1: PHY is not linked, can't get link config
    [MCU2_0]      6.613644 s:
    [MCU2_0]      6.613661 s: Cpsw_handleLinkUp: Port 2: Failed to get PHY link config
    [MCU2_0]      6.613686 s: : -12
    [MCU2_0]      6.613704 s: Cpsw_periodicTick: Port 2: Failed to handle link change
    [MCU2_0]      6.613729 s: : -12
    [MCU2_0]      6.613992 s: CpswMacPort_checkSgmiiStatus: MAC 3: SGMII link parter config port: link up: 1-Gbps Full-Duplex
    [MCU2_0]      6.614033 s:
    [MCU2_0]      6.614060 s: Cpsw_handleLinkUp: Port 3: Link up: 1-Gbps auto
    [MCU2_0]      6.614083 s:
    [MCU2_0]      6.614321 s: EnetPhy_getLinkCfg: PHY 3: PHY is not linked, can't get link config
    [MCU2_0]      6.614349 s:
    [MCU2_0]      6.614367 s: Cpsw_handleLinkUp: Port 4: Failed to get PHY link config
    [MCU2_0]      6.614393 s: : -12
    [MCU2_0]      6.614411 s: Cpsw_periodicTick: Port 4: Failed to handle link change
    [MCU2_0]      6.614436 s: : -12
    [MCU2_0]      6.614672 s: EnetPhy_getLinkCfg: PHY 4: PHY is not linked, can't get link config
    [MCU2_0]      6.614698 s:
    [MCU2_0]      6.614715 s: Cpsw_handleLinkUp: Port 5: Failed to get PHY link config
    [MCU2_0]      6.614741 s: : -12
    [MCU2_0]      6.614759 s: Cpsw_periodicTick: Port 5: Failed to handle link change
    [MCU2_0]      6.614784 s: : -12
    [MCU2_0]      6.615028 s: EnetPhy_getLinkCfg: PHY 5: PHY is not linked, can't get link config
    [MCU2_0]      6.615058 s:
    [MCU2_0]      6.615078 s: Cpsw_handleLinkUp: Port 6: Failed to get PHY link config
    [MCU2_0]      6.615104 s: : -12
    [MCU2_0]      6.615122 s: Cpsw_periodicTick: Port 6: Failed to handle link change
    [MCU2_0]      6.615147 s: : -12
    [MCU2_0]      6.615375 s: EnetPhy_getLinkCfg: PHY 6: PHY is not linked, can't get link config
    [MCU2_0]      6.615402 s:
    [MCU2_0]      6.615420 s: Cpsw_handleLinkUp: Port 7: Failed to get PHY link config
    [MCU2_0]      6.615445 s: : -12
    [MCU2_0]      6.615463 s: Cpsw_periodicTick: Port 7: Failed to handle link change
    [MCU2_0]      6.615488 s: : -12
    [MCU2_0]      6.615740 s: CpswMacPort_checkSgmiiStatus: MAC 8: SGMII link parter config port: link up: 1-Gbps Full-Duplex
    [MCU2_0]      6.615775 s:
    [MCU2_0]      6.615795 s: Cpsw_handleLinkUp: Port 8: Link up: 1-Gbps auto
    [MCU2_0]      6.615818 s:
    [MCU2_0]      6.617138 s: ETHFW: Virtual port configuration:
    [MCU2_0]      6.617480 s: ETHFW: CpswProxyServer: initialization completed (core: mcu2_0)
    [MCU2_0]      6.617516 s: ETHFW: Remote server Init ... DONE !!!
    [MCU2_0]      6.637986 s: ETHFW: VIRT_PORT_INFO | C2S | core=0 endpt=1026
    [MCU2_0]      6.638024 s: ETHFW: VIRT_PORT_INFO | S2C | switchPortMask=1 macPortMask=0
    [MCU2_0]      6.638970 s: ETHFW: ATTACH | C2S | core=0 endpt=1026 virtPort=0
    [MCU2_0]      6.640932 s: ETHFW: ATTACH | S2C | token=0 rxMtu=1522 features=9
    [MCU2_0]      6.641921 s: ETHFW: ALLOC_RX | C2S | core=0 endpt=1026 token=0
    [MCU2_0]      6.646925 s: ETHFW: ALLOC_RX | S2C | flow=114,0 rxPsil=0x4a00 status=0
    [MCU2_0]      6.647970 s: ETHFW: ALLOC_TX | C2S | core=0 endpt=1026 token=0
    [MCU2_0]      6.648026 s: ETHFW: ALLOC_TX | S2C | txPsil=0xca04 status=0
    [MCU2_0]      6.648952 s: ETHFW: ALLOC_MAC | C2S | core=0 endpt=1026 token=0
    [MCU2_0]      6.649006 s: ETHFW: ALLOC_MAC | S2C | macAddr=48:49:52:41:50:93 status=0
    [MCU2_0]      6.652680 s: INF:cbase:tilld3: has mac: 48:49:52:41:51:93
    [MCU2_0] INF:cbase:tilld5: has mac: 48:49:52:41:51:93
    [MCU2_0] INF:cbase:cb_lld_task_create: Uniconf Task stack_size=16384
    [MCU2_0] INF:cbase:cb_rawsock_open:combase-1.1.4-jacinto
    [MCU2_0] INF:cbase:cb_rawsock_open:dmaTxChId=-1 numRxChannel
    [MCU2_0]      6.652798 s: =0 dmaRxChId=-1 nTxPkts=0 nRxPkts=0 pktSize=0
    [MCU2_0] INF:cbase:cb_lld_task_create: uniconf_hwal_thread stack_size=16384
    [MCU2_0] INF:cbase:cb_lld_task_create: gPTP Task stack_size=16384
    [MCU2_0] INF:gptp:gptpman_run:max_domains=1, max_ports=2
    [MCU2_0] INF:cbase:cb_rawsock_open:comba
    [MCU2_0]      6.652979 s: e-1.1.4-jacinto
    [MCU2_0] INF:cbase:cb_rawsock_open:dmaTxChId=-1 numRxChannels=0 dmaRxChId=-1 nTxPkts=0 nRxPkts=0 pktSize=0
    [MCU2_0] INF:cbase:DmaOpen: TxChNum -1
    [MCU2_0] INF:cbase:DmaOpen: Rx startIdx 114 flowId 4
    [MCU2_0] INF:cbase:LLDEnetFilter:destmac:01:80:C2:00:00:0E, vlanId:0,
    [MCU2_0]      6.653081 s: thType:0x88f7
    [MCU2_0] INF:gptp:dev:tilld3 open success
    [MCU2_0] INF:gptp:dev:tilld5 open success
    [MCU2_0] INF:gptp:gptpnet_init:Open lldtsync OK!
    [MCU2_0] INF:gptp:IEEE1588-2019 performance monitoring disabled.
    [MCU2_0] INF:gptp:onenet_activate:tilld3 status=0, duplex=1, speed=0Mbps
    [MCU2_0] INF:gptp:
    [MCU2_0]      6.653167 s: nenet_activate:tilld5 status=0, duplex=1, speed=0Mbps
    [MCU2_0] INF:ubase:GPTP_MEDIUM_ALLOC: fragsize=16 fragused/fragnum=835/1426 (58
    [MCU2_0] INF:ubase:GPTP_SMALL_ALLOC: fragsize=4 fragused/fragnum=19/97 (19
    [MCU2_0] INF:ubase:SM_DATA_INST: fragsize=8 fragused/fragnum=20
    [MCU2_0]      6.653240 s: 2/3806 (52
    [MCU2_0] INF:gptp:gptpman_run:GPTPNET_INTERVAL_TIMEOUT_NSEC=125000000
    [MCU2_0]      6.666870 s: FVID2: Init ... !!!
    [MCU2_0]      6.666933 s: FVID2: Init ... Done !!!
    [MCU2_0]      6.666954 s: SCICLIENT: Sciclient_pmSetModuleState module=271 state=2
    [MCU2_0]      6.667048 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]      6.667073 s: SCICLIENT: Sciclient_pmSetModuleState module=275 state=2
    [MCU2_0]      6.667146 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]      6.667166 s: SCICLIENT: Sciclient_pmSetModuleState module=276 state=2
    [MCU2_0]      6.667222 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]      6.667242 s: SCICLIENT: Sciclient_pmSetModuleState module=270 state=2
    [MCU2_0]      6.667304 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]      6.667333 s: VHWA: VPAC Init ... !!!
    [MCU2_0]      6.667350 s: SCICLIENT: Sciclient_pmSetModuleState module=399 state=2
    [MCU2_0]      6.667435 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]      6.667456 s: VHWA: LDC Init ... !!!
    [MCU2_0]      6.669124 s: VHWA: LDC Init ... Done !!!
    [MCU2_0]      6.669160 s: VHWA: MSC Init ... !!!
    [MCU2_0]      6.675024 s: VHWA: MSC Init ... Done !!!
    [MCU2_0]      6.675061 s: VHWA: NF Init ... !!!
    [MCU2_0]      6.675934 s: VHWA: NF Init ... Done !!!
    [MCU2_0]      6.675969 s: VHWA: VISS Init ... !!!
    [MCU2_0]      6.681324 s: VHWA: VISS Init ... Done !!!
    [MCU2_0]      6.681363 s: VHWA: VPAC Init ... Done !!!
    [MCU2_0]      6.681394 s:  VX_ZONE_INIT:Enabled
    [MCU2_0]      6.681412 s:  VX_ZONE_ERROR:Enabled
    [MCU2_0]      6.681430 s:  VX_ZONE_WARNING:Enabled
    [MCU2_0]      6.682776 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target MCU2-0
    [MCU2_0]      6.682959 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target VPAC_NF
    [MCU2_0]      6.683057 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target VPAC_LDC1
    [MCU2_0]      6.683138 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target VPAC_MSC1
    [MCU2_0]      6.683213 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target VPAC_MSC2
    [MCU2_0]      6.683316 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target VPAC_VISS1
    [MCU2_0]      6.683426 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target CAPTURE1
    [MCU2_0]      6.683531 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target CAPTURE2
    [MCU2_0]      6.683622 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target CAPTURE3
    [MCU2_0]      6.683719 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target CAPTURE4
    [MCU2_0]      6.683806 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target CAPTURE5
    [MCU2_0]      6.683976 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target CAPTURE6
    [MCU2_0]      6.684078 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target CAPTURE7
    [MCU2_0]      6.684181 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target CAPTURE8
    [MCU2_0]      6.684273 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target CAPTURE9
    [MCU2_0]      6.684360 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target CAPTURE10
    [MCU2_0]      6.684452 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target CAPTURE11
    [MCU2_0]      6.684556 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target CAPTURE12
    [MCU2_0]      6.684649 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target DISPLAY1
    [MCU2_0]      6.684742 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target DISPLAY2
    [MCU2_0]      6.684833 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target CSITX
    [MCU2_0]      6.685018 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target CSITX2
    [MCU2_0]      6.685108 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target DSS_M2M1
    [MCU2_0]      6.685187 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target DSS_M2M2
    [MCU2_0]      6.685272 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target DSS_M2M3
    [MCU2_0]      6.685366 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target DSS_M2M4
    [MCU2_0]      6.685403 s:  VX_ZONE_INIT:[tivxInitLocal:136] Initialization Done !!!
    [MCU2_0]      6.685427 s: APP: OpenVX Target kernel init ... !!!
    [MCU2_0]      6.692639 s: APP: OpenVX Target kernel init ... Done !!!
    [MCU2_0]      6.692677 s: CSI2RX: Init ... !!!
    [MCU2_0]      6.692694 s: SCICLIENT: Sciclient_pmSetModuleState module=189 state=2
    [MCU2_0]      6.692761 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]      6.692785 s: SCICLIENT: Sciclient_pmSetModuleState module=72 state=2
    [MCU2_0]      6.692926 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]      6.692954 s: SCICLIENT: Sciclient_pmSetModuleState module=73 state=2
    [MCU2_0]      6.693030 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]      6.693403 s: CSI2RX: Init ... Done !!!
    [MCU2_0]     38.196136 s: EnetPhy_getLinkCfg: PHY 0: PHY is not linked, can't get link config
    [MCU2_0]     38.196173 s:
    [MCU2_0]     38.196192 s: Cpsw_handleLinkUp: Port 1: Failed to get PHY link config
    [MCU2_0]     38.196219 s: : -12
    [MCU2_0]     38.196237 s: Cpsw_periodicTick: Port 1: Failed to handle link change
    [MCU2_0]     38.196262 s: : -12
    [MCU2_0]     38.196466 s: EnetPhy_getLinkCfg: PHY 1: PHY is not linked, can't get link config
    [MCU2_0]     38.196493 s:
    [MCU2_0]     38.196511 s: Cpsw_handleLinkUp: Port 2: Failed to get PHY link config
    [MCU2_0]     38.196537 s: : -12
    [MCU2_0]     38.196555 s: Cpsw_periodicTick: Port 2: Failed to handle link change
    [MCU2_0]     38.196580 s: : -12
    [MCU2_0]     38.196941 s: EnetPhy_getLinkCfg: PHY 3: PHY is not linked, can't get link config
    [MCU2_0]     38.196971 s:
    [MCU2_0]     38.196990 s: Cpsw_handleLinkUp: Port 4: Failed to get PHY link config
    [MCU2_0]     38.197015 s: : -12
    [MCU2_0]     38.197033 s: Cpsw_periodicTick: Port 4: Failed to handle link change
    [MCU2_0]     38.197058 s: : -12
    [MCU2_0]     38.197287 s: EnetPhy_getLinkCfg: PHY 4: PHY is not linked, can't get link config

    Hi,

    I tested in the scenario of configuring 13 VLANs on the board and used Port-3 for testing, and the log content is attached.

    The content shown in the picture is a case of intermittent communication success, and the prerequisite for successful communication is that the laptop ping board is successful.

    I have also tried to obtain the ALE and police entries you mentioned, but were unsuccessful, so I can only provide you with the screenshots of the ping process and logs.

  • Hi,

    Are you observing the Link Up and Link Down on Port-3 continuously. If so, there is a possibility for the fail and success of ping.
    I could observe this from the logs shared above.

    Also, can you please share me the "ifconfig" command data/information of A72 and test PC side.

    Best Regards,
    Sudheer

  • Hi,

    According to observation, both ends are linked.

    The "ifconfig" command data of A72 is shown in the first picture, and that of the test PC side is shown in the second picture.

  • Hi,

    But from the above ETHFW Logs, it shows PHY3 is not linked. 
    [MCU2_0]     38.196941 s: EnetPhy_getLinkCfg: PHY 3: PHY is not linked, can't get link config

    What is the PHY ID connected to Port-3, can you please confirm there was no Link Down and Up on that PHY.
    Kindly share the whole ETHFW log while running ping.
    Also, can you please confirm HLOS running on A72? is it Linux or QNX?

    Also, can you please confirm join VLAN request sent from A72 to ETHFW on the required VLANs (VLAN-8 in this case as ping is running on VLAN-8 tag)?

    Best Regards,
    Sudheer

  • Hi,

    PHY3 is related to MAC Port-4. We use MAC Port-3 for testing, so PHY3 is not linked.

    Just as the above ETHFW logs, it shows MAC Port-3 is linked.

    [MCU2_0]      6.613992 s: CpswMacPort_checkSgmiiStatus: MAC 3: SGMII link parter config port: link up: 1-Gbps Full-Duplex

    HLOS running on A72 is Linux and I have join VLAN request sent from A72 to ETHFW on the required VLANs.

  • Hi,

    Can you please confirm have you made any other changes other than 13 VLANs configuration? If yes, can you please share the changes.

    Let me check on my end once and update you the status early next week.

    Best Regards,
    Sudheer

  • Hi,

    We add 13VLANs configuration by EthFwVlan_VlanCfg gEthApp_vlanCfg in the file app_ethfw_freertos.c. At the same time, we also modify the macro "ETHFWVLAN_VLANS_MAX" to 15U.

    Best Regards,

    Xue

  • Hi,

    We add 13VLANs configuration by EthFwVlan_VlanCfg gEthApp_vlanCfg in the file app_ethfw_freertos.c. At the same time, we also modify the macro "ETHFWVLAN_VLANS_MAX" to 15U.

    Thanks for the details, let us check on our side and update you on early next week.

    Best Regards,
    Sudheer

  • Hi,

    May I ask if you can ping your laptop normally while setting up 13 VLANs? Is there any new progress?

    Best Regard,

    Xue

  • Hi,

    How you have joined for VLAN from Linux client to ETHFW?
    I think Linux cpsw-proxy-client driver doesn't support the VLAN functionality.

    May I ask if you can ping your laptop normally while setting up 13 VLANs? Is there any new progress?

    I have tried non VLAN ping with ETHFW Server & Linux virtual switch client, It was working as expected and could not see any issue.

    Best Regards,
    Sudheer

  • Hi,

    We implement this funcation like the picture below.

    We need to set up VLAN and the number of VLANs exceeds 10. Could you please test it?

    Best Regards,

    Xue

  • Hi,

    We need to set up VLAN and the number of VLANs exceeds 10. Could you please test it?

    Can you please share whole ETHFW logs? Also, can you please share ALE & Policer dump by following the patch in FAQ 

    There are limited no.of policers, due to which you can't add more policers.

    Please refer to partition of policers entries from "gEthFw_policeerTablePartSize" from ethfw_api.c file.
    Partition-1 is for VEPA (High Priority) at top of policer entries -> 10 entries reserved.
    Parititon-2 is for QOS, Custom Policers by clients -> 20 entries reserved.
    Parititon-3 is for MAC Only Ports -> 10 entries reserved.
    Partition-4 is for general entries > 55

    So, only 55 policers can only be allowed. beyond the request will result in failure of adding policers.

  • Hi,

    I have verified ping with Linux Client on VLAN-8. (Added 12 VLAN entries to ETHFW and Updated Max VLANs to 15)

    I have made few changes as join VLAN is not supported in Linux client.
    1. Modified ALE entry of VLAN8 with Port mask of Host Port as well, default ETHFW will not add Host Port as part of VLAN member & mask
    2. Also, there was VLAN + Broadcast MAC entry default with ETHFW I have commented addition of this entry.

    As I have not joined VLAN, few policers were not created in my case.

    After above, ping from board to Test PC. I am able to ping successfully without any packet loss.

    Test Setup:
    1. Created VLAN 8 on Board A72 side
    2. Also, created VLAN8 interface on Test PC.
    3. Configured both A72 & Test PC VLAN8 interface with IP addresses in same domain (192.168.5.100 A72's, 192.168.5.200 Test PCs)

    Please refer to below log for better understanding.




    Best Regards,
    Sudheer

  • Hi,

    What modifications have you made to the RTOS code? Could you provide me with an explanatory file or screenshots?

    Best Regards,

    Xue

  • HI,

    What modifications have you made to the RTOS code? Could you provide me with an explanatory file or screenshots?

    I have not modified the code. I have updated VLAN ALE table using GEL scripts in SDK.

    There are GEL scripts in ENET pdk (pdk/packages/ti/drv/enet/tools/debug_gels/cpsw_ale_print_table.gel), I have connected to CCS debugger and performed following steps.
    1. Dump CPSW9G ALE table.
    2. Edited the VLAN 8 entry with Host Port is part of Member List & Mask.

    Refer to below for the ALE VLAN-8 difference.


    After modifying VALN entry, ping success from A72 to Test PC with VLAN8.

    2. Also, there was VLAN + Broadcast MAC entry default with ETHFW I have commented addition of this entry.

    Sorry above modification is not required. Just Modify VLAN8 entry is sufficient.

    Best Regards,
    Sudheer

  • Hi,

    I modified the RTOS code to add VLANs to the ALE table. When I increased the value of the macro to 20, it seemed that I had successfully added the VLANs to the ALE table. The result of using the corresponding function to dump the ALE table is shown in the figure.

    But once the number of newly added VLANs exceeds 9, the communication situation at both ends will be as described earlier.

    Do you have any thoughts on the causes of this problem? I also notice that in the RTOS0900's code, there are also related settings for the policer after the code of adding VLANs to the ALE table. If the policer code is not implemented, will it affect the process of the communication?

    Best regards,

    Xue

  • Hi,

    Do you have any thoughts on the causes of this problem? I also notice that in the RTOS0900's code, there are also related settings for the policer after the code of adding VLANs to the ALE table. If the policer code is not implemented, will it affect the process of the communication?

    The forwarding of messages will be based on ALE and policer rules.

    I have tested by adding 12 VLANs and joined on VLAN-8 from Linux (Modified the VLAN entry with Host Port mask). I could not see any issue in ping with VLAN-8 (I have tested ping with A72 VLAN-8 interface (MAC is same as A72's virtual interface) and Test PC VLAN-8 interface (MAC is same as Test PC interface MAC)

    Please dump full ALE & policer table and check based on your ping request whether all required entries are present or not. If not available, then ALE may be learned the required and establish ping success after certain time of no hit to ALE will lost.

    Best Regards,
    Sudheer

  • Hi,

    When I set 8 VLANs and 13 VLANs separately, the policer table entries are the same, as shown in the figure.

    RTOS0900 sets a policer for each newly added static VLAN in a for loop, but the implementation of 0902 feels different. It still seems like setting a policer to bind MAC address and VLAN. Is it true that the implementation of RTOS0902 adding a policer entry to VLAN has changed?

    Best Regards,

    Xue

  • Hi, 

    but the implementation of 0902 feels different. It still seems like setting a policer to bind MAC address and VLAN. Is it true that the implementation of RTOS0902 adding a policer entry to VLAN has changed?

    Yes, the classifier entry is based on MAC Address of remote client + Vlan, when client request to join the VLAN.

    Best Regards, 

    Sudheer