aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/emulex/benet/be_cmds.h
diff options
context:
space:
mode:
authorAjit Khaparde <ajit.khaparde@emulex.com>2014-09-12 17:39:16 +0530
committerDavid S. Miller <davem@davemloft.net>2014-09-13 17:12:15 -0400
commitc30d72665cce3613ed222215b71dd4b5213169d2 (patch)
tree43549696ab6f5271f2bd03aba66cc6bc96327fa7 /drivers/net/ethernet/emulex/benet/be_cmds.h
parentbe2net: replace strcpy with strlcpy (diff)
downloadlinux-dev-c30d72665cce3613ed222215b71dd4b5213169d2.tar.xz
linux-dev-c30d72665cce3613ed222215b71dd4b5213169d2.zip
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 <ajit.khaparde@emulex.com> Signed-off-by: Kalesh AP <kalesh.purayil@emulex.com> Signed-off-by: Sathya Perla <sathya.perla@emulex.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex/benet/be_cmds.h')
0 files changed, 0 insertions, 0 deletions