net/ena: use unmasked head and tail
authorJakub Palider <jpa@semihalf.com>
Sat, 29 Oct 2016 01:06:14 +0000 (03:06 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 7 Nov 2016 16:55:41 +0000 (17:55 +0100)
commit1daff5260ff8584b3ada836341662ceaf0ed1fba
tree0d7a86bd23e12195b2fa50125b9693ce16b7e528
parentbb6722fb5c0eae07ab3a6566298df2d6028e1cf9
net/ena: use unmasked head and tail

The next_to_clean and next_to_use ring pointers sometimes were kept
wrapped around ring size, sometimes used beyond this limit. From now
on we increment them without regard to ring size limits, but when
reading the values they are wrapped accordingly. Moreover unit16_t
are unsed whenever possible.

Signed-off-by: Tal Avraham <talavr@annapurnalabs.com>
Signed-off-by: Jakub Palider <jpa@semihalf.com>
drivers/net/ena/ena_ethdev.c
drivers/net/ena/ena_ethdev.h