Subject: Re: [PATCH net-next v2 05/10] net: libwx: Allocate Rx and Tx resources

From: Jakub Kicinski <[email-masked]>
Date: Wed, 1 Feb 2023 21:51:12 -0800

On Tue, 31 Jan 2023 18:05:36 +0800 Mengyuan Lou wrote:
> +/* Transmit Descriptor */
> +union wx_tx_desc {
> +	struct {
> +		__le64 buffer_addr; /* Address of descriptor's data buf */
> +		__le32 cmd_type_len;
> +		__le32 olinfo_status;
> +	} read;
> +	struct {
> +		__le64 rsvd; /* Reserved */
> +		__le32 nxtseq_seed;
> +		__le32 status;
> +	} wb;
> +};
> +
> +/* Receive Descriptor */
> +union wx_rx_desc {
> +	struct {
> +		__le64 pkt_addr; /* Packet buffer address */
> +		__le64 hdr_addr; /* Header buffer address */
> +	} read;
> +	struct {
> +		struct {
> +			union {
> +				__le32 data;
> +				struct {
> +					__le16 pkt_info; /* RSS, Pkt type */
> +					__le16 hdr_info; /* Splithdr, hdrlen */
> +				} hs_rss;
> +			} lo_dword;
> +			union {
> +				__le32 rss; /* RSS Hash */
> +				struct {
> +					__le16 ip_id; /* IP id */
> +					__le16 csum; /* Packet Checksum */
> +				} csum_ip;
> +			} hi_dword;
> +		} lower;
> +		struct {
> +			__le32 status_error; /* ext status/error */
> +			__le16 length; /* Packet length */
> +			__le16 vlan; /* VLAN tag */
> +		} upper;
> +	} wb;  /* writeback */
> +};

How close of a copy of Intel Niantic is your device?