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:   Tue, 7 Jul 2020 04:05:11 +0000
From:   Andy Duan <fugang.duan@....com>
To:     Sergey Organov <sorganov@...il.com>,
        "netdev@...r.kernel.org" <netdev@...r.kernel.org>
CC:     "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "David S. Miller" <davem@...emloft.net>,
        Jakub Kicinski <kuba@...nel.org>
Subject: RE: [EXT] [PATCH  2/5] net: fec: enable to use PPS feature without
 time stamping

From: Sergey Organov <sorganov@...il.com> Sent: Monday, July 6, 2020 10:26 PM
> PPS feature could be useful even when hardware time stamping of network
> packets is not in use, so remove offending check for this condition from
> fec_ptp_enable_pps().

If hardware time stamping of network packets is not in use, PPS is based on local
clock, what is the use case ?

> 
> Signed-off-by: Sergey Organov <sorganov@...il.com>
> ---
>  drivers/net/ethernet/freescale/fec_ptp.c | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/drivers/net/ethernet/freescale/fec_ptp.c
> b/drivers/net/ethernet/freescale/fec_ptp.c
> index f8a592c..4a12086 100644
> --- a/drivers/net/ethernet/freescale/fec_ptp.c
> +++ b/drivers/net/ethernet/freescale/fec_ptp.c
> @@ -103,11 +103,6 @@ static int fec_ptp_enable_pps(struct
> fec_enet_private *fep, uint enable)
>         u64 ns;
>         val = 0;
> 
> -       if (!(fep->hwts_tx_en || fep->hwts_rx_en)) {
> -               dev_err(&fep->pdev->dev, "No ptp stack is running\n");
> -               return -EINVAL;
> -       }
> -
>         if (fep->pps_enable == enable)
>                 return 0;
> 
> --
> 2.10.0.1.g57b01a3

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ