net/ena: lock dynamic usages of admin queue
authorMichal Krawczyk <mk@semihalf.com>
Thu, 17 Sep 2020 05:30:34 +0000 (07:30 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 17:19:09 +0000 (19:19 +0200)
commit1343c4153bf96d25add88c3e21ee5129095a6f7b
treeedcb937591f11b7c88983fe6c698ceddbab7c7e8
parent37cdcfc694a5e9f8f18e254dfe501123c5adf72e
net/ena: lock dynamic usages of admin queue

There are some cases, where the admin queue commands after the
configuration phase finished - for example, the application could ask
for the driver statistics from multiple cores at once.

As by the design, the admin queue is not multithread safe, the spinlock
was added to protect all usages of the admin queue after the
configuration is done.

Signed-off-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Igor Chauskin <igorch@amazon.com>
Reviewed-by: Guy Tzalik <gtzalik@amazon.com>
Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
drivers/net/ena/ena_ethdev.c
drivers/net/ena/ena_ethdev.h