From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) by dpdk.org (Postfix) with ESMTP id 343CA255 for ; Mon, 10 Aug 2015 20:10:13 +0200 (CEST) Received: by pacrr5 with SMTP id rr5so108694383pac.3 for ; Mon, 10 Aug 2015 11:10:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=/Aa7N6k7fZDwz5NzjM0sXRL3A0rRKIyG0GxCOVsa+SA=; b=QkVU2nEYfvQLjcf4ZRL1qPGIaWl5t9UbXnMAiDPf2UnsCLcT2ixkDdqyKwt2lGj2oH qw/f1GDTOV8OZX/iIiIPEB6GFyH3I7e/FTnzAZtM0g3ci3j9sJ5gk9z/rcpFTpyTUWTk RNhY3GcVFXTr6KIxTv7slrU2CVB1XpQP627u3/Q1SfgvqhhnBF04Actj7bBiaH75MZTi TgF1dx2uDWz4SYswpYIsNxQJBrd0QTlEJlUFBWinljtrhwmP0VIAe1qjCAq/dIVG9HfM vFOV6DS/bV8vFEmqJn5BEFpst1NKeAnpt4OXy8GBwOOf8+mzHpv5AcmQ+H+pHCObX+Qe CCMQ== X-Gm-Message-State: ALoCoQnqeizZggwWSqV3uA7bFh+dAgGZ3VSdsX1lY66y2V6zVwlIhr7OkrQHbDETN2YGmAZlp9tc X-Received: by 10.66.63.8 with SMTP id c8mr48162749pas.122.1439230212340; Mon, 10 Aug 2015 11:10:12 -0700 (PDT) Received: from urahara.home.lan (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by smtp.gmail.com with ESMTPSA id tm3sm20686926pbc.27.2015.08.10.11.10.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 10 Aug 2015 11:10:11 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Date: Mon, 10 Aug 2015 11:10:21 -0700 Message-Id: <1439230221-8855-1-git-send-email-stephen@networkplumber.org> X-Mailer: git-send-email 2.1.4 Cc: Stephen Hemminger Subject: [dpdk-dev] [PATCH] rte_ethdev: whitespace cleanup X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Aug 2015 18:10:13 -0000 From: Stephen Hemminger Cleanup whitespace and other trivial warnings from checkpatch. Signed-off-by: Stephen Hemminger --- lib/librte_ether/rte_ethdev.h | 54 +++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index 544afe0..b2ff337 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -244,7 +244,7 @@ struct rte_eth_link { uint16_t link_speed; /**< ETH_LINK_SPEED_[10, 100, 1000, 10000] */ uint16_t link_duplex; /**< ETH_LINK_[HALF_DUPLEX, FULL_DUPLEX] */ uint8_t link_status : 1; /**< 1 -> link up, 0 -> link down */ -}__attribute__((aligned(8))); /**< aligned for atomic64 read/write */ +} __attribute__((aligned(8))); /**< aligned for atomic64 read/write */ #define ETH_LINK_SPEED_AUTONEG 0 /**< Auto-negotiate link speed. */ #define ETH_LINK_SPEED_10 10 /**< 10 megabits/second. */ @@ -746,7 +746,7 @@ enum rte_l4type { */ enum rte_iptype { RTE_FDIR_IPTYPE_IPV4 = 0, /**< IPv4. */ - RTE_FDIR_IPTYPE_IPV6 , /**< IPv6. */ + RTE_FDIR_IPTYPE_IPV6, /**< IPv6. */ }; /** @@ -864,7 +864,7 @@ struct rte_eth_conf { struct rte_eth_rxmode rxmode; /**< Port RX configuration. */ struct rte_eth_txmode txmode; /**< Port TX configuration. */ uint32_t lpbk_mode; /**< Loopback operation mode. By default the value - is 0, meaning the loopback mode is disabled. + is 0, meaning the loopback mode is disabled. Read the datasheet of given ethernet controller for details. The possible values of this field are defined in implementation of each driver. */ @@ -1454,15 +1454,15 @@ struct eth_dev_ops { /**< Set eeprom */ /* bypass control */ #ifdef RTE_NIC_BYPASS - bypass_init_t bypass_init; - bypass_state_set_t bypass_state_set; - bypass_state_show_t bypass_state_show; - bypass_event_set_t bypass_event_set; - bypass_event_show_t bypass_event_show; - bypass_wd_timeout_set_t bypass_wd_timeout_set; - bypass_wd_timeout_show_t bypass_wd_timeout_show; - bypass_ver_show_t bypass_ver_show; - bypass_wd_reset_t bypass_wd_reset; + bypass_init_t bypass_init; + bypass_state_set_t bypass_state_set; + bypass_state_show_t bypass_state_show; + bypass_event_set_t bypass_event_set; + bypass_event_show_t bypass_event_show; + bypass_wd_timeout_set_t bypass_wd_timeout_set; + bypass_wd_timeout_show_t bypass_wd_timeout_show; + bypass_ver_show_t bypass_ver_show; + bypass_wd_reset_t bypass_wd_reset; #endif /** Configure RSS hash protocols. */ @@ -1628,10 +1628,10 @@ struct rte_eth_dev_data { /**< Common rx buffer size handled by all queues */ uint64_t rx_mbuf_alloc_failed; /**< RX ring mbuf allocation failures. */ - struct ether_addr* mac_addrs;/**< Device Ethernet Link address. */ + struct ether_addr *mac_addrs; /**< Device Ethernet Link address. */ uint64_t mac_pool_sel[ETH_NUM_RECEIVE_MAC_ADDR]; /** bitmap array of associating Ethernet MAC addresses to pools */ - struct ether_addr* hash_mac_addrs; + struct ether_addr *hash_mac_addrs; /** Device Ethernet MAC addresses of hash filtering. */ uint8_t port_id; /**< Device [external] port identifier. */ uint8_t promiscuous : 1, /**< RX promiscuous mode ON(1) / OFF(0). */ @@ -2342,7 +2342,7 @@ extern int rte_eth_dev_set_mtu(uint8_t port_id, uint16_t mtu); * - (-ENOSYS) if VLAN filtering on *port_id* disabled. * - (-EINVAL) if *vlan_id* > 4095. */ -extern int rte_eth_dev_vlan_filter(uint8_t port_id, uint16_t vlan_id , int on); +extern int rte_eth_dev_vlan_filter(uint8_t port_id, uint16_t vlan_id, int on); /** * Enable/Disable hardware VLAN Strip by a rx queue of an Ethernet device. @@ -2563,10 +2563,10 @@ extern uint32_t rte_eth_rx_queue_count(uint8_t port_id, uint16_t queue_id); static inline uint32_t rte_eth_rx_queue_count(uint8_t port_id, uint16_t queue_id) { - struct rte_eth_dev *dev; + struct rte_eth_dev *dev; - dev = &rte_eth_devices[port_id]; - return (*dev->dev_ops->rx_queue_count)(dev, queue_id); + dev = &rte_eth_devices[port_id]; + return (*dev->dev_ops->rx_queue_count)(dev, queue_id); } #endif @@ -2595,8 +2595,8 @@ rte_eth_rx_descriptor_done(uint8_t port_id, uint16_t queue_id, uint16_t offset) struct rte_eth_dev *dev; dev = &rte_eth_devices[port_id]; - return (*dev->dev_ops->rx_descriptor_done)( \ - dev->data->rx_queues[queue_id], offset); + return (*dev->dev_ops->rx_descriptor_done) + (dev->data->rx_queues[queue_id], offset); } #endif @@ -2911,8 +2911,8 @@ enum rte_eth_event_type { RTE_ETH_EVENT_MAX /**< max value of this enum */ }; -typedef void (*rte_eth_dev_cb_fn)(uint8_t port_id, \ - enum rte_eth_event_type event, void *cb_arg); +typedef void (*rte_eth_dev_cb_fn)(uint8_t port_id, + enum rte_eth_event_type event, void *cb_arg); /**< user application callback to be registered for interrupts */ @@ -3246,8 +3246,8 @@ int rte_eth_dev_rss_reta_query(uint8_t port, * - (-ENODEV) if *port_id* invalid. * - (-EINVAL) if bad parameter. */ -int rte_eth_dev_uc_hash_table_set(uint8_t port,struct ether_addr *addr, - uint8_t on); +int rte_eth_dev_uc_hash_table_set(uint8_t port, struct ether_addr *addr, + uint8_t on); /** * Updates all unicast hash bitmaps for receiving packet with any Unicast @@ -3266,7 +3266,7 @@ int rte_eth_dev_uc_hash_table_set(uint8_t port,struct ether_addr *addr, * - (-ENODEV) if *port_id* invalid. * - (-EINVAL) if bad parameter. */ -int rte_eth_dev_uc_all_hash_table_set(uint8_t port,uint8_t on); +int rte_eth_dev_uc_all_hash_table_set(uint8_t port, uint8_t on); /** * Set RX L2 Filtering mode of a VF of an Ethernet device. @@ -3310,7 +3310,7 @@ int rte_eth_dev_set_vf_rxmode(uint8_t port, uint16_t vf, uint16_t rx_mode, * - (-EINVAL) if bad parameter. */ int -rte_eth_dev_set_vf_tx(uint8_t port,uint16_t vf, uint8_t on); +rte_eth_dev_set_vf_tx(uint8_t port, uint16_t vf, uint8_t on); /** * Enable or disable a VF traffic receive of an Ethernet device. @@ -3329,7 +3329,7 @@ rte_eth_dev_set_vf_tx(uint8_t port,uint16_t vf, uint8_t on); * - (-EINVAL) if bad parameter. */ int -rte_eth_dev_set_vf_rx(uint8_t port,uint16_t vf, uint8_t on); +rte_eth_dev_set_vf_rx(uint8_t port, uint16_t vf, uint8_t on); /** * Enable/Disable hardware VF VLAN filtering by an Ethernet device of -- 2.1.4