net/ixgbe: fix performance drop caused by MACsec
authorShougang Wang <shougangx.wang@intel.com>
Thu, 21 Nov 2019 07:32:05 +0000 (07:32 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 26 Nov 2019 17:05:15 +0000 (18:05 +0100)
commit54aedfe1c02119337485388263c2782d6d39541d
treec22dd61fbe0e880cca59bcb301cefc2df09bbfbd
parent1ef4cdef26822fc1adb05dd10878c35d48bbc9ab
net/ixgbe: fix performance drop caused by MACsec

Currently macsec offload will be enabled every time when device starts.
It will cause QoS sample application performance drop issue. This patch
adds check in dev_start ops to make sure macsec is only enabled when
required explicitly.

Fixes: 50556c88104c ("net/ixgbe: fix MACsec setting")
Cc: stable@dpdk.org
Signed-off-by: Shougang Wang <shougangx.wang@intel.com>
Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c
drivers/net/ixgbe/ixgbe_ethdev.h
drivers/net/ixgbe/rte_pmd_ixgbe.c