net/qede/base: fix FreeBSD build
This patch addresses compilation errors on FreeBSD with clang 3.8.0.
drivers/net/qede/base/ecore_cxt.c:1257:2: error:
shifting a negative signed value is undefined
SET_FIELD(cdu_params, CDUC_NCIB, elems_per_page);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/qede/base/ecore.h:82:27: note: expanded from macro 'SET_FIELD'
(value) &= ~(name##_MASK << name##_SHIFT);
~~~~~~~~~~~ ^
Fixes:
ec94dbc57362 ("qede: add base driver")
Cc: stable@dpdk.org
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
Tested-by: Andrew Rybchenko <arybchenko@solarflare.com>