From: Joe Perches <joe@perches.com>
To: Amir Vadai <amirv@mellanox.com>
Cc: "David S. Miller" <davem@davemloft.net>,
netdev@vger.kernel.org, Yevgeny Petrilin <yevgenyp@mellanox.com>,
Saeed Mahameed <saeedm@mellanox.com>,
Or Gerlitz <ogerlitz@mellanox.com>,
Achiad Shochat <achiad@mellanox.com>,
Ido Shamay <idos@mellanox.com>
Subject: Re: [PATCH net-next 04/11] net/mlx5_core: HW data structs/types definitions preparation for mlx5 ehternet driver
Date: Wed, 08 Apr 2015 09:46:27 -0700 [thread overview]
Message-ID: <1428511587.22406.15.camel@perches.com> (raw)
In-Reply-To: <1428504685-8945-5-git-send-email-amirv@mellanox.com>
On Wed, 2015-04-08 at 17:51 +0300, Amir Vadai wrote:
[]
> - Update mlx5_ifc.h to include latest HW structs aligned to PRM rev 0.25
trivia
> diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
[]
> + Autogenerated file.
> + Date: 2015-03-09 14:03
> + Source Document Name: Mellanox <Doc Name>
> + Source Document Version: 0.24
> + Generated by adb_to_c.py (EAT.ME Version: 1.0.70)
> +*/
That's a nice little detail to add.
> #ifndef MLX5_IFC_H
> #define MLX5_IFC_H
>
> enum {
> + MLX5_EVENT_TYPE_CODING_COMPLETION_EVENTS = 0x0,
> + MLX5_EVENT_TYPE_CODING_PATH_MIGRATED_SUCCEEDED = 0x1,
> + MLX5_EVENT_TYPE_CODING_COMMUNICATION_ESTABLISHED = 0x2,
> + MLX5_EVENT_TYPE_CODING_SEND_QUEUE_DRAINED = 0x3,
> + MLX5_EVENT_TYPE_CODING_LAST_WQE_REACHED = 0x13,
> + MLX5_EVENT_TYPE_CODING_SRQ_LIMIT = 0x14,
> + MLX5_EVENT_TYPE_CODING_DCT_ALL_CONNECTIONS_CLOSED = 0x1c,
> + MLX5_EVENT_TYPE_CODING_DCT_ACCESS_KEY_VIOLATION = 0x1d,
> + MLX5_EVENT_TYPE_CODING_CQ_ERROR = 0x4,
> + MLX5_EVENT_TYPE_CODING_LOCAL_WQ_CATASTROPHIC_ERROR = 0x5,
> + MLX5_EVENT_TYPE_CODING_PATH_MIGRATION_FAILED = 0x7,
> + MLX5_EVENT_TYPE_CODING_PAGE_FAULT_EVENT = 0xc,
> + MLX5_EVENT_TYPE_CODING_INVALID_REQUEST_LOCAL_WQ_ERROR = 0x10,
> + MLX5_EVENT_TYPE_CODING_LOCAL_ACCESS_VIOLATION_WQ_ERROR = 0x11,
> + MLX5_EVENT_TYPE_CODING_LOCAL_SRQ_CATASTROPHIC_ERROR = 0x12,
> + MLX5_EVENT_TYPE_CODING_INTERNAL_ERROR = 0x8,
> + MLX5_EVENT_TYPE_CODING_PORT_STATE_CHANGE = 0x9,
> + MLX5_EVENT_TYPE_CODING_GPIO_EVENT = 0x15,
> + MLX5_EVENT_TYPE_CODING_REMOTE_CONFIGURATION_PROTOCOL_EVENT = 0x19,
> + MLX5_EVENT_TYPE_CODING_DOORBELL_BLUEFLAME_CONGESTION_EVENT = 0x1a,
> + MLX5_EVENT_TYPE_CODING_STALL_VL_EVENT = 0x1b,
> + MLX5_EVENT_TYPE_CODING_DROPPED_PACKET_LOGGED_EVENT = 0x1f,
> + MLX5_EVENT_TYPE_CODING_COMMAND_INTERFACE_COMPLETION = 0xa,
> + MLX5_EVENT_TYPE_CODING_PAGE_REQUEST = 0xb
> +};
Curious ordering and numbering.
There's no 0xd or 0xe, 0x16, 0x17, 0x18, 0x1e
Are those reserved?
> +struct mlx5_ifc_flow_table_fields_supported_bits {
> + u8 outer_dmac[0x1];
This structure has one use, but so far that seems
unused. Will this be used later?
Decimal is generally easier to read than hex.
The code is generally easier too if instead of an
array definition of size 1 it's a simple type.
If these are autogenerated, and length/position are important,
it could be nice to do something like:
struct <foo> {
type array1[decimal_size]; /* Hex offset */
...
}
[]
> +struct mlx5_ifc_phys_layer_cntrs_bits {
> + u8 time_since_last_clear_high[0x20];
> +
Why all the blank lines?
If this is autogenerated from a document with comments,
maybe the autogenerator could elide the blank lines too
when in a structure.
next prev parent reply other threads:[~2015-04-08 16:46 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-08 14:51 [PATCH net-next 00/11] net/mlx5: ConnectX-4 100G Ethernet driver Amir Vadai
2015-04-08 14:51 ` [PATCH net-next 01/11] net/mlx5_core: Set irq affinity hints Amir Vadai
2015-04-10 8:27 ` Ido Shamay
2015-04-12 11:15 ` Saeed Mahameed
2015-04-08 14:51 ` [PATCH net-next 02/11] net/mlx5_core: Add EQ renaming mechanism Amir Vadai
2015-04-08 14:51 ` [PATCH net-next 03/11] net/mlx5_core: Virtually extend work/completion queue buffers by one page Amir Vadai
2015-04-08 16:25 ` David Miller
2015-04-08 17:44 ` Amir Vadai
2015-04-08 14:51 ` [PATCH net-next 04/11] net/mlx5_core: HW data structs/types definitions preparation for mlx5 ehternet driver Amir Vadai
2015-04-08 16:46 ` Joe Perches [this message]
2015-04-12 15:54 ` Amir Vadai
2015-04-08 14:51 ` [PATCH net-next 05/11] net/mlx5_core/ib: New device capabilities handling Amir Vadai
2015-04-08 14:51 ` [PATCH net-next 06/11] net/mlx5_core: Implement get and set functions of ptys register fields Amir Vadai
2015-04-08 14:51 ` [PATCH net-next 07/11] net/mlx5_core: Implement get/set port status Amir Vadai
2015-04-08 18:26 ` Sergei Shtylyov
2015-04-08 18:38 ` Amir Vadai
2015-04-08 14:51 ` [PATCH net-next 08/11] net/mlx5_core: Modify CQ moderation parameters Amir Vadai
2015-04-08 14:51 ` [PATCH net-next 09/11] net/mlx5: Ethernet Datapath files Amir Vadai
2015-04-09 2:01 ` Alexander Duyck
2015-04-12 11:33 ` Saeed Mahameed
2015-04-12 11:52 ` Ido Shamay
2015-04-08 14:51 ` [PATCH net-next 10/11] net/mlx5: Ethernet resources handling Amir Vadai
2015-04-08 14:51 ` [PATCH net-next 11/11] net/mlx5: Ethernet driver Amir Vadai
2015-04-08 15:57 ` Eric Dumazet
2015-04-09 2:07 ` Alexander Duyck
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=1428511587.22406.15.camel@perches.com \
--to=joe@perches.com \
--cc=achiad@mellanox.com \
--cc=amirv@mellanox.com \
--cc=davem@davemloft.net \
--cc=idos@mellanox.com \
--cc=netdev@vger.kernel.org \
--cc=ogerlitz@mellanox.com \
--cc=saeedm@mellanox.com \
--cc=yevgenyp@mellanox.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.