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.

TDA4AL-Q1: eth0 fail to transfer data

Part Number: TDA4AL-Q1

Hi Experts

on TDA4 A core,  we do tcp transfer data with PC, data rate is a little big, > 40MBps.

At the begining, tcp transfter is ok.

After some time, maybe serveral hours later, tcp transfer data faill, eth0 fail to transfer data, PC ping TDA4 fails.

And when fails, if type cmd "ifconfig eth0 down" and "ifconfig eth0 up", then  PC ping TDA4 ok, TDA4 transfer data by eth0 become ok.

Below is our analyse, we use trace-cmd tool to catch log.

This picture shows nng-task, nng-task is a middleware for data transfer by tcp.

In this picture, after timestamp 947.331683, cpu won't schedule this nng-task.

irq/78-c200000 is eth0 tx interrupt, 

This pictures shows after timestamp 945.428927 eth0 tx interrupt be triggered less and less.

In this time period, cpu keep handling irq-78 eth tx, this irq schedule to swapper/0 process, then be wakeup, .... repeat this again.

It seems DMA cann't handle eth tx ringbuffer data to hardware ethernet. this is our guess, could you please analyse.

irq/80-c200000, which is eth0 rx int.

This pictures shows after timestamp 945.359173, eth0 rx interrupt be triggered less and less.

 

Above is our analyse, could you please help to analyse.

Many thanks!

  • Hi TI Experts,

    We are using the J721S2 v8.5 SDK.

    According to our FAE-Tony's suggestion, we tried to modify the TSTAMP_EN reg of MAIN_CPSW CPTS.

    Here is the PDK patch from Tony:

    From 448bb1612cd05a9e01bf6d1e852cb0e30ee624f9 Mon Sep 17 00:00:00 2001
    From: Misael Lopez Cruz <misael.lopez@ti.com>
    Date: Tue, 1 Aug 2023 00:40:54 -0500
    Subject: [PATCH] Disable CPTS host receive timestamping - related to MAC port
     lockup
    
    Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
    ---
     ethfw/src/ethfw.c | 4 ++++
     1 file changed, 4 insertions(+)
    
    diff --git a/ethfw/src/ethfw.c b/ethfw/src/ethfw.c
    index 45a2e3b..6a62eb4 100644
    --- a/ethfw/src/ethfw.c
    +++ b/ethfw/src/ethfw.c
    @@ -947,6 +947,7 @@ void EthFw_initConfigParams(Enet_Type enetType,
         CpswAle_Cfg *aleCfg = &cpswCfg->aleCfg;
         Cpsw_VlanCfg *vlanCfg = &cpswCfg->vlanCfg;
         CpswHostPort_Cfg *hostPortCfg = &cpswCfg->hostPortCfg;
    +    CpswCpts_Cfg *cptsCfg = &cpswCfg->cptsCfg;
         EnetRm_ResCfg *resCfg = &cpswCfg->resCfg;
         uint32_t instId = 0U;
     
    @@ -983,6 +984,9 @@ void EthFw_initConfigParams(Enet_Type enetType,
         resCfg->selfCoreId = EnetSoc_getCoreId();
         resCfg->macList.numMacAddress = 0U;
     
    +    /* Disable CPTS host receive timestamping - related to MAC port lockup */
    +    cptsCfg->hostRxTsEn = false;
    +
         /* VLAN configuration */
         vlanCfg->vlanAware = true;
     
    -- 
    2.17.1
    
    

    We made the same modification in Linux kernel:

    diff --git a/drivers/net/ethernet/ti/am65-cpsw-nuss.c b/drivers/net/ethernet/ti/am65-cpsw-nuss.c
    index b03e94cb0..72569162e 100644
    --- a/drivers/net/ethernet/ti/am65-cpsw-nuss.c
    +++ b/drivers/net/ethernet/ti/am65-cpsw-nuss.c
    @@ -1419,7 +1419,9 @@ static int am65_cpsw_nuss_hwtstamp_set(struct net_device *ndev,
            writel(ts_ctrl, port->port_base + AM65_CPSW_PORTN_REG_TS_CTL);
    
            /* en/dis RX timestamp */
    -       am65_cpts_rx_enable(common->cpts, port->rx_ts_enabled);
    +       pr_info("[DEBUG]en/dis RX timestamp, current status: \n");
    +       // am65_cpts_rx_enable(common->cpts, port->rx_ts_enabled);
    +       am65_cpts_rx_enable(common->cpts, false);
    
            return copy_to_user(ifr->ifr_data, &cfg, sizeof(cfg)) ? -EFAULT : 0;
    }
    @@ -2084,6 +2086,7 @@ static int am65_cpsw_init_cpts(struct am65_cpsw_common *common)
                    return ret;
            }
            common->cpts = cpts;
    +       
            /* Forbid PM runtime if CPTS is running.
             * K3 CPSWxG modules may completely lose context during ON->OFF
             * transitions depending on integration.
    diff --git a/drivers/net/ethernet/ti/am65-cpts.c b/drivers/net/ethernet/ti/am65-cpts.c
    index d4bc58bb4..8928ccd99 100644
    --- a/drivers/net/ethernet/ti/am65-cpts.c
    +++ b/drivers/net/ethernet/ti/am65-cpts.c
    @@ -869,10 +869,12 @@ void am65_cpts_rx_enable(struct am65_cpts *cpts, bool en)
    
            mutex_lock(&cpts->ptp_clk_lock);
            val = am65_cpts_read32(cpts, control);
    +       pr_info("[DEBUG] ====before==== %d\n", val & AM65_CPTS_CONTROL_TSTAMP_EN);
            if (en)
                    val |= AM65_CPTS_CONTROL_TSTAMP_EN;
            else
                    val &= ~AM65_CPTS_CONTROL_TSTAMP_EN;
    +       pr_info("[DEBUG] ====after==== %d\n", val & AM65_CPTS_CONTROL_TSTAMP_EN);
            am65_cpts_write32(cpts, val, control);
            mutex_unlock(&cpts->ptp_clk_lock);
    }
    

    When we applied this change, our PTP function was unable to synchronize time with another linux os.

    Could you help us confirm that the problem we encountered and the problem fixed by this patch are caused by the same reason?

    And is our linux patch correct? 

    Best Regards

    Rong

  • Hi,

    Can you please clarify the following:

    1. Do you see anything in the kernel logs at this timestamps?
    2. Is the nng-task using socket based communication or is it directly queuing it to device?
    3. Is the data predominantly tx or rx or is it balanced?
    4. What is the CPU loading like during this time?

    40MBps(320Mbps) is not a significant throughput considering the device is validated for 950Mbps traffic. This issue was not replicated using iperf to send TCP data for an extended period of time.

    Regards,
    Tanmay

  • 1.Currently demsg does not have any error information.

    2.NNG is a communication middleware, its implementation is based on socket, you can think of it as TCP/UDP.

    3.Mainly uses TCP to send data.

    4.CPU0 and CPU1 total 114%. It's actually 50%.

  • Hi,

    When we applied this change, our PTP function was unable to synchronize time with another linux os.

    Could you help us confirm that the problem we encountered and the problem fixed by this patch are caused by the same reason?

    And is our linux patch correct? 

    The patch is correct, but it will disable the hardware timestamping function. So PTP not working with this patch is expected.

    The eth tx is finally controlled by the function "am65_cpsw_nuss_ndo_slave_xmit()" in "drivers/net/ethernet/ti/am65-cpsw-nuss.c". Can you see if packet are being scheduled by this function properly.

    Regards,
    Tanmay

  • Hi, Tanmay Patil
          We did a test on the "am65_cpsw_nuss_ndo_slave_xmit()" function.The results are consistent with our trace results above.
          When the network ping fails, "am65_cpsw_nuss_ndo_slave_xmit()" function will still be called, but it will be called less.
          This phenomenon is similar to the triggering of IQR78(tx irq).Combined with testing, these packets should be UDP packets.
         In this time period, before timestamp  2375.842919,the network ping success. 
         After timestamp  2375.842919,the network ping failed.
         At the same time, we did another test about TSTAMP_EN flag. 
         In order to verify the TSTAMP_EN flag problem mentioned by Tony,we change bit3 in CPSW_public to 0 by devmem2 and change the PTP timestamp to a soft timestamp.
        The result is still a network crash.
        By the way, I would like to ask a PTP related question.I understand that PTP is based on IEEE 1588 protocol implementation, if the TSTAMP_EN is 0, the network packet is missing this information, when the network packet passes through the phy or switch hardware, the hardware can not be stamped into the register.
        

    Best Regards

    Rong

        
  • Hello Tanmay

    We got a new phenomenon.

    While the network connection was down, we used a USB serial cable to log in to TDA4. Only during the execution of tcpdump, the computer was able to ping TDA4. But ssh can not log in to TDA4.

    After we check the logic of tcpdump, we think it caused by the default session:promiscuous.

    So we did this to verify:

    when the network connection was down, ping fail and ssh also fail. then using "ifconfig eth0 promisc",PING could successful but ssh fail, as we expected.

    The "ifconfig eth0 -promisc" command turns off promiscuous mode, and can be viewed through "cat /sys/class/net/eth0/flags". If the value is 0x1003, it indicates non-promiscuous mode, and if the value is 0x1103, it indicates promiscuous mode.

    The next file is the log of ethtool eth0, maybe you can find some points.

    0121.ethtool_eth0.txt
    NIC statistics:
         p0_rx_good_frames: 97780368
         p0_rx_broadcast_frames: 183
         p0_rx_multicast_frames: 27040
         p0_rx_crc_errors: 0
         p0_rx_oversized_frames: 0
         p0_rx_undersized_frames: 0
         p0_ale_drop: 0
         p0_ale_overrun_drop: 0
         p0_rx_octets: 1023086539
         p0_tx_good_frames: 1451869
         p0_tx_broadcast_frames: 28
         p0_tx_multicast_frames: 10373
         p0_tx_octets: 2033951188
         p0_tx_64B_frames: 126795
         p0_tx_65_to_127B_frames: 865237
         p0_tx_128_to_255B_frames: 361141
         p0_tx_256_to_511B_frames: 1438830
         p0_tx_512_to_1023B_frames: 2841201
         p0_tx_1024B_frames: 93599033
         p0_net_octets: 3057037727
         p0_rx_bottom_fifo_drop: 0
         p0_rx_port_mask_drop: 0
         p0_rx_top_fifo_drop: 0
         p0_ale_rate_limit_drop: 0
         p0_ale_vid_ingress_drop: 492405
         p0_ale_da_eq_sa_drop: 0
         p0_ale_block_drop: 0
         p0_ale_secure_drop: 0
         p0_ale_auth_drop: 0
         p0_ale_unknown_ucast: 0
         p0_ale_unknown_ucast_bytes: 0
         p0_ale_unknown_mcast: 0
         p0_ale_unknown_mcast_bytes: 0
         p0_ale_unknown_bcast: 0
         p0_ale_unknown_bcast_bytes: 0
         p0_ale_pol_match: 0
         p0_ale_pol_match_red: 0
         p0_ale_pol_match_yellow: 0
         p0_ale_mcast_sa_drop: 0
         p0_ale_dual_vlan_drop: 0
         p0_ale_len_err_drop: 0
         p0_ale_ip_next_hdr_drop: 0
         p0_ale_ipv4_frag_drop: 0
         p0_tx_mem_protect_err: 0
         p0_tx_pri0: 0
         p0_tx_pri1: 0
         p0_tx_pri2: 0
         p0_tx_pri3: 0
         p0_tx_pri4: 0
         p0_tx_pri5: 0
         p0_tx_pri6: 0
         p0_tx_pri7: 0
         p0_tx_pri0_bcnt: 0
         p0_tx_pri1_bcnt: 0
         p0_tx_pri2_bcnt: 0
         p0_tx_pri3_bcnt: 0
         p0_tx_pri4_bcnt: 0
         p0_tx_pri5_bcnt: 0
         p0_tx_pri6_bcnt: 0
         p0_tx_pri7_bcnt: 0
         p0_tx_pri0_drop: 0
         p0_tx_pri1_drop: 0
         p0_tx_pri2_drop: 0
         p0_tx_pri3_drop: 0
         p0_tx_pri4_drop: 0
         p0_tx_pri5_drop: 0
         p0_tx_pri6_drop: 0
         p0_tx_pri7_drop: 0
         p0_tx_pri0_drop_bcnt: 0
         p0_tx_pri1_drop_bcnt: 0
         p0_tx_pri2_drop_bcnt: 0
         p0_tx_pri3_drop_bcnt: 0
         p0_tx_pri4_drop_bcnt: 0
         p0_tx_pri5_drop_bcnt: 0
         p0_tx_pri6_drop_bcnt: 0
         p0_tx_pri7_drop_bcnt: 0
         rx_good_frames: 1469077
         rx_broadcast_frames: 41
         rx_multicast_frames: 11707
         rx_pause_frames: 0
         rx_crc_errors: 0
         rx_align_code_errors: 0
         rx_oversized_frames: 0
         rx_jabber_frames: 0
         rx_undersized_frames: 0
         rx_fragments: 0
         ale_drop: 17208
         ale_overrun_drop: 0
         rx_octets: 2047031268
         tx_good_frames: 97780368
         tx_broadcast_frames: 183
         tx_multicast_frames: 27040
         tx_pause_frames: 0
         tx_deferred_frames: 0
         tx_collision_frames: 0
         tx_single_coll_frames: 0
         tx_mult_coll_frames: 0
         tx_excessive_collisions: 0
         tx_late_collisions: 0
         rx_ipg_error: 0
         tx_carrier_sense_errors: 0
         tx_octets: 1025056159
         tx_64B_frames: 125936
         tx_65_to_127B_frames: 871332
         tx_128_to_255B_frames: 361884
         tx_256_to_511B_frames: 1439554
         tx_512_to_1023B_frames: 2845269
         tx_1024B_frames: 93605470
         net_octets: 3072087427
         rx_bottom_fifo_drop: 0
         rx_port_mask_drop: 17208
         rx_top_fifo_drop: 0
         ale_rate_limit_drop: 0
         ale_vid_ingress_drop: 16571
         ale_da_eq_sa_drop: 0
         ale_block_drop: 0
         ale_secure_drop: 0
         ale_auth_drop: 0
         ale_unknown_ucast: 1457329
         ale_unknown_ucast_bytes: 2045378886
         ale_unknown_mcast: 11707
         ale_unknown_mcast_bytes: 1646527
         ale_unknown_bcast: 41
         ale_unknown_bcast_bytes: 5855
         ale_pol_match: 0
         ale_pol_match_red: 0
         ale_pol_match_yellow: 0
         ale_mcast_sa_drop: 0
         ale_dual_vlan_drop: 0
         ale_len_err_drop: 0
         ale_ip_next_hdr_drop: 0
         ale_ipv4_frag_drop: 0
         iet_rx_assembly_err: 0
         iet_rx_assembly_ok: 0
         iet_rx_smd_err: 0
         iet_rx_frag: 0
         iet_tx_hold: 0
         iet_tx_frag: 0
         tx_mem_protect_err: 0
         tx_pri0: 97780368
         tx_pri1: 0
         tx_pri2: 0
         tx_pri3: 0
         tx_pri4: 0
         tx_pri5: 0
         tx_pri6: 0
         tx_pri7: 0
         tx_pri0_bcnt: 1023086539
         tx_pri1_bcnt: 0
         tx_pri2_bcnt: 0
         tx_pri3_bcnt: 0
         tx_pri4_bcnt: 0
         tx_pri5_bcnt: 0
         tx_pri6_bcnt: 0
         tx_pri7_bcnt: 0
         tx_pri0_drop: 0
         tx_pri1_drop: 0
         tx_pri2_drop: 0
         tx_pri3_drop: 0
         tx_pri4_drop: 0
         tx_pri5_drop: 0
         tx_pri6_drop: 0
         tx_pri7_drop: 0
         tx_pri0_drop_bcnt: 0
         tx_pri1_drop_bcnt: 0
         tx_pri2_drop_bcnt: 0
         tx_pri3_drop_bcnt: 0
         tx_pri4_drop_bcnt: 0
         tx_pri5_drop_bcnt: 0
         tx_pri6_drop_bcnt: 0
         tx_pri7_drop_bcnt: 0
    
    ethtool_eth0_1.txt
    NIC statistics:
         p0_rx_good_frames: 97781195
         p0_rx_broadcast_frames: 282
         p0_rx_multicast_frames: 27768
         p0_rx_crc_errors: 0
         p0_rx_oversized_frames: 0
         p0_rx_undersized_frames: 0
         p0_ale_drop: 0
         p0_ale_overrun_drop: 0
         p0_rx_octets: 1023230665
         p0_tx_good_frames: 1451869
         p0_tx_broadcast_frames: 28
         p0_tx_multicast_frames: 10373
         p0_tx_octets: 2033951188
         p0_tx_64B_frames: 127098
         p0_tx_65_to_127B_frames: 865389
         p0_tx_128_to_255B_frames: 361141
         p0_tx_256_to_511B_frames: 1439202
         p0_tx_512_to_1023B_frames: 2841201
         p0_tx_1024B_frames: 93599033
         p0_net_octets: 3057181853
         p0_rx_bottom_fifo_drop: 0
         p0_rx_port_mask_drop: 0
         p0_rx_top_fifo_drop: 0
         p0_ale_rate_limit_drop: 0
         p0_ale_vid_ingress_drop: 493232
         p0_ale_da_eq_sa_drop: 0
         p0_ale_block_drop: 0
         p0_ale_secure_drop: 0
         p0_ale_auth_drop: 0
         p0_ale_unknown_ucast: 0
         p0_ale_unknown_ucast_bytes: 0
         p0_ale_unknown_mcast: 0
         p0_ale_unknown_mcast_bytes: 0
         p0_ale_unknown_bcast: 0
         p0_ale_unknown_bcast_bytes: 0
         p0_ale_pol_match: 0
         p0_ale_pol_match_red: 0
         p0_ale_pol_match_yellow: 0
         p0_ale_mcast_sa_drop: 0
         p0_ale_dual_vlan_drop: 0
         p0_ale_len_err_drop: 0
         p0_ale_ip_next_hdr_drop: 0
         p0_ale_ipv4_frag_drop: 0
         p0_tx_mem_protect_err: 0
         p0_tx_pri0: 0
         p0_tx_pri1: 0
         p0_tx_pri2: 0
         p0_tx_pri3: 0
         p0_tx_pri4: 0
         p0_tx_pri5: 0
         p0_tx_pri6: 0
         p0_tx_pri7: 0
         p0_tx_pri0_bcnt: 0
         p0_tx_pri1_bcnt: 0
         p0_tx_pri2_bcnt: 0
         p0_tx_pri3_bcnt: 0
         p0_tx_pri4_bcnt: 0
         p0_tx_pri5_bcnt: 0
         p0_tx_pri6_bcnt: 0
         p0_tx_pri7_bcnt: 0
         p0_tx_pri0_drop: 0
         p0_tx_pri1_drop: 0
         p0_tx_pri2_drop: 0
         p0_tx_pri3_drop: 0
         p0_tx_pri4_drop: 0
         p0_tx_pri5_drop: 0
         p0_tx_pri6_drop: 0
         p0_tx_pri7_drop: 0
         p0_tx_pri0_drop_bcnt: 0
         p0_tx_pri1_drop_bcnt: 0
         p0_tx_pri2_drop_bcnt: 0
         p0_tx_pri3_drop_bcnt: 0
         p0_tx_pri4_drop_bcnt: 0
         p0_tx_pri5_drop_bcnt: 0
         p0_tx_pri6_drop_bcnt: 0
         p0_tx_pri7_drop_bcnt: 0
         rx_good_frames: 1469529
         rx_broadcast_frames: 42
         rx_multicast_frames: 12059
         rx_pause_frames: 0
         rx_crc_errors: 0
         rx_align_code_errors: 0
         rx_oversized_frames: 0
         rx_jabber_frames: 0
         rx_undersized_frames: 0
         rx_fragments: 0
         ale_drop: 17660
         ale_overrun_drop: 0
         rx_octets: 2047074127
         tx_good_frames: 97781195
         tx_broadcast_frames: 282
         tx_multicast_frames: 27768
         tx_pause_frames: 0
         tx_deferred_frames: 0
         tx_collision_frames: 0
         tx_single_coll_frames: 0
         tx_mult_coll_frames: 0
         tx_excessive_collisions: 0
         tx_late_collisions: 0
         rx_ipg_error: 0
         tx_carrier_sense_errors: 0
         tx_octets: 1025203593
         tx_64B_frames: 126035
         tx_65_to_127B_frames: 872097
         tx_128_to_255B_frames: 361921
         tx_256_to_511B_frames: 1439926
         tx_512_to_1023B_frames: 2845275
         tx_1024B_frames: 93605470
         net_octets: 3072277720
         rx_bottom_fifo_drop: 0
         rx_port_mask_drop: 17660
         rx_top_fifo_drop: 0
         ale_rate_limit_drop: 0
         ale_vid_ingress_drop: 17023
         ale_da_eq_sa_drop: 0
         ale_block_drop: 0
         ale_secure_drop: 0
         ale_auth_drop: 0
         ale_unknown_ucast: 1457428
         ale_unknown_ucast_bytes: 2045385222
         ale_unknown_mcast: 12059
         ale_unknown_mcast_bytes: 1682803
         ale_unknown_bcast: 42
         ale_unknown_bcast_bytes: 6102
         ale_pol_match: 0
         ale_pol_match_red: 0
         ale_pol_match_yellow: 0
         ale_mcast_sa_drop: 0
         ale_dual_vlan_drop: 0
         ale_len_err_drop: 0
         ale_ip_next_hdr_drop: 0
         ale_ipv4_frag_drop: 0
         iet_rx_assembly_err: 0
         iet_rx_assembly_ok: 0
         iet_rx_smd_err: 0
         iet_rx_frag: 0
         iet_tx_hold: 0
         iet_tx_frag: 0
         tx_mem_protect_err: 0
         tx_pri0: 97781195
         tx_pri1: 0
         tx_pri2: 0
         tx_pri3: 0
         tx_pri4: 0
         tx_pri5: 0
         tx_pri6: 0
         tx_pri7: 0
         tx_pri0_bcnt: 1023230665
         tx_pri1_bcnt: 0
         tx_pri2_bcnt: 0
         tx_pri3_bcnt: 0
         tx_pri4_bcnt: 0
         tx_pri5_bcnt: 0
         tx_pri6_bcnt: 0
         tx_pri7_bcnt: 0
         tx_pri0_drop: 0
         tx_pri1_drop: 0
         tx_pri2_drop: 0
         tx_pri3_drop: 0
         tx_pri4_drop: 0
         tx_pri5_drop: 0
         tx_pri6_drop: 0
         tx_pri7_drop: 0
         tx_pri0_drop_bcnt: 0
         tx_pri1_drop_bcnt: 0
         tx_pri2_drop_bcnt: 0
         tx_pri3_drop_bcnt: 0
         tx_pri4_drop_bcnt: 0
         tx_pri5_drop_bcnt: 0
         tx_pri6_drop_bcnt: 0
         tx_pri7_drop_bcnt: 0
    
    ethtool_eth0_2.txt
    NIC statistics:
         p0_rx_good_frames: 97781913
         p0_rx_broadcast_frames: 368
         p0_rx_multicast_frames: 28400
         p0_rx_crc_errors: 0
         p0_rx_oversized_frames: 0
         p0_rx_undersized_frames: 0
         p0_ale_drop: 0
         p0_ale_overrun_drop: 0
         p0_rx_octets: 1023355823
         p0_tx_good_frames: 1451869
         p0_tx_broadcast_frames: 28
         p0_tx_multicast_frames: 10373
         p0_tx_octets: 2033951188
         p0_tx_64B_frames: 127360
         p0_tx_65_to_127B_frames: 865522
         p0_tx_128_to_255B_frames: 361141
         p0_tx_256_to_511B_frames: 1439525
         p0_tx_512_to_1023B_frames: 2841201
         p0_tx_1024B_frames: 93599033
         p0_net_octets: 3057307011
         p0_rx_bottom_fifo_drop: 0
         p0_rx_port_mask_drop: 0
         p0_rx_top_fifo_drop: 0
         p0_ale_rate_limit_drop: 0
         p0_ale_vid_ingress_drop: 493950
         p0_ale_da_eq_sa_drop: 0
         p0_ale_block_drop: 0
         p0_ale_secure_drop: 0
         p0_ale_auth_drop: 0
         p0_ale_unknown_ucast: 0
         p0_ale_unknown_ucast_bytes: 0
         p0_ale_unknown_mcast: 0
         p0_ale_unknown_mcast_bytes: 0
         p0_ale_unknown_bcast: 0
         p0_ale_unknown_bcast_bytes: 0
         p0_ale_pol_match: 0
         p0_ale_pol_match_red: 0
         p0_ale_pol_match_yellow: 0
         p0_ale_mcast_sa_drop: 0
         p0_ale_dual_vlan_drop: 0
         p0_ale_len_err_drop: 0
         p0_ale_ip_next_hdr_drop: 0
         p0_ale_ipv4_frag_drop: 0
         p0_tx_mem_protect_err: 0
         p0_tx_pri0: 0
         p0_tx_pri1: 0
         p0_tx_pri2: 0
         p0_tx_pri3: 0
         p0_tx_pri4: 0
         p0_tx_pri5: 0
         p0_tx_pri6: 0
         p0_tx_pri7: 0
         p0_tx_pri0_bcnt: 0
         p0_tx_pri1_bcnt: 0
         p0_tx_pri2_bcnt: 0
         p0_tx_pri3_bcnt: 0
         p0_tx_pri4_bcnt: 0
         p0_tx_pri5_bcnt: 0
         p0_tx_pri6_bcnt: 0
         p0_tx_pri7_bcnt: 0
         p0_tx_pri0_drop: 0
         p0_tx_pri1_drop: 0
         p0_tx_pri2_drop: 0
         p0_tx_pri3_drop: 0
         p0_tx_pri4_drop: 0
         p0_tx_pri5_drop: 0
         p0_tx_pri6_drop: 0
         p0_tx_pri7_drop: 0
         p0_tx_pri0_drop_bcnt: 0
         p0_tx_pri1_drop_bcnt: 0
         p0_tx_pri2_drop_bcnt: 0
         p0_tx_pri3_drop_bcnt: 0
         p0_tx_pri4_drop_bcnt: 0
         p0_tx_pri5_drop_bcnt: 0
         p0_tx_pri6_drop_bcnt: 0
         p0_tx_pri7_drop_bcnt: 0
         rx_good_frames: 1470004
         rx_broadcast_frames: 57
         rx_multicast_frames: 12429
         rx_pause_frames: 0
         rx_crc_errors: 0
         rx_align_code_errors: 0
         rx_oversized_frames: 0
         rx_jabber_frames: 0
         rx_undersized_frames: 0
         rx_fragments: 0
         ale_drop: 18135
         ale_overrun_drop: 0
         rx_octets: 2047145151
         tx_good_frames: 97781913
         tx_broadcast_frames: 368
         tx_multicast_frames: 28400
         tx_pause_frames: 0
         tx_deferred_frames: 0
         tx_collision_frames: 0
         tx_single_coll_frames: 0
         tx_mult_coll_frames: 0
         tx_excessive_collisions: 0
         tx_late_collisions: 0
         rx_ipg_error: 0
         tx_carrier_sense_errors: 0
         tx_octets: 1025331623
         tx_64B_frames: 126124
         tx_65_to_127B_frames: 872777
         tx_128_to_255B_frames: 361961
         tx_256_to_511B_frames: 1440261
         tx_512_to_1023B_frames: 2845324
         tx_1024B_frames: 93605470
         net_octets: 3072476774
         rx_bottom_fifo_drop: 0
         rx_port_mask_drop: 18135
         rx_top_fifo_drop: 0
         ale_rate_limit_drop: 0
         ale_vid_ingress_drop: 17498
         ale_da_eq_sa_drop: 0
         ale_block_drop: 0
         ale_secure_drop: 0
         ale_auth_drop: 0
         ale_unknown_ucast: 1457518
         ale_unknown_ucast_bytes: 2045390996
         ale_unknown_mcast: 12429
         ale_unknown_mcast_bytes: 1746241
         ale_unknown_bcast: 57
         ale_unknown_bcast_bytes: 7914
         ale_pol_match: 0
         ale_pol_match_red: 0
         ale_pol_match_yellow: 0
         ale_mcast_sa_drop: 0
         ale_dual_vlan_drop: 0
         ale_len_err_drop: 0
         ale_ip_next_hdr_drop: 0
         ale_ipv4_frag_drop: 0
         iet_rx_assembly_err: 0
         iet_rx_assembly_ok: 0
         iet_rx_smd_err: 0
         iet_rx_frag: 0
         iet_tx_hold: 0
         iet_tx_frag: 0
         tx_mem_protect_err: 0
         tx_pri0: 97781913
         tx_pri1: 0
         tx_pri2: 0
         tx_pri3: 0
         tx_pri4: 0
         tx_pri5: 0
         tx_pri6: 0
         tx_pri7: 0
         tx_pri0_bcnt: 1023355823
         tx_pri1_bcnt: 0
         tx_pri2_bcnt: 0
         tx_pri3_bcnt: 0
         tx_pri4_bcnt: 0
         tx_pri5_bcnt: 0
         tx_pri6_bcnt: 0
         tx_pri7_bcnt: 0
         tx_pri0_drop: 0
         tx_pri1_drop: 0
         tx_pri2_drop: 0
         tx_pri3_drop: 0
         tx_pri4_drop: 0
         tx_pri5_drop: 0
         tx_pri6_drop: 0
         tx_pri7_drop: 0
         tx_pri0_drop_bcnt: 0
         tx_pri1_drop_bcnt: 0
         tx_pri2_drop_bcnt: 0
         tx_pri3_drop_bcnt: 0
         tx_pri4_drop_bcnt: 0
         tx_pri5_drop_bcnt: 0
         tx_pri6_drop_bcnt: 0
         tx_pri7_drop_bcnt: 0
    

  • Hi Rong,

    So what "promiscuous" means is that all the packets received by host port are forwarded.

    Are you ALE entries changing during the connection down?

    Can you use this FAQ to print the ALE entries both when the network is working properly an when the issue is seen?

    Regards.
    Tanmay

  • Hi Tanmay

    We use "switch-config --ndev eth0 -d" to check the alt table, the next picture is running normal status:

    the next picture is the error status(can not ping successful)

    the file is the log, also include the command: "ethtool -S eth0" and  "devmem2 0x0C23E008" when in error status.

    Error occurred after line 92 in the document.

    Maybe this can help us, please check.

    23_Nov_NromalToError.txt
    adc615 login: root
    root@adc615:~# ^C
    root@adc615:~#
    root@adc615:~#
    root@adc615:~#
    root@adc615:~#
    root@adc615:~# ./switch-config --ndev eth0 -d
    K3 cpsw dump version (1) len(6328)
    ALE table dump ents(64):
    0   : type: vlan , vid = 0, untag_force = 0x3, reg_mcast = 0x0, unreg_mcast = 0x0, member_list = 0x3
    1   : type: ucast, addr = 02:ad:c5:10:b0:01, ucast_type = persistant, port_num = 0x0, Secure
    2   : type: mcast, vid = 0, addr = ff:ff:ff:ff:ff:ff, mcast_state = f, no super, port_mask = 0x3
    3   : type: mcast, addr = 33:33:00:00:00:01, mcast_state = f, no super, port_mask = 0x1
    4   : type: mcast, addr = 01:00:5e:00:00:01, mcast_state = f, no super, port_mask = 0x1
    5   : type: mcast, addr = 33:33:ff:10:b0:01, mcast_state = f, no super, port_mask = 0x1
    6   : type: mcast, addr = 01:80:c2:00:00:00, mcast_state = f, no super, port_mask = 0x1
    7   : type: mcast, addr = 01:80:c2:00:00:03, mcast_state = f, no super, port_mask = 0x1
    8   : type: mcast, addr = 01:80:c2:00:00:0e, mcast_state = f, no super, port_mask = 0x1
    9   : type: mcast, addr = 01:00:5e:00:00:fc, mcast_state = f, no super, port_mask = 0x1
    10  : type: mcast, addr = 01:00:5e:00:00:fb, mcast_state = f, no super, port_mask = 0x1
    11  : type: mcast, addr = 33:33:d9:a5:84:4b, mcast_state = f, no super, port_mask = 0x1
    12  : type: mcast, addr = 33:33:00:01:00:03, mcast_state = f, no super, port_mask = 0x1
    13  : type: mcast, addr = 01:00:5e:7f:00:01, mcast_state = f, no super, port_mask = 0x1
    14  : type: mcast, addr = 33:33:00:00:00:fb, mcast_state = f, no super, port_mask = 0x1
    root@adc615:~#  devmem2 0x0C23E008
    /dev/mem opened.
    Memory mapped at address 0xffffa0935000.
    Read at address  0x0C23E008 (0xffffa0935008): 0x80000005
    root@adc615:~# ifconfig eth0
    eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  metric 1
            inet 192.168.0.199  netmask 255.255.255.0  broadcast 192.168.0.255
            inet6 fe80::ad:c5ff:fe10:b001  prefixlen 64  scopeid 0x20<link>
            inet6 fde0:f442:bdc1:b700:ad:c5ff:fe10:b001  prefixlen 64  scopeid 0x0<global>
            ether 02:ad:c5:10:b0:01  txqueuelen 1000  (Ethernet)
            RX packets 20070  bytes 19140436 (18.2 MiB)
            RX errors 0  dropped 219  overruns 0  frame 0
            TX packets 7145263  bytes 10398172980 (9.6 GiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    root@adc615:~# arp -a
    ^C
    root@adc615:~# arp
    ^C
    root@adc615:~# arp -a
    ? (192.168.0.10) at ae:b6:05:8c:c4:eb [ether] on eth0
    ? (192.168.0.110) at 7c:57:58:84:b2:37 [ether] on eth0
    root@adc615:~# ^C
    root@adc615:~# ^C
    root@adc615:~# ./switch-config --ndev eth0 -d
    K3 cpsw dump version (1) len(6328)
    ALE table dump ents(64):
    0   : type: vlan , vid = 0, untag_force = 0x3, reg_mcast = 0x0, unreg_mcast = 0x0, member_list = 0x3
    1   : type: ucast, addr = 02:ad:c5:10:b0:01, ucast_type = persistant, port_num = 0x0, Secure
    2   : type: mcast, vid = 0, addr = ff:ff:ff:ff:ff:ff, mcast_state = f, no super, port_mask = 0x3
    3   : type: mcast, addr = 33:33:00:00:00:01, mcast_state = f, no super, port_mask = 0x1
    4   : type: mcast, addr = 01:00:5e:00:00:01, mcast_state = f, no super, port_mask = 0x1
    5   : type: mcast, addr = 33:33:ff:10:b0:01, mcast_state = f, no super, port_mask = 0x1
    6   : type: mcast, addr = 01:80:c2:00:00:00, mcast_state = f, no super, port_mask = 0x1
    7   : type: mcast, addr = 01:80:c2:00:00:03, mcast_state = f, no super, port_mask = 0x1
    8   : type: mcast, addr = 01:80:c2:00:00:0e, mcast_state = f, no super, port_mask = 0x1
    9   : type: mcast, addr = 01:00:5e:00:00:fc, mcast_state = f, no super, port_mask = 0x1
    10  : type: mcast, addr = 01:00:5e:00:00:fb, mcast_state = f, no super, port_mask = 0x1
    11  : type: mcast, addr = 33:33:d9:a5:84:4b, mcast_state = f, no super, port_mask = 0x1
    12  : type: mcast, addr = 33:33:00:01:00:03, mcast_state = f, no super, port_mask = 0x1
    13  : type: mcast, addr = 01:00:5e:7f:00:01, mcast_state = f, no super, port_mask = 0x1
    14  : type: mcast, addr = 33:33:00:00:00:fb, mcast_state = f, no super, port_mask = 0x1
    root@adc615:~#  devmem2 0x0C23E008
    /dev/mem opened.
    Memory mapped at address 0xffffb031c000.
    Read at address  0x0C23E008 (0xffffb031c008): 0x80000005
    root@adc615:~# ifconfig
    eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  metric 1
            inet 192.168.0.199  netmask 255.255.255.0  broadcast 192.168.0.255
            inet6 fe80::ad:c5ff:fe10:b001  prefixlen 64  scopeid 0x20<link>
            inet6 fde0:f442:bdc1:b700:ad:c5ff:fe10:b001  prefixlen 64  scopeid 0x0<global>
            ether 02:ad:c5:10:b0:01  txqueuelen 1000  (Ethernet)
            RX packets 34085  bytes 34795249 (33.1 MiB)
            RX errors 0  dropped 490  overruns 0  frame 0
            TX packets 15020410  bytes 21864829190 (20.3 GiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    lo: flags=4169<UP,LOOPBACK,RUNNING,MULTICAST>  mtu 65536  metric 1
            inet 127.0.0.1  netmask 255.0.0.0
            inet6 ::1  prefixlen 128  scopeid 0x10<host>
            loop  txqueuelen 1000  (Local Loopback)
            RX packets 46672  bytes 17929363 (17.0 MiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 46672  bytes 17929363 (17.0 MiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    root@adc615:~# ^C
    root@adc615:~# ./switch-config --ndev eth0 -d
    K3 cpsw dump version (1) len(6328)
    ALE table dump ents(64):
    0   : type: mcast, addr = 33:33:00:00:00:01, mcast_state = f, no super, port_mask = 0x1
    1   : type: ucast, addr = 02:ad:c5:10:b0:01, ucast_type = persistant, port_num = 0x0, Secure
    2   : type: mcast, vid = 0, addr = ff:ff:ff:ff:ff:ff, mcast_state = f, no super, port_mask = 0x3
    3   : type: mcast, addr = 01:00:5e:00:00:01, mcast_state = f, no super, port_mask = 0x1
    4   : type: mcast, addr = 33:33:ff:10:b0:01, mcast_state = f, no super, port_mask = 0x1
    5   : type: mcast, addr = 01:80:c2:00:00:00, mcast_state = f, no super, port_mask = 0x1
    6   : type: mcast, addr = 01:80:c2:00:00:03, mcast_state = f, no super, port_mask = 0x1
    7   : type: mcast, addr = 01:80:c2:00:00:0e, mcast_state = f, no super, port_mask = 0x1
    8   : type: mcast, addr = 01:00:5e:00:00:fc, mcast_state = f, no super, port_mask = 0x1
    9   : type: mcast, addr = 01:00:5e:00:00:fb, mcast_state = f, no super, port_mask = 0x1
    10  : type: mcast, addr = 33:33:d9:a5:84:4b, mcast_state = f, no super, port_mask = 0x1
    11  : type: mcast, addr = 33:33:00:01:00:03, mcast_state = f, no super, port_mask = 0x1
    12  : type: mcast, addr = 01:00:5e:7f:00:01, mcast_state = f, no super, port_mask = 0x1
    13  : type: mcast, addr = 33:33:00:00:00:fb, mcast_state = f, no super, port_mask = 0x1
    14  : type: mcast, addr = 01:1b:19:00:00:00, mcast_state = f, no super, port_mask = 0x1
    root@adc615:~#  devmem2 0x0C23E008
    /dev/mem opened.
    Memory mapped at address 0xffff8361a000.
    Read at address  0x0C23E008 (0xffff8361a008): 0x80000005
    root@adc615:~# ^C
    root@adc615:~# ethtool -S
    ethtool: bad command line argument(s)
    For more information run ethtool -h
    root@adc615:~# ethtool -s
    ethtool: bad command line argument(s)
    For more information run ethtool -h
    root@adc615:~# ethtool etho
    netlink error: no device matches name (offset 24)
    netlink error: No such device
    netlink error: no device matches name (offset 24)
    netlink error: No such device
    netlink error: no device matches name (offset 24)
    netlink error: No such device
    netlink error: no device matches name (offset 24)
    netlink error: No such device
    netlink error: no device matches name (offset 24)
    netlink error: No such device
    No data available
    root@adc615:~# ethtool etho0
    netlink error: no device matches name (offset 24)
    netlink error: No such device
    netlink error: no device matches name (offset 24)
    netlink error: No such device
    netlink error: no device matches name (offset 24)
    netlink error: No such device
    netlink error: no device matches name (offset 24)
    netlink error: No such device
    netlink error: no device matches name (offset 24)
    netlink error: No such device
    No data available
    root@adc615:~# ethtool eth0
    Settings for eth0:
            Supported ports: [ MII ]
            Supported link modes:   1000baseT/Full
            Supported pause frame use: Symmetric Receive-only
            Supports auto-negotiation: Yes
            Supported FEC modes: Not reported
            Advertised link modes:  1000baseT/Full
            Advertised pause frame use: Symmetric
            Advertised auto-negotiation: Yes
            Advertised FEC modes: Not reported
            Link partner advertised link modes:  1000baseT/Full
            Link partner advertised pause frame use: No
            Link partner advertised auto-negotiation: No
            Link partner advertised FEC modes: Not reported
            Speed: 1000Mb/s
            Duplex: Full
            Auto-negotiation: on
            Port: MII
            PHYAD: 0
            Transceiver: internal
            Supports Wake-on: d
            Wake-on: d
            Current message level: 0x000020f7 (8439)
                                   drv probe link ifdown ifup rx_err tx_err hw
            Link detected: yes
    root@adc615:~# ethtool eth0 -S
    Settings for eth0:
            Supported ports: [ MII ]
            Supported link modes:   1000baseT/Full
            Supported pause frame use: Symmetric Receive-only
            Supports auto-negotiation: Yes
            Supported FEC modes: Not reported
            Advertised link modes:  1000baseT/Full
            Advertised pause frame use: Symmetric
            Advertised auto-negotiation: Yes
            Advertised FEC modes: Not reported
            Link partner advertised link modes:  1000baseT/Full
            Link partner advertised pause frame use: No
            Link partner advertised auto-negotiation: No
            Link partner advertised FEC modes: Not reported
            Speed: 1000Mb/s
            Duplex: Full
            Auto-negotiation: on
            Port: MII
            PHYAD: 0
            Transceiver: internal
            Supports Wake-on: d
            Wake-on: d
            Current message level: 0x000020f7 (8439)
                                   drv probe link ifdown ifup rx_err tx_err hw
            Link detected: yes
    root@adc615:~# ethtool -S eth0
    NIC statistics:
         p0_rx_good_frames: 66968342
         p0_rx_broadcast_frames: 568
         p0_rx_multicast_frames: 22758
         p0_rx_crc_errors: 0
         p0_rx_oversized_frames: 0
         p0_rx_undersized_frames: 0
         p0_ale_drop: 0
         p0_ale_overrun_drop: 0
         p0_rx_octets: 3275652927
         p0_tx_good_frames: 145898
         p0_tx_broadcast_frames: 102
         p0_tx_multicast_frames: 7863
         p0_tx_octets: 146770220
         p0_tx_64B_frames: 92568
         p0_tx_65_to_127B_frames: 547069
         p0_tx_128_to_255B_frames: 265826
         p0_tx_256_to_511B_frames: 983115
         p0_tx_512_to_1023B_frames: 1943857
         p0_tx_1024B_frames: 63281805
         p0_net_octets: 3422423147
         p0_rx_bottom_fifo_drop: 0
         p0_rx_port_mask_drop: 0
         p0_rx_top_fifo_drop: 0
         p0_ale_rate_limit_drop: 0
         p0_ale_vid_ingress_drop: 846202
         p0_ale_da_eq_sa_drop: 0
         p0_ale_block_drop: 0
         p0_ale_secure_drop: 0
         p0_ale_auth_drop: 0
         p0_ale_unknown_ucast: 0
         p0_ale_unknown_ucast_bytes: 0
         p0_ale_unknown_mcast: 0
         p0_ale_unknown_mcast_bytes: 0
         p0_ale_unknown_bcast: 0
         p0_ale_unknown_bcast_bytes: 0
         p0_ale_pol_match: 0
         p0_ale_pol_match_red: 0
         p0_ale_pol_match_yellow: 0
         p0_ale_mcast_sa_drop: 0
         p0_ale_dual_vlan_drop: 0
         p0_ale_len_err_drop: 0
         p0_ale_ip_next_hdr_drop: 0
         p0_ale_ipv4_frag_drop: 0
         p0_tx_mem_protect_err: 0
         p0_tx_pri0: 0
         p0_tx_pri1: 0
         p0_tx_pri2: 0
         p0_tx_pri3: 0
         p0_tx_pri4: 0
         p0_tx_pri5: 0
         p0_tx_pri6: 0
         p0_tx_pri7: 0
         p0_tx_pri0_bcnt: 0
         p0_tx_pri1_bcnt: 0
         p0_tx_pri2_bcnt: 0
         p0_tx_pri3_bcnt: 0
         p0_tx_pri4_bcnt: 0
         p0_tx_pri5_bcnt: 0
         p0_tx_pri6_bcnt: 0
         p0_tx_pri7_bcnt: 0
         p0_tx_pri0_drop: 0
         p0_tx_pri1_drop: 0
         p0_tx_pri2_drop: 0
         p0_tx_pri3_drop: 0
         p0_tx_pri4_drop: 0
         p0_tx_pri5_drop: 0
         p0_tx_pri6_drop: 0
         p0_tx_pri7_drop: 0
         p0_tx_pri0_drop_bcnt: 0
         p0_tx_pri1_drop_bcnt: 0
         p0_tx_pri2_drop_bcnt: 0
         p0_tx_pri3_drop_bcnt: 0
         p0_tx_pri4_drop_bcnt: 0
         p0_tx_pri5_drop_bcnt: 0
         p0_tx_pri6_drop_bcnt: 0
         p0_tx_pri7_drop_bcnt: 0
         rx_good_frames: 155660
         rx_broadcast_frames: 109
         rx_multicast_frames: 9702
         rx_pause_frames: 0
         rx_crc_errors: 0
         rx_align_code_errors: 0
         rx_oversized_frames: 0
         rx_jabber_frames: 0
         rx_undersized_frames: 0
         rx_fragments: 0
         ale_drop: 9762
         ale_overrun_drop: 0
         rx_octets: 148737271
         tx_good_frames: 66968342
         tx_broadcast_frames: 568
         tx_multicast_frames: 22758
         tx_pause_frames: 0
         tx_deferred_frames: 0
         tx_collision_frames: 0
         tx_single_coll_frames: 0
         tx_mult_coll_frames: 0
         tx_excessive_collisions: 0
         tx_late_collisions: 0
         rx_ipg_error: 0
         tx_carrier_sense_errors: 0
         tx_octets: 3279037735
         tx_64B_frames: 90627
         tx_65_to_127B_frames: 556511
         tx_128_to_255B_frames: 267153
         tx_256_to_511B_frames: 983171
         tx_512_to_1023B_frames: 1944113
         tx_1024B_frames: 63282427
         net_octets: 3427775006
         rx_bottom_fifo_drop: 0
         rx_port_mask_drop: 9762
         rx_top_fifo_drop: 0
         ale_rate_limit_drop: 0
         ale_vid_ingress_drop: 9670
         ale_da_eq_sa_drop: 0
         ale_block_drop: 0
         ale_secure_drop: 0
         ale_auth_drop: 0
         ale_unknown_ucast: 145849
         ale_unknown_ucast_bytes: 147561530
         ale_unknown_mcast: 9702
         ale_unknown_mcast_bytes: 1163372
         ale_unknown_bcast: 109
         ale_unknown_bcast_bytes: 12369
         ale_pol_match: 0
         ale_pol_match_red: 0
         ale_pol_match_yellow: 0
         ale_mcast_sa_drop: 0
         ale_dual_vlan_drop: 0
         ale_len_err_drop: 0
         ale_ip_next_hdr_drop: 0
         ale_ipv4_frag_drop: 0
         iet_rx_assembly_err: 0
         iet_rx_assembly_ok: 0
         iet_rx_smd_err: 0
         iet_rx_frag: 0
         iet_tx_hold: 0
         iet_tx_frag: 0
         tx_mem_protect_err: 0
         tx_pri0: 66968342
         tx_pri1: 0
         tx_pri2: 0
         tx_pri3: 0
         tx_pri4: 0
         tx_pri5: 0
         tx_pri6: 0
         tx_pri7: 0
         tx_pri0_bcnt: 3275652927
         tx_pri1_bcnt: 0
         tx_pri2_bcnt: 0
         tx_pri3_bcnt: 0
         tx_pri4_bcnt: 0
         tx_pri5_bcnt: 0
         tx_pri6_bcnt: 0
         tx_pri7_bcnt: 0
         tx_pri0_drop: 0
         tx_pri1_drop: 0
         tx_pri2_drop: 0
         tx_pri3_drop: 0
         tx_pri4_drop: 0
         tx_pri5_drop: 0
         tx_pri6_drop: 0
         tx_pri7_drop: 0
         tx_pri0_drop_bcnt: 0
         tx_pri1_drop_bcnt: 0
         tx_pri2_drop_bcnt: 0
         tx_pri3_drop_bcnt: 0
         tx_pri4_drop_bcnt: 0
         tx_pri5_drop_bcnt: 0
         tx_pri6_drop_bcnt: 0
         tx_pri7_drop_bcnt: 0
    root@adc615:~# ^C
    root@adc615:~# ethtool -S eth0
    NIC statistics:
         p0_rx_good_frames: 66969155
         p0_rx_broadcast_frames: 665
         p0_rx_multicast_frames: 23474
         p0_rx_crc_errors: 0
         p0_rx_oversized_frames: 0
         p0_rx_undersized_frames: 0
         p0_ale_drop: 0
         p0_ale_overrun_drop: 0
         p0_rx_octets: 3275794687
         p0_tx_good_frames: 145898
         p0_tx_broadcast_frames: 102
         p0_tx_multicast_frames: 7863
         p0_tx_octets: 146770220
         p0_tx_64B_frames: 92865
         p0_tx_65_to_127B_frames: 547219
         p0_tx_128_to_255B_frames: 265826
         p0_tx_256_to_511B_frames: 983481
         p0_tx_512_to_1023B_frames: 1943857
         p0_tx_1024B_frames: 63281805
         p0_net_octets: 3422564907
         p0_rx_bottom_fifo_drop: 0
         p0_rx_port_mask_drop: 0
         p0_rx_top_fifo_drop: 0
         p0_ale_rate_limit_drop: 0
         p0_ale_vid_ingress_drop: 847015
         p0_ale_da_eq_sa_drop: 0
         p0_ale_block_drop: 0
         p0_ale_secure_drop: 0
         p0_ale_auth_drop: 0
         p0_ale_unknown_ucast: 0
         p0_ale_unknown_ucast_bytes: 0
         p0_ale_unknown_mcast: 0
         p0_ale_unknown_mcast_bytes: 0
         p0_ale_unknown_bcast: 0
         p0_ale_unknown_bcast_bytes: 0
         p0_ale_pol_match: 0
         p0_ale_pol_match_red: 0
         p0_ale_pol_match_yellow: 0
         p0_ale_mcast_sa_drop: 0
         p0_ale_dual_vlan_drop: 0
         p0_ale_len_err_drop: 0
         p0_ale_ip_next_hdr_drop: 0
         p0_ale_ipv4_frag_drop: 0
         p0_tx_mem_protect_err: 0
         p0_tx_pri0: 0
         p0_tx_pri1: 0
         p0_tx_pri2: 0
         p0_tx_pri3: 0
         p0_tx_pri4: 0
         p0_tx_pri5: 0
         p0_tx_pri6: 0
         p0_tx_pri7: 0
         p0_tx_pri0_bcnt: 0
         p0_tx_pri1_bcnt: 0
         p0_tx_pri2_bcnt: 0
         p0_tx_pri3_bcnt: 0
         p0_tx_pri4_bcnt: 0
         p0_tx_pri5_bcnt: 0
         p0_tx_pri6_bcnt: 0
         p0_tx_pri7_bcnt: 0
         p0_tx_pri0_drop: 0
         p0_tx_pri1_drop: 0
         p0_tx_pri2_drop: 0
         p0_tx_pri3_drop: 0
         p0_tx_pri4_drop: 0
         p0_tx_pri5_drop: 0
         p0_tx_pri6_drop: 0
         p0_tx_pri7_drop: 0
         p0_tx_pri0_drop_bcnt: 0
         p0_tx_pri1_drop_bcnt: 0
         p0_tx_pri2_drop_bcnt: 0
         p0_tx_pri3_drop_bcnt: 0
         p0_tx_pri4_drop_bcnt: 0
         p0_tx_pri5_drop_bcnt: 0
         p0_tx_pri6_drop_bcnt: 0
         p0_tx_pri7_drop_bcnt: 0
         rx_good_frames: 156134
         rx_broadcast_frames: 124
         rx_multicast_frames: 10064
         rx_pause_frames: 0
         rx_crc_errors: 0
         rx_align_code_errors: 0
         rx_oversized_frames: 0
         rx_jabber_frames: 0
         rx_undersized_frames: 0
         rx_fragments: 0
         ale_drop: 10236
         ale_overrun_drop: 0
         rx_octets: 148788297
         tx_good_frames: 66969155
         tx_broadcast_frames: 665
         tx_multicast_frames: 23474
         tx_pause_frames: 0
         tx_deferred_frames: 0
         tx_collision_frames: 0
         tx_single_coll_frames: 0
         tx_mult_coll_frames: 0
         tx_excessive_collisions: 0
         tx_late_collisions: 0
         rx_ipg_error: 0
         tx_carrier_sense_errors: 0
         tx_octets: 3279182747
         tx_64B_frames: 90724
         tx_65_to_127B_frames: 557276
         tx_128_to_255B_frames: 267197
         tx_256_to_511B_frames: 983537
         tx_512_to_1023B_frames: 1944128
         tx_1024B_frames: 63282427
         net_octets: 3427971044
         rx_bottom_fifo_drop: 0
         rx_port_mask_drop: 10236
         rx_top_fifo_drop: 0
         ale_rate_limit_drop: 0
         ale_vid_ingress_drop: 10144
         ale_da_eq_sa_drop: 0
         ale_block_drop: 0
         ale_secure_drop: 0
         ale_auth_drop: 0
         ale_unknown_ucast: 145946
         ale_unknown_ucast_bytes: 147567738
         ale_unknown_mcast: 10064
         ale_unknown_mcast_bytes: 1206378
         ale_unknown_bcast: 124
         ale_unknown_bcast_bytes: 14181
         ale_pol_match: 0
         ale_pol_match_red: 0
         ale_pol_match_yellow: 0
         ale_mcast_sa_drop: 0
         ale_dual_vlan_drop: 0
         ale_len_err_drop: 0
         ale_ip_next_hdr_drop: 0
         ale_ipv4_frag_drop: 0
         iet_rx_assembly_err: 0
         iet_rx_assembly_ok: 0
         iet_rx_smd_err: 0
         iet_rx_frag: 0
         iet_tx_hold: 0
         iet_tx_frag: 0
         tx_mem_protect_err: 0
         tx_pri0: 66969155
         tx_pri1: 0
         tx_pri2: 0
         tx_pri3: 0
         tx_pri4: 0
         tx_pri5: 0
         tx_pri6: 0
         tx_pri7: 0
         tx_pri0_bcnt: 3275794687
         tx_pri1_bcnt: 0
         tx_pri2_bcnt: 0
         tx_pri3_bcnt: 0
         tx_pri4_bcnt: 0
         tx_pri5_bcnt: 0
         tx_pri6_bcnt: 0
         tx_pri7_bcnt: 0
         tx_pri0_drop: 0
         tx_pri1_drop: 0
         tx_pri2_drop: 0
         tx_pri3_drop: 0
         tx_pri4_drop: 0
         tx_pri5_drop: 0
         tx_pri6_drop: 0
         tx_pri7_drop: 0
         tx_pri0_drop_bcnt: 0
         tx_pri1_drop_bcnt: 0
         tx_pri2_drop_bcnt: 0
         tx_pri3_drop_bcnt: 0
         tx_pri4_drop_bcnt: 0
         tx_pri5_drop_bcnt: 0
         tx_pri6_drop_bcnt: 0
         tx_pri7_drop_bcnt: 0
    root@adc615:~#
    

    One more thing, the mac of our board is:

    and the mac of my PC is:

        In fact, I have always had an idea, but I don’t know much about the PTP function made by TI. According to its principle, PTP will operate the switch register to obtain the hardware timestamp.At the same time, the host also needs to read the timestamp in the register.

       In our project, the only PTP function that can involve the switch register is this.But my colleague is not completely clear about PTP. He doesn’t know whether the PTP timestamp is set by the internal switch or the external sj1105 switch.

       I have always felt that this problem is related to PTP, because test problems often involve it. For example, if PTP is not turned on, the network will not fail easily. Or the network fails the moment PTP is started. But the phenomenon is not frequent.

  • Hi,

    From above ALE Dump, It is observed that in fail case VLAN entry for VLAN 0 is not added.

    Also, from CPSW statistics it is found that all packet received on External Port are dropped by ALE "ale_vid_ingress_drop" Rx packet count different is matching to vlan drop count difference between 1st & 2nd capture.

    Can you please add VLAN ID 0 and check whether ping is success or not?

    Can you please share the scenario when issue is observed? I mean have you made any changes with eth0 interface?

    Best Regards,
    Sudheer

  • Hi, Sudheer

           How to manually configure VLAN ID 0 in ALE table?Whether you can provide specific actions.

          There is a file called Switchdev.rst in the kernel code, which also writes an STP State. This state phenomenon I feel our situation is also very similar, but I don't know how to check the status of the port

    Best Regards

    Rong

  • Hi,

    Sorry for the delayed response.

    How to manually configure VLAN ID 0 in ALE table?Whether you can provide specific actions.

    You can add using "vconfig add vlan <ID>"  command.

    Also, can you check whether VLAN Learning is enabled or not?



    If VLAN is not required, can you please check the same by disabling the VLAN Aware mode from ALE & CPSW.
    CPSW: CPSW Control register:


    ALE: ALE control register bit.


    Best Regards,
    Sudheer