net/sfc/base: fix Tx descriptor max number check
authorIgor Romanov <igor.romanov@oktetlabs.ru>
Wed, 9 Jan 2019 11:12:07 +0000 (11:12 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 Jan 2019 16:44:29 +0000 (17:44 +0100)
commit31c2379bad4157ca0beb05c9d2b49395b68f373b
tree090310173ee369707d6d7cdbac93d9e591dcb7b7
parent649885c08e51bcb8680ed2aa522d0f5160dd8fb1
net/sfc/base: fix Tx descriptor max number check

Fix check of maximum descriptor number (compare with maximum Tx
descriptor number instead of maximum EVQ events number).

Fixes: f7dc06bf35f2 ("net/sfc/base: import 5xxx/6xxx family support")
Cc: stable@dpdk.org
Signed-off-by: Igor Romanov <igor.romanov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/base/efx_tx.c