lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 08 May 2024 16:41:03 +0900 (JST)
From: FUJITA Tomonori <fujita.tomonori@...il.com>
To: kuba@...nel.org
Cc: fujita.tomonori@...il.com, netdev@...r.kernel.org, andrew@...n.ch,
 jiri@...nulli.us, horms@...nel.org
Subject: Re: [PATCH net-next v4 3/6] net: tn40xx: add basic Tx handling

Hi,

On Mon, 6 May 2024 18:51:29 -0700
Jakub Kicinski <kuba@...nel.org> wrote:

> On Thu,  2 May 2024 08:05:49 +0900 FUJITA Tomonori wrote:
>> +	err = tn40_tx_map_skb(priv, skb, txdd, &pkt_len);
>> +	if (err) {
>> +		dev_kfree_skb(skb);
>> +		return NETDEV_TX_OK;
> 
> make sure you always count drops

Fixed.


>> +	.ndo_get_stats = tn40_get_stats,
> 
> ndo_get_stats64 is the standard these days

Fixed. I'll work on hardware stats support after merged (seems that
some firmware versions support hw stats).


>> +struct tn40_txd_desc {
>> +	__le32 txd_val1;
>> +	__le16 mss;
>> +	__le16 length;
>> +	__le32 va_lo;
>> +	__le32 va_hi;
>> +	struct tn40_pbl pbl[]; /* Fragments */
>> +} __packed;
>> +
>> +struct tn40_txf_desc {
>> +	u32 status;
>> +	u32 va_lo; /* VAdr[31:0] */
>> +	u32 va_hi; /* VAdr[63:32] */
>> +	u32 pad;
>> +} __packed;
> 
> Can these be unaligned? There doesn't seem to be any holes in these
> struct, it's not necessary to pack them unless you want them to be
> unaligned.

Indeed, not necessary. Removed.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ