Re: [PATCH net 1/2] r8152: fix the sw rx checksum is unavailable

From
Mark Lord <hidden>
Date
2016-11-23 13:41:34
Also in
lkml
Reply to
Hayes Wang, 2016-11-23
What does this code do:
static void r8153_set_rx_early_size(struct r8152 *tp)
{
       u32 mtu = tp->netdev->mtu;
       u32 ocp_data = (agg_buf_sz - mtu - VLAN_ETH_HLEN - VLAN_HLEN) / 4;

       ocp_write_word(tp, MCU_TYPE_USB, USB_RX_EARLY_SIZE, ocp_data);
}
How is ocp_data used by the hardware?
Shouldn't the calculation also include sizeof(rx_desc) in there somewhere?

Thanks
-- 
Mark Lord
Real-Time Remedies Inc.
mlord@pobox.com
Thread (63 messages) 63 messages, 9 authors, last reply 2019-01-07
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help