]> git.droids-corp.org - dpdk.git/blobdiff - examples/tep_termination/vxlan_setup.c
net/mlx4: fix returned values upon failed probing
[dpdk.git] / examples / tep_termination / vxlan_setup.c
index 37575c27d85797aad827035e814a8c70df384d02..8f1f15bb7dc8a1eda0e60038f53b0586e5656d71 100644 (file)
@@ -249,7 +249,7 @@ vxlan_link(struct vhost_dev *vdev, struct rte_mbuf *m)
 
        struct rte_eth_tunnel_filter_conf tunnel_filter_conf;
 
-       if (unlikely(portid > VXLAN_N_PORTS)) {
+       if (unlikely(portid >= VXLAN_N_PORTS)) {
                RTE_LOG(INFO, VHOST_DATA,
                        "(%d) WARNING: Not configuring device,"
                        "as already have %d ports for VXLAN.",