#include <rte_atomic.h>
#include <rte_bus_pci.h>
-#include <rte_ethdev.h>
+#include <ethdev_driver.h>
#include <rte_spinlock.h>
#include "otx2_common.h"
struct otx2_sec_idev_cfg *cfg;
int i, ret;
- if (qp == NULL || port_id > OTX2_MAX_INLINE_PORTS)
+ if (qp == NULL || port_id >= OTX2_MAX_INLINE_PORTS)
return -EINVAL;
cfg = &sec_cfg[port_id];
uint16_t index;
int i, ret;
- if (port_id > OTX2_MAX_INLINE_PORTS || qp == NULL)
+ if (port_id >= OTX2_MAX_INLINE_PORTS || qp == NULL)
return -EINVAL;
cfg = &sec_cfg[port_id];