net/ixgbe: fix API parameter checking
authorTiwei Bie <tiwei.bie@intel.com>
Tue, 24 Jan 2017 09:00:49 +0000 (17:00 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 30 Jan 2017 21:18:26 +0000 (22:18 +0100)
commitd2b46fd1357f5a33698711e26be0835b41add542
tree1ac8ccc595e7d9b03ca2b15dd1ec675655416c20
parent70efa56740ec394e46ca8f44da545724434a7f15
net/ixgbe: fix API parameter checking

Add checks to rte_pmd_ixgbe_macsec_* APIs to ensure that the
port is an ixgbe port.

Fixes: b35d309710fe ("net/ixgbe: add MACsec offload")
Cc: stable@dpdk.org
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c
drivers/net/ixgbe/rte_pmd_ixgbe.h