net/enic: cap Rx packet processing to end of desc ring
authorJohn Daley <johndale@cisco.com>
Fri, 29 Jun 2018 09:29:43 +0000 (02:29 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 2 Jul 2018 23:54:27 +0000 (01:54 +0200)
commit2c06cebeb99cf9e550573e6a7ca1f59ab2ab2e33
treec74873f2a3c48822739cba555770d78e0426267f
parent35e2cb6a1795a44728a294a8933736cdf508ef98
net/enic: cap Rx packet processing to end of desc ring

In the default Rx handler stop processing packets at the end of
the completion ring so that wrapping doesn't have to be checked
in the inner while loop.

Also, check the color bit in the completion without using a conditional.

Signed-off-by: John Daley <johndale@cisco.com>
Reviewed-by: Hyong Youb Kim <hyonkim@cisco.com>
drivers/net/enic/enic_rxtx.c