net/ena: fix parsing of large LLQ header device argument
authorIgor Chauskin <igorch@amazon.com>
Tue, 11 May 2021 06:45:46 +0000 (08:45 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 11 May 2021 13:00:44 +0000 (15:00 +0200)
commit9b312ad310024d00822cbc431677b59daa1e5e2c
tree6129f37806f36a37d66c9c0aeaf826e3200451b1
parent7c0a233eef4f458a35cfc2105208f1772be62c9b
net/ena: fix parsing of large LLQ header device argument

The code incorrectly checked the return value of comparison when parsing
the argument key name. The return value of strcmp should be compared
to 0 to identify a match.

Fixes: 8a7a73f26cc9 ("net/ena: support large LLQ headers")
Cc: stable@dpdk.org
Signed-off-by: Igor Chauskin <igorch@amazon.com>
Reviewed-by: Shay Agroskin <shayagr@amazon.com>
Reviewed-by: Michal Krawczyk <mk@semihalf.com>
drivers/net/ena/ena_ethdev.c