[dpdk-dev] [PATCH] ethdev: cleanup device ops struct whitespace

Thomas Monjalon thomas.monjalon at 6wind.com
Thu Dec 22 12:18:27 CET 2016


2016-12-08 13:59, Ferruh Yigit:
> - Grouped related items using empty lines

I have few comments below.

[...]
> +
>  	eth_dev_infos_get_t        dev_infos_get; /**< Get device info. */
>  	eth_dev_supported_ptypes_get_t dev_supported_ptypes_get;
> -	/**< Get packet types supported and identified by device*/
> -	mtu_set_t                  mtu_set; /**< Set MTU. */
> -	vlan_filter_set_t          vlan_filter_set;  /**< Filter VLAN Setup. */
> -	vlan_tpid_set_t            vlan_tpid_set;      /**< Outer/Inner VLAN TPID Setup. */
> +	/**< Get packet types supported and identified by device. */

We could add a blank line here.

> +	mtu_set_t                  mtu_set;       /**< Set MTU. */
> +
[...]
> +
> +	eth_udp_tunnel_port_add_t  udp_tunnel_port_add; /** Add UDP tunnel port. */
> +	eth_udp_tunnel_port_del_t  udp_tunnel_port_del; /** Del UDP tunnel port. */
> +
[...]
> +
> +	reta_update_t              reta_update;   /** Update redirection table. */
> +	reta_query_t               reta_query;    /** Query redirection table. */
> +
> +	eth_get_reg_t              get_reg;           /**< Get registers. */
> +	eth_get_eeprom_length_t    get_eeprom_length; /**< Get eeprom length. */
> +	eth_get_eeprom_t           get_eeprom;        /**< Get eeprom data. */
> +	eth_set_eeprom_t           set_eeprom;        /**< Set eeprom. */
> +
[...]
> +	rss_hash_update_t          rss_hash_update; /** Configure RSS hash protocols. */
> +	rss_hash_conf_get_t        rss_hash_conf_get; /** Get current RSS hash configuration. */

RSS should go above with RETA.

> +	eth_filter_ctrl_t          filter_ctrl; /**< common filter control. */
> +	eth_set_mc_addr_list_t     set_mc_addr_list; /**< set list of mcast addrs. */

Should go with other MAC functions.

[...]
> +	eth_timesync_enable_t      timesync_enable;
>  	/** Turn IEEE1588/802.1AS timestamping on. */
> -	eth_timesync_enable_t timesync_enable;
> +	eth_timesync_disable_t     timesync_disable;
>  	/** Turn IEEE1588/802.1AS timestamping off. */
> -	eth_timesync_disable_t timesync_disable;
> -	/** Read the IEEE1588/802.1AS RX timestamp. */
>  	eth_timesync_read_rx_timestamp_t timesync_read_rx_timestamp;
> -	/** Read the IEEE1588/802.1AS TX timestamp. */
> +	/** Read the IEEE1588/802.1AS RX timestamp. */
>  	eth_timesync_read_tx_timestamp_t timesync_read_tx_timestamp;
> +	/** Read the IEEE1588/802.1AS TX timestamp. */
> +
> +	eth_get_dcb_info           get_dcb_info; /** Get DCB information. */

DCB should not be in the middle of timesync functions.

> +	eth_timesync_adjust_time   timesync_adjust_time; /** Adjust the device clock. */
> +	eth_timesync_read_time     timesync_read_time; /** Get the device clock time. */
> +	eth_timesync_write_time    timesync_write_time; /** Set the device clock time. */



More information about the dev mailing list