From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by dpdk.org (Postfix) with ESMTP id 33F8F10C4D for ; Wed, 21 Dec 2016 16:10:01 +0100 (CET) Received: by mail-wm0-f67.google.com with SMTP id m203so30975989wma.3 for ; Wed, 21 Dec 2016 07:10:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=kTyzk3zE1rPTQzo71aVJKD3brRpTPBZ1sBYgcYGrlfw=; b=nawMArr1bA6bMjj6Mo09RIISK5M0V7GBVHb3qHJjXCk/iTqEM+f2NTf4CUFJoO+HGt sGOPaH4tvBDmRFmsmxfiAEKs2OkatfA3/rLmUVyyg1xFW8UdUNNwsQzcyCTY8Btx19yv mD2llyqdoIB7sKO5UfLsRgAgQlSw4GjcKMR67gWFqJpalCsEqH2b+rvmtyvmkz+t0Mau ya8ZAUNBQ2UIyf0rD2CylF6nsNWdX72wBeBLT+DFpmehJ6kDeSveEBLg6S63ISO6PeS0 QGO7Xj9WD3Cg5lIXHFYdXXtWZudjpvUOYnOZjhmlfukajsAp0B5nutcb3VvefWlWXrBE nuUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=kTyzk3zE1rPTQzo71aVJKD3brRpTPBZ1sBYgcYGrlfw=; b=YL3HODL2CUVayVv+lQojVexcs/YAhW296hjyKqLU6jZpaZ4jsUhr13IKDaJ+gjkq8A lu1TF77nKXmtoZo2BwWoEiZAsJUy0A0/XiLMjkybZCYqhJzPfrAOISThXR6oldcVYjiW bzPHJ5g5wJvP+Jym6G/eAsxC0ITwybuohzKyaTy1DCARWg03+KD0gH8nDg5ZUzZM4k/6 8kKbohn98agib13XA74cH2YA+M6/QNARYcgUEVZKib7wUZt9cZU808y1QtrqSQLPM0h2 XY/K0mMfHR8M2TJemLLYOe3402o3wJD0rOaBRnjdZbNTqZSBOpnChmo6cNpEZSr9OmYx JDCQ== X-Gm-Message-State: AIkVDXKYNhHpUO5rk75U/mPanvy5WJdV7WRvGUBlxinpnFONqnDCrPDJ+om4q9QytsTgYg== X-Received: by 10.28.165.131 with SMTP id o125mr5280082wme.9.1482333000715; Wed, 21 Dec 2016 07:10:00 -0800 (PST) Received: from weierstrass.local.net ([91.200.109.169]) by smtp.gmail.com with ESMTPSA id 135sm27627375wmh.14.2016.12.21.07.09.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Dec 2016 07:09:59 -0800 (PST) Sender: Jan Blunck From: Jan Blunck To: dev@dpdk.org Cc: shreyansh.jain@nxp.com, david.marchand@6wind.com, stephen@networkplumber.org Date: Wed, 21 Dec 2016 16:09:23 +0100 Message-Id: <1482332986-7599-1-git-send-email-jblunck@infradead.org> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH v4 00/23] Decouple ethdev from PCI device X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2016 15:10:01 -0000 This is a partial merge of Stephens and my patches to make the rte_eth_dev independent of the rte_pci_device. Changes between v4 and v3: - broken out refactorings of drivers similar to Stephens example - use inline function instead of macro - fix build issues with bnx2x and mlx4/5 Changes between v3 and v2: - converted PCI device users I've missed in previous version Jan Blunck (17): eal: define container_of macro eal: Allow passing const rte_intr_handle virtio: Don't fill dev_info->driver_name virtio: Add vtpci_intr_handle() helper to get rte_intr_handle virtio: Don't depend on struct rte_eth_dev's pci_dev bnx2x: localize mapping from eth_dev to pci fm10k: localize mapping from eth_dev to pci qede: localize mapping of eth_dev to pci szedata2: localize handling of pci resources nfp: localize rte_pci_device handling vmxnet3: use eth_dev->data->drv_name instead of pci_drv name ethdev: Helper to map to struct rte_pci_device drivers: Replace per-PMD macros with rte_eth_dev_to_pci() helper drivers: Use rte_eth_dev_to_pci() helper ethdev: Move filling of rte_eth_dev_info->pci_dev to dev_infos_get() ethdev: Decouple interrupt handling from PCI device ethdev: Decouple struct rte_eth_dev from struct rte_pci_device Stephen Hemminger (6): rte_device: make driver pointer const pmd: remove useless reset of dev_info->dev_pci e1000: localize mapping from eth_dev to pci ixgbe: localize mapping from eth_dev to pci_device i40e: localize mapping of eth_dev to pci broadcom: localize mapping from eth_dev to pci app/test/virtual_pmd.c | 5 +- drivers/net/af_packet/rte_eth_af_packet.c | 1 - drivers/net/bnx2x/bnx2x_ethdev.c | 15 +-- drivers/net/bnxt/bnxt_ethdev.c | 24 +++-- drivers/net/bnxt/bnxt_ring.c | 16 ++-- drivers/net/bonding/rte_eth_bond_args.c | 12 ++- drivers/net/bonding/rte_eth_bond_pmd.c | 1 - drivers/net/cxgbe/cxgbe_ethdev.c | 4 +- drivers/net/cxgbe/cxgbe_main.c | 4 +- drivers/net/e1000/em_ethdev.c | 50 +++++----- drivers/net/e1000/igb_ethdev.c | 100 +++++++++++--------- drivers/net/e1000/igb_pf.c | 4 +- drivers/net/ena/ena_ethdev.c | 4 +- drivers/net/enic/enic_ethdev.c | 3 +- drivers/net/fm10k/fm10k_ethdev.c | 84 +++++++++-------- drivers/net/i40e/i40e_ethdev.c | 78 ++++++++++------ drivers/net/i40e/i40e_ethdev_vf.c | 59 +++++++----- drivers/net/ixgbe/ixgbe_ethdev.c | 122 ++++++++++++++----------- drivers/net/ixgbe/ixgbe_pf.c | 4 +- drivers/net/mlx4/mlx4.c | 4 +- drivers/net/mlx5/mlx5.c | 2 +- drivers/net/mlx5/mlx5_ethdev.c | 2 + drivers/net/nfp/nfp_net.c | 19 ++-- drivers/net/null/rte_eth_null.c | 1 - drivers/net/pcap/rte_eth_pcap.c | 1 - drivers/net/qede/qede_ethdev.c | 19 ++-- drivers/net/ring/rte_eth_ring.c | 1 - drivers/net/szedata2/rte_eth_szedata2.c | 73 +++++++++------ drivers/net/szedata2/rte_eth_szedata2.h | 58 +++++------- drivers/net/thunderx/nicvf_ethdev.c | 7 +- drivers/net/virtio/virtio_ethdev.c | 41 ++++----- drivers/net/virtio/virtio_pci.h | 6 ++ drivers/net/virtio/virtio_user_ethdev.c | 1 - drivers/net/vmxnet3/vmxnet3_ethdev.c | 8 +- drivers/net/xenvirt/rte_eth_xenvirt.c | 1 - lib/librte_eal/common/include/rte_common.h | 20 ++++ lib/librte_eal/common/include/rte_dev.h | 2 +- lib/librte_eal/common/include/rte_interrupts.h | 8 +- lib/librte_eal/common/include/rte_pci.h | 6 ++ lib/librte_eal/linuxapp/eal/eal_interrupts.c | 62 +++++++++---- lib/librte_ether/rte_ethdev.c | 25 +++-- lib/librte_ether/rte_ethdev.h | 13 ++- 42 files changed, 577 insertions(+), 393 deletions(-) -- 2.7.4