X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fixgbe%2Frte_pmd_ixgbe.c;h=9bff557f979c824501a0da1919b56a83179a5e4a;hb=1256805dd54d;hp=073fe1e234b3e9bf25a621e4de42e1ef998b607f;hpb=50556c88104cbc0096e90f454dc137258be2099f;p=dpdk.git diff --git a/drivers/net/ixgbe/rte_pmd_ixgbe.c b/drivers/net/ixgbe/rte_pmd_ixgbe.c index 073fe1e234..9bff557f97 100644 --- a/drivers/net/ixgbe/rte_pmd_ixgbe.c +++ b/drivers/net/ixgbe/rte_pmd_ixgbe.c @@ -522,6 +522,10 @@ rte_pmd_ixgbe_macsec_enable(uint16_t port, uint8_t en, uint8_t rp) dev = &rte_eth_devices[port]; + if (!is_ixgbe_supported(dev)) + return -ENOTSUP; + + macsec_setting.offload_en = 1; macsec_setting.encrypt_en = en; macsec_setting.replayprotect_en = rp; @@ -541,6 +545,9 @@ rte_pmd_ixgbe_macsec_disable(uint16_t port) dev = &rte_eth_devices[port]; + if (!is_ixgbe_supported(dev)) + return -ENOTSUP; + ixgbe_dev_macsec_setting_reset(dev); ixgbe_dev_macsec_register_disable(dev);