net/sfc: correct estimation of max DMA descriptors required
authorAndrew Rybchenko <arybchenko@solarflare.com>
Fri, 21 Apr 2017 11:02:33 +0000 (12:02 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 28 Apr 2017 12:46:17 +0000 (14:46 +0200)
commitb69862719eb2e8e6713aae56176bc065647efd0e
tree630d4358c39b23fb5e2d3c40dfd1146cc8dd3875
parentb826efba6de491659c9c2025e42b1bf9df8d933c
net/sfc: correct estimation of max DMA descriptors required

Previous too pessimistic estimation made completely impossible to send
packets with many segments (more than 100 with minimum Tx ring size).

Fixes: 8b00f426eb66 ("net/sfc: implement EF10 native Tx datapath")

Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Andrew Lee <alee@solarflare.com>
drivers/net/sfc/sfc_ef10_tx.c