Raja,

I think  ixgbe_init_shared_code() (in KNI code)  checks  the NIC types:


s32 ixgbe_init_shared_code(struct ixgbe_hw *hw)
{
    s32 status;
    /*
     * Set the mac type
     */
    ixgbe_set_mac_type(hw);
    switch (hw->mac.type) {
    case ixgbe_mac_82598EB:
        status = ixgbe_init_ops_82598(hw);
        break;
    case ixgbe_mac_82599EB:
        status = ixgbe_init_ops_82599(hw);
        break;
    case ixgbe_mac_X540:
        status = ixgbe_init_ops_X540(hw);
        break;
    default:
        status = IXGBE_ERR_DEVICE_NOT_SUPPORTED;
        break;
    }
    return status;
}

And  ixgbe_init_shared_code()  seems to be called in typical KNI
initialization:

http://www.dpdk.org/browse/dpdk/plain/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_main.c
static int ixgbe_sw_init(struct ixgbe_adapter *adapter)
{
 struct ixgbe_hw *hw = &adapter->hw;
 struct pci_dev *pdev = adapter->pdev;
 int err;
 /* PCI config space info */
 hw->vendor_id = pdev->vendor;
 hw->device_id = pdev->device;
 pci_read_config_byte(pdev, PCI_REVISION_ID, &hw->revision_id);
 hw->subsystem_vendor_id = pdev->subsystem_vendor;
 hw->subsystem_device_id = pdev->subsystem_device;
 err = ixgbe_init_shared_code(hw);   <<<<<<<<<<<<<
 if (err) {
  e_err(probe, "init_shared_code failed: %d\n", err);
  goto out;
 }




On Fri, Feb 3, 2017 at 1:16 PM, Rajagopalan Sivaramakrishnan <
r...@juniper.net> wrote:

> We have only tested with Intel Niantic (82599 ixgbe 10G) NICs until now,
> but there is nothing that prevents other NICs from working too.
>
>
>
> Raja
>
>
>
> *From: *Dev <dev-boun...@lists.opencontrail.org> on behalf of Joo Kim <
> itsolut...@gmail.com>
> *Date: *Friday, February 3, 2017 at 12:07 PM
> *To: *"dev@lists.opencontrail.org" <dev@lists.opencontrail.org>
> *Subject: *[opencontrail-dev] Intel NIC card requirement for Opencontrail
> DPDK-KNI
>
>
>
> Hello,
>
>
>
> As I understand, only certain Intel NIC cards works for DPDK-KNI.
>
> Could you point me to the supported Intel NIC cards info?
>
>
>
> -thanks-
>
_______________________________________________
Dev mailing list
Dev@lists.opencontrail.org
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org

Reply via email to