net/bnxt: fix context memory allocation
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Mon, 29 Jul 2019 21:28:05 +0000 (17:28 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 30 Jul 2019 17:39:39 +0000 (19:39 +0200)
commit02cc2b439e0779123a44c0dfe0c3380e15e8ae78
treece33d5c6827f24b3c32b0add8451bd216df0c4bb
parent198cce71104370de0be3085d3772b502e2aa4984
net/bnxt: fix context memory allocation

There is a bug in context memory allocation because of which
it results in reusing the context memory allocated for the first
port while allocating memory for next ports.

Fix it by passing the port id in the name field while
allocating context memory.

Fixes: f8168ca0e690 ("net/bnxt: support thor controller")

Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c