On 03/21/2014 07:03 PM, Pravin wrote:
new netdev type like DPDK can support multi-queue IO. Following
patch Adds support for same.

Signed-off-by: Pravin B Shelar <pshe...@nicira.com>

Straight forward patch

Acked-by: Thomas Graf <tg...@redhat.com>

@@ -514,15 +527,16 @@ netdev_parse_name(const char *netdev_name_, char **name, 
char **type)
   * Some kinds of network devices might not support receiving packets.  This
   * function returns EOPNOTSUPP in that case.*/
  int
-netdev_rxq_open(struct netdev *netdev, struct netdev_rxq **rxp)
+netdev_rxq_open(struct netdev *netdev, struct netdev_rxq **rxp, int id)
      OVS_EXCLUDED(netdev_mutex)
  {
      int error;

-    if (netdev->netdev_class->rxq_alloc) {
+    if (netdev->netdev_class->rxq_alloc && id < netdev->n_rxq) {

Could perhaps consider to assert on id >= netdev->n_rxq since
n_rxq should feed the loop opening the rxq.
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to