All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: Ferruh Yigit <ferruh.yigit@intel.com>
Cc: dev@dpdk.org
Subject: Re: [PATCH] ethdev: cleanup device ops struct whitespace
Date: Thu, 22 Dec 2016 12:18:27 +0100	[thread overview]
Message-ID: <1679817.BkgAe1E4Dq@xps13> (raw)
In-Reply-To: <20161208135940.17233-1-ferruh.yigit@intel.com>

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. */

  reply	other threads:[~2016-12-22 11:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-08 13:59 [PATCH] ethdev: cleanup device ops struct whitespace Ferruh Yigit
2016-12-22 11:18 ` Thomas Monjalon [this message]
2016-12-22 11:53 ` [PATCH v2] " Ferruh Yigit
2016-12-22 12:46   ` Thomas Monjalon
2016-12-22 13:10   ` [PATCH v3] " Ferruh Yigit
2016-12-22 15:00     ` Thomas Monjalon
2016-12-22 15:10     ` Jan Blunck
2016-12-22 15:16       ` Ferruh Yigit
2016-12-22 15:28         ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1679817.BkgAe1E4Dq@xps13 \
    --to=thomas.monjalon@6wind.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.