forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h
....@@ -118,12 +118,17 @@
118118 * struct opa_vesw_info - OPA vnic switch information
119119 * @fabric_id: 10-bit fabric id
120120 * @vesw_id: 12-bit virtual ethernet switch id
121
+ * @rsvd0: reserved bytes
121122 * @def_port_mask: bitmask of default ports
123
+ * @rsvd1: reserved bytes
122124 * @pkey: partition key
125
+ * @rsvd2: reserved bytes
123126 * @u_mcast_dlid: unknown multicast dlid
124127 * @u_ucast_dlid: array of unknown unicast dlids
128
+ * @rsvd3: reserved bytes
125129 * @rc: routing control
126130 * @eth_mtu: Ethernet MTU
131
+ * @rsvd4: reserved bytes
127132 */
128133 struct opa_vesw_info {
129134 __be16 fabric_id;
....@@ -150,12 +155,14 @@
150155 * struct opa_per_veswport_info - OPA vnic per port information
151156 * @port_num: port number
152157 * @eth_link_status: current ethernet link state
158
+ * @rsvd0: reserved bytes
153159 * @base_mac_addr: base mac address
154160 * @config_state: configured port state
155161 * @oper_state: operational port state
156162 * @max_mac_tbl_ent: max number of mac table entries
157163 * @max_smac_ent: max smac entries in mac table
158164 * @mac_tbl_digest: mac table digest
165
+ * @rsvd1: reserved bytes
159166 * @encap_slid: base slid for the port
160167 * @pcp_to_sc_uc: sc by pcp index for unicast ethernet packets
161168 * @pcp_to_vl_uc: vl by pcp index for unicast ethernet packets
....@@ -165,8 +172,10 @@
165172 * @non_vlan_vl_uc: vl for non-vlan unicast ethernet packets
166173 * @non_vlan_sc_mc: sc for non-vlan multicast ethernet packets
167174 * @non_vlan_vl_mc: vl for non-vlan multicast ethernet packets
175
+ * @rsvd2: reserved bytes
168176 * @uc_macs_gen_count: generation count for unicast macs list
169177 * @mc_macs_gen_count: generation count for multicast macs list
178
+ * @rsvd3: reserved bytes
170179 */
171180 struct opa_per_veswport_info {
172181 __be32 port_num;
....@@ -239,7 +248,7 @@
239248 * @offset: mac table starting offset
240249 * @num_entries: Number of entries to get or set
241250 * @mac_tbl_digest: mac table digest
242
- * @tbl_entries[]: Array of table entries
251
+ * @tbl_entries: Array of table entries
243252 *
244253 * The EM sends down this structure in a MAD indicating
245254 * the starting offset in the forwarding table that this
....@@ -258,7 +267,7 @@
258267 __be16 offset;
259268 __be16 num_entries;
260269 __be32 mac_tbl_digest;
261
- struct opa_veswport_mactable_entry tbl_entries[0];
270
+ struct opa_veswport_mactable_entry tbl_entries[];
262271 } __packed;
263272
264273 /**
....@@ -294,6 +303,7 @@
294303 * @rx_512_1023: received packet length is >=512 and < 1023 bytes
295304 * @rx_1024_1518: received packet length is >=1024 and < 1518 bytes
296305 * @rx_1519_max: received packet length >= 1519 bytes
306
+ * @reserved: reserved bytes
297307 *
298308 * All the above are counters of corresponding conditions.
299309 */
....@@ -347,18 +357,28 @@
347357 * @veswport_num: virtual ethernet switch port number
348358 * @tx_errors: transmit errors
349359 * @rx_errors: receive errors
360
+ * @rsvd0: reserved bytes
350361 * @tx_smac_filt: smac filter errors
362
+ * @rsvd1: reserved bytes
363
+ * @rsvd2: reserved bytes
364
+ * @rsvd3: reserved bytes
351365 * @tx_dlid_zero: transmit packets with invalid dlid
366
+ * @rsvd4: reserved bytes
352367 * @tx_logic: other transmit errors
368
+ * @rsvd5: reserved bytes
353369 * @tx_drop_state: packet tansmission in non-forward port state
354370 * @rx_bad_veswid: received packet with invalid vesw id
371
+ * @rsvd6: reserved bytes
355372 * @rx_runt: received ethernet packet with length < 64 bytes
356373 * @rx_oversize: received ethernet packet with length > MTU size
374
+ * @rsvd7: reserved bytes
357375 * @rx_eth_down: received packets when interface is down
358376 * @rx_drop_state: received packets in non-forwarding port state
359377 * @rx_logic: other receive errors
378
+ * @rsvd8: reserved bytes
379
+ * @rsvd9: reserved bytes
360380 *
361
- * All the above are counters of corresponding erorr conditions.
381
+ * All the above are counters of corresponding error conditions.
362382 */
363383 struct opa_veswport_error_counters {
364384 __be16 vp_instance;
....@@ -440,13 +460,14 @@
440460 __be16 num_macs_in_msg;
441461 __be16 tot_macs_in_lst;
442462 __be16 gen_count;
443
- struct opa_vnic_iface_mac_entry entry[0];
463
+ struct opa_vnic_iface_mac_entry entry[];
444464 } __packed;
445465
446466 /**
447467 * struct opa_vnic_vema_mad - Generic VEMA MAD
448468 * @mad_hdr: Generic MAD header
449469 * @rmpp_hdr: RMPP header for vendor specific MADs
470
+ * @reserved: reserved bytes
450471 * @oui: Unique org identifier
451472 * @data: MAD data
452473 */
....@@ -467,6 +488,7 @@
467488 * @trap_num: Trap number
468489 * @toggle_count: Notice toggle bit and count value
469490 * @issuer_lid: Trap issuer's lid
491
+ * @reserved: reserved bytes
470492 * @issuer_gid: Issuer GID (only if Report method)
471493 * @raw_data: Trap message body
472494 */
....@@ -487,6 +509,7 @@
487509 * struct opa_vnic_vema_mad_trap - Generic VEMA MAD Trap
488510 * @mad_hdr: Generic MAD header
489511 * @rmpp_hdr: RMPP header for vendor specific MADs
512
+ * @reserved: reserved bytes
490513 * @oui: Unique org identifier
491514 * @notice: Notice structure
492515 */