net/ena: disable ops not supported by secondary process
authorStanislaw Kardach <kda@semihalf.com>
Wed, 12 May 2021 10:13:46 +0000 (12:13 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 12 May 2021 12:19:03 +0000 (14:19 +0200)
commit39ecdd3dfa15d5ac591ce8d77d362480bff32355
tree98194ed5fc21610d1a2b25e25e708376d3de6df8
parentaab58857330bb4bd03f6699bf1ee716f72993774
net/ena: disable ops not supported by secondary process

For dev_ops not supported by the secondary process, either return -EPERM
or return without doing anything. In both cases log a warning.

It's still application's responsibility to avoid calls like that and
those changes are for debugging/informational purposes.

Signed-off-by: Stanislaw Kardach <kda@semihalf.com>
Reviewed-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Igor Chauskin <igorch@amazon.com>
Reviewed-by: Shay Agroskin <shayagr@amazon.com>
drivers/net/ena/ena_ethdev.c