Thread (18 messages) 18 messages, 3 authors, 2017-05-31

Re: [ISSUE: sky2 - rx error] Link stops working under heavy traffic load connected to a mv88e6176

From: Andrew Lunn <andrew@lunn.ch>
Date: 2017-05-16 12:48:01

Adding 8 bytes (sky2->netdev->mtu + ETH_HLEN + VLAN_HLEN + 8
(EDSA_HLEN)) does not fix the error, because the interface keep
having a maximum length of 1518 bytes (sky2->netdev->mtu + ETH_HLEN
+ VLAN_HLEN).
Did you check the value being written to here:

        /*
         * The receiver hangs if it receives frames larger than the
         * packet buffer. As a workaround, truncate oversize frames, but
         * the register is limited to 9 bits, so if you do frames > 2052
         * you better get the MTU right!
         */
        thresh = sky2_get_rx_threshold(sky2);
        if (thresh > 0x1ff)
                sky2_write32(hw, SK_REG(sky2->port, RX_GMF_CTRL_T), RX_TRUNC_OFF);
        else {
                sky2_write16(hw, SK_REG(sky2->port, RX_GMF_TR_THR), thresh);
                sky2_write32(hw, SK_REG(sky2->port, RX_GMF_CTRL_T), RX_TRUNC_ON);
        }


What is thresh?

     Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help