net/ena: add stop and uninit routines
authorMichal Krawczyk <mk@semihalf.com>
Thu, 7 Jun 2018 09:43:00 +0000 (11:43 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 14 Jun 2018 17:27:50 +0000 (19:27 +0200)
commiteb0ef49dd5d53d537505eba16ef522e4b72a3560
treed1c6114e0f8dfa3e05050e98543fa733c50dca5f
parent15773e063feb93f6fa09b6ee73f60b93816c6b63
net/ena: add stop and uninit routines

Lack of uninit routine could lead to memory leak.
Stop was added to fulfill allowed PMD operations.

Checks for the PMD states in the start and configure routine were
removed, as the upper layer is already checking for them.

The interrupt setup was moved from start to init function.

Signed-off-by: Michal Krawczyk <mk@semihalf.com>
drivers/net/ena/ena_ethdev.c
drivers/net/ena/ena_ethdev.h