net/bonding: remove socket id check
[dpdk.git] / drivers / net / bonding / rte_eth_bond_pmd.c
index 82959ab..a8d9780 100644 (file)
@@ -793,8 +793,8 @@ bond_ethdev_tx_burst_alb(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)
        uint16_t slave_bufs_pkts[RTE_MAX_ETHPORTS + 1] = { 0 };
 
        /*
-        * We create separate transmit buffers for update packets as they wont be
-        * counted in num_tx_total.
+        * We create separate transmit buffers for update packets as they won't
+        * be counted in num_tx_total.
         */
        struct rte_mbuf *update_bufs[RTE_MAX_ETHPORTS][ALB_HASH_TABLE_SIZE];
        uint16_t update_bufs_pkts[RTE_MAX_ETHPORTS] = { 0 };
@@ -2272,12 +2272,6 @@ bond_alloc(struct rte_vdev_device *dev, uint8_t mode)
         * and internal (private) data
         */
 
-       if (socket_id >= number_of_sockets()) {
-               RTE_BOND_LOG(ERR,
-                               "Invalid socket id specified to create bonded device on.");
-               goto err;
-       }
-
        /* reserve an ethdev entry */
        eth_dev = rte_eth_vdev_allocate(dev, sizeof(*internals));
        if (eth_dev == NULL) {