[PATCH net-next 2/3] net: systemport: rewrite bcm_sysport_rx_refill

2015-05-28 Thread Florian Fainelli
Currently, bcm_sysport_desc_rx() calls bcm_sysport_rx_refill() at the end of Rx packet processing loop, after the current Rx packet has already been passed to napi_gro_receive(). However, bcm_sysport_rx_refill() might fail to allocate a new Rx skb, thus leaving a hole on the Rx queue where no

Re: [PATCH net-next 2/3] net: systemport: rewrite bcm_sysport_rx_refill

2015-05-28 Thread Florian Fainelli
Le 05/28/15 20:58, Petri Gynther a écrit : [snip] /* We do not have a backing SKB, so we do not a corresponding Is this comment still valid? I removed it from bcmgenet. Not really, thanks, I will fix that in v2. [snip] + + if (priv-rx_read_ptr ==