aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_lib.c
diff options
context:
space:
mode:
authorBrett Creeley <[email protected]>2019-06-26 09:20:23 +0000
committerJeff Kirsher <[email protected]>2019-07-31 20:40:52 +0000
commita1e9968593234c179fcb3e71875897ae585c8362 (patch)
tree0a5118fa25d0fa5238cba8c054d8b507989ed9a2 /drivers/net/ethernet/intel/ice/ice_lib.c
parentice: Add stats for Rx drops at the port level (diff)
downloadkernel-a1e9968593234c179fcb3e71875897ae585c8362.tar.gz
kernel-a1e9968593234c179fcb3e71875897ae585c8362.zip
ice: Remove duplicate code in ice_alloc_rx_bufs
Currently if the call to ice_alloc_mapped_page() fails we jump to the no_buf label, possibly call ice_release_rx_desc(), and return true indicating that there is more work to do. In the success case we just fall out of the while loop, possibly call ice_alloc_mapped_page(), and return false saying we exhausted cleaned_count. This flow can be improved by breaking if ice_alloc_mapped_page() fails and then the flow outside of the while loop is the same for the failure and success case. Signed-off-by: Brett Creeley <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.c')
0 files changed, 0 insertions, 0 deletions