sched: fix debug build
Compare pkt_len to 0 instead of NULL to avoid the following build
failure with debug mode enabled:
../lib/sched/rte_pie.h: In function 'rte_pie_enqueue_empty':
../lib/sched/rte_pie.h:125:21: error: comparison between pointer
and integer [-Werror]
RTE_ASSERT(pkt_len != NULL);
Bugzilla ID: 878
Fixes: 44c730b0e3
("sched: add PIE based congestion management")
Signed-off-by: Ali Alnubani <alialnu@nvidia.com>
This commit is contained in:
parent
0eb62bf295
commit
948be25cdb
@ -122,7 +122,7 @@ rte_pie_enqueue_empty(const struct rte_pie_config *pie_cfg,
|
||||
struct rte_pie *pie,
|
||||
uint32_t pkt_len)
|
||||
{
|
||||
RTE_ASSERT(pkt_len != NULL);
|
||||
RTE_ASSERT(pkt_len != 0);
|
||||
|
||||
/* Update the PIE qlen parameter */
|
||||
pie->qlen++;
|
||||
|
Loading…
Reference in New Issue
Block a user