]> git.droids-corp.org - dpdk.git/commit
sched: fix debug build
authorAli Alnubani <alialnu@nvidia.com>
Sun, 7 Nov 2021 16:30:54 +0000 (18:30 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 7 Nov 2021 17:52:51 +0000 (18:52 +0100)
commit948be25cdbee77e15461ab2b6124fed9ee75b97f
tree81d271bf0693efad0dd0ba0ffe619ed8b8708bcf
parent0eb62bf2950e5699014637ca8bf833d75d750a77
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: 44c730b0e379 ("sched: add PIE based congestion management")
Signed-off-by: Ali Alnubani <alialnu@nvidia.com>
lib/sched/rte_pie.h