net/cxgbe: fix colliding function names
[dpdk.git] / drivers / net / cxgbe / cxgbevf_main.c
index 6223e12..0ac2d98 100644 (file)
@@ -7,10 +7,11 @@
 #include <rte_ethdev_pci.h>
 #include <rte_malloc.h>
 
-#include "common.h"
-#include "t4_regs.h"
-#include "t4_msg.h"
+#include "base/common.h"
+#include "base/t4_regs.h"
+#include "base/t4_msg.h"
 #include "cxgbe.h"
+#include "mps_tcam.h"
 
 /*
  * Figure out how many Ports and Queue Sets we can support.  This depends on
@@ -49,7 +50,7 @@ static void size_nports_qsets(struct adapter *adapter)
                adapter->params.nports = pmask_nports;
        }
 
-       configure_max_ethqsets(adapter);
+       cxgbe_configure_max_ethqsets(adapter);
        if (adapter->sge.max_ethqsets < adapter->params.nports) {
                dev_warn(adapter->pdev_dev, "only using %d of %d available"
                         " virtual interfaces (too few Queue Sets)\n",
@@ -267,11 +268,16 @@ allocate_mac:
                }
        }
 
-       cfg_queues(adapter->eth_dev);
-       print_adapter_info(adapter);
-       print_port_info(adapter);
+       cxgbe_cfg_queues(adapter->eth_dev);
+       cxgbe_print_adapter_info(adapter);
+       cxgbe_print_port_info(adapter);
 
-       err = init_rss(adapter);
+       adapter->mpstcam = t4_init_mpstcam(adapter);
+       if (!adapter->mpstcam)
+               dev_warn(adapter,
+                        "VF could not allocate mps tcam table. Continuing\n");
+
+       err = cxgbe_init_rss(adapter);
        if (err)
                goto out_free;
        return 0;