From: Ajit Khaparde Date: Fri, 12 Sep 2014 12:09:16 +0000 (+0530) Subject: be2net: fix RX fragment posting for jumbo frames X-Git-Tag: fixes-against-v3.18-rc2~81^2~66^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c30d72665cce3613ed222215b71dd4b5213169d2;p=pandora-kernel.git be2net: fix RX fragment posting for jumbo frames In the RX path, the driver currently consumes upto 64 (budget) packets in one NAPI sweep. When the size of the packet received is larger than a fragment size (2K), more than one fragment is consumed for each packet. As the driver currently posts a max of 64 fragments, all the consumed fragments may not be replenished. This can cause avoidable drops in RX path. This patch fixes this by posting a max(consumed_frags, 64) frags. This is done only when there are atleast 64 free slots in the RXQ. Signed-off-by: Ajit Khaparde Signed-off-by: Kalesh AP Signed-off-by: Sathya Perla Signed-off-by: David S. Miller --- Reading git-diff-tree failed