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:	Fri, 08 Mar 2013 08:16:24 +0100
From:	Giuseppe CAVALLARO <peppe.cavallaro@...com>
To:	David Miller <davem@...emloft.net>
Cc:	netdev@...r.kernel.org, bh74.an@...sung.com,
	Rayagond K <rayagond@...avyalabs.com>
Subject: Re: [net-next.git 0/9] stmmac: update to March_2013 (adding PTP &
 RGMII/SGMII)

Hello David

On 3/7/2013 9:34 PM, David Miller wrote:
> From: Giuseppe CAVALLARO <peppe.cavallaro@...com>
> Date: Thu,  7 Mar 2013 11:50:10 +0100
>
>> The PTP support is quite intrusive because it needs to support the extended
>> descriptors used for saving the HW timestamps.
>> These are available in new chip generations, only.
>> So we have actually found useful to use some Kconfig options to
>> surround PTP and extended descriptor support. This approach helped on
>> old platform (embeeded system) where PTP is not supported and where we
>> do not want to pay extra code and check in critical rx/tx paths.
>
> I would prefer run time handling of all of this.
>
> You do not need to put extra checks in the fast paths, instead you
> have different methods that get hooked up into the netdev_ops
> based upon chip capabilities/features/mode.

I don't also like to see ifdef in C code and I always tried to
avoid them in the stmmac.

Indeed I haven't well explained the main reason of this Kconfig. Sorry!

To support PTPv2, we need to change the main descriptor structure
adding new fields (DES4,5,6,7).

    The DESC4 is used for saving some extra information. For this reason
    I added this support in a separate patch.
    The DES6/7 are used for saving HW timestamps.

Unfortunately this new layout breaks the compatibility with old chips.

On new chips that supports the extended descriptors, in fact, we have a
ATDS bit in the DMA MODE register to allow the DMA to use the new
alternate structure.
This is not completely supported in old chips.
For this reason I decided to add these extra Koption.

Welcome advice.

Peppe
>
> Thanks.

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ