app/crypto-perf: fix CSV format
[dpdk.git] / kernel / linux / kni / kni_dev.h
index c9393d8..d57bce6 100644 (file)
 #include <linux/spinlock.h>
 #include <linux/list.h>
 
-#include <exec-env/rte_kni_common.h>
+#include <rte_kni_common.h>
 #define KNI_KTHREAD_RESCHEDULE_INTERVAL 5 /* us */
 
 #define MBUF_BURST_SZ 32
 
+/* Default carrier state for created KNI network interfaces */
+extern uint32_t dflt_carrier;
+
 /**
  * A structure describing the private information for a kni device.
  */
@@ -47,13 +50,8 @@ struct kni_dev {
        wait_queue_head_t wq;
        struct mutex sync_lock;
 
-       /* PCI device id */
-       uint16_t device_id;
-
        /* kni device */
        struct net_device *net_dev;
-       struct net_device *lad_dev;
-       struct pci_dev *pci_dev;
 
        /* queue for packets to be sent out */
        void *tx_q;
@@ -92,15 +90,10 @@ struct kni_dev {
        void *alloc_va[MBUF_BURST_SZ];
 };
 
+void kni_net_release_fifo_phy(struct kni_dev *kni);
 void kni_net_rx(struct kni_dev *kni);
 void kni_net_init(struct net_device *dev);
 void kni_net_config_lo_mode(char *lo_str);
 void kni_net_poll_resp(struct kni_dev *kni);
-void kni_set_ethtool_ops(struct net_device *netdev);
-
-int ixgbe_kni_probe(struct pci_dev *pdev, struct net_device **lad_dev);
-void ixgbe_kni_remove(struct pci_dev *pdev);
-int igb_kni_probe(struct pci_dev *pdev, struct net_device **lad_dev);
-void igb_kni_remove(struct pci_dev *pdev);
 
 #endif