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:   Sun, 11 Mar 2018 22:56:16 -0400 (EDT)
From:   David Miller <davem@...emloft.net>
To:     tlfalcon@...ux.vnet.ibm.com
Cc:     netdev@...r.kernel.org, nfont@...ux.vnet.ibm.com,
        jallen@...ux.vnet.ibm.com
Subject: Re: [PATCH 3/4 net-next] ibmvnic: Pad small packets to minimum MTU
 size

From: Thomas Falcon <tlfalcon@...ux.vnet.ibm.com>
Date: Fri,  9 Mar 2018 13:23:56 -0600

> +	/* For some backing devices, mishandling of small packets
> +	 * can result in a loss of connection or TX stall. Device
> +	 * architects recommend that no packet should be smaller
> +	 * than the minimum MTU value provided to the driver, so
> +	 * pad any packets to that length
> +	 */
> +	if (skb->len < netdev->min_mtu) {
> +		return skb_put_padto(skb, netdev->min_mtu);
> +	}

Please do not use curly braces for a single statement
basic block.

Thank you.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ