X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Flibrte_pmd_enic%2Fenic_ethdev.c;h=9cb6666b762275cdbad2532cc539b9b726c8605a;hb=782c8c92f13fd8f4954e0ade55c250df73e4b296;hp=f582152d7fe0b853d15bf7a10b5ef03d4e983437;hpb=fefed3d1e62cc0a50af965baaa3acd98542dc833;p=dpdk.git diff --git a/lib/librte_pmd_enic/enic_ethdev.c b/lib/librte_pmd_enic/enic_ethdev.c index f582152d7f..9cb6666b76 100644 --- a/lib/librte_pmd_enic/enic_ethdev.c +++ b/lib/librte_pmd_enic/enic_ethdev.c @@ -67,7 +67,7 @@ RTE_PCI_DEV_ID_DECL_ENIC(PCI_VENDOR_ID_CISCO, PCI_DEVICE_ID_CISCO_VIC_ENET_VF) static int enicpmd_fdir_remove_perfect_filter(struct rte_eth_dev *eth_dev, struct rte_fdir_filter *fdir_filter, - uint16_t soft_id) + __rte_unused uint16_t soft_id) { struct enic *enic = pmd_priv(eth_dev); @@ -76,7 +76,7 @@ static int enicpmd_fdir_remove_perfect_filter(struct rte_eth_dev *eth_dev, } static int enicpmd_fdir_add_perfect_filter(struct rte_eth_dev *eth_dev, - struct rte_fdir_filter *fdir_filter, uint16_t soft_id, + struct rte_fdir_filter *fdir_filter, __rte_unused uint16_t soft_id, uint8_t queue, uint8_t drop) { struct enic *enic = pmd_priv(eth_dev); @@ -103,7 +103,7 @@ static void enicpmd_dev_tx_queue_release(void *txq) static int enicpmd_dev_setup_intr(struct enic *enic) { int ret; - int index; + unsigned int index; ENICPMD_FUNC_TRACE(); @@ -134,7 +134,7 @@ static int enicpmd_dev_tx_queue_setup(struct rte_eth_dev *eth_dev, uint16_t queue_idx, uint16_t nb_desc, unsigned int socket_id, - const struct rte_eth_txconf *tx_conf) + __rte_unused const struct rte_eth_txconf *tx_conf) { int ret; struct enic *enic = pmd_priv(eth_dev); @@ -215,7 +215,7 @@ static int enicpmd_dev_rx_queue_setup(struct rte_eth_dev *eth_dev, uint16_t queue_idx, uint16_t nb_desc, unsigned int socket_id, - const struct rte_eth_rxconf *rx_conf, + __rte_unused const struct rte_eth_rxconf *rx_conf, struct rte_mempool *mp) { int ret; @@ -334,7 +334,7 @@ static void enicpmd_dev_close(struct rte_eth_dev *eth_dev) } static int enicpmd_dev_link_update(struct rte_eth_dev *eth_dev, - int wait_to_complete) + __rte_unused int wait_to_complete) { struct enic *enic = pmd_priv(eth_dev); int ret; @@ -428,7 +428,7 @@ static void enicpmd_dev_allmulticast_disable(struct rte_eth_dev *eth_dev) static void enicpmd_add_mac_addr(struct rte_eth_dev *eth_dev, struct ether_addr *mac_addr, - uint32_t index, uint32_t pool) + __rte_unused uint32_t index, __rte_unused uint32_t pool) { struct enic *enic = pmd_priv(eth_dev); @@ -436,7 +436,7 @@ static void enicpmd_add_mac_addr(struct rte_eth_dev *eth_dev, enic_set_mac_address(enic, mac_addr->addr_bytes); } -static void enicpmd_remove_mac_addr(struct rte_eth_dev *eth_dev, uint32_t index) +static void enicpmd_remove_mac_addr(struct rte_eth_dev *eth_dev, __rte_unused uint32_t index) { struct enic *enic = pmd_priv(eth_dev); @@ -457,7 +457,6 @@ static uint16_t enicpmd_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, struct rte_mbuf *tx_pkt; struct vnic_wq *wq = (struct vnic_wq *)tx_queue; struct enic *enic = vnic_dev_priv(wq->vdev); - unsigned char *buf; unsigned short vlan_id; unsigned short ol_flags; @@ -595,7 +594,8 @@ static struct eth_driver rte_enic_pmd = { * Invoked once at EAL init time. * Register as the [Poll Mode] Driver of Cisco ENIC device. */ -int rte_enic_pmd_init(const char *name __rte_unused, +static int +rte_enic_pmd_init(const char *name __rte_unused, const char *params __rte_unused) { ENICPMD_FUNC_TRACE();