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  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:   Thu, 22 Jul 2021 04:47:01 -0700
From:   Richard Cochran <richardcochran@...il.com>
To:     Tony Nguyen <anthony.l.nguyen@...el.com>
Cc:     davem@...emloft.net, kuba@...nel.org,
        Piotr Kwapulinski <piotr.kwapulinski@...el.com>,
        netdev@...r.kernel.org,
        Aleksandr Loktionov <aleksandr.loktionov@...el.com>,
        Arkadiusz Kubalewski <arkadiusz.kubalewski@...el.com>,
        Ashish K <ashishx.k@...el.com>
Subject: Re: [PATCH net-next v2 1/1] i40e: add support for PTP external
 synchronization clock

On Tue, Jul 20, 2021 at 04:23:48PM -0700, Tony Nguyen wrote:

> +/**
> + * i40e_set_subsystem_device_id - set subsystem device id
> + * @hw: pointer to the hardware info
> + *
> + * Set PCI subsystem device id either from a pci_dev structure or
> + * a specific FW register.
> + **/
> +static inline void i40e_set_subsystem_device_id(struct i40e_hw *hw)
> +{
> +	struct pci_dev *pdev = ((struct i40e_pf *)hw->back)->pdev;
> +
> +	hw->subsystem_device_id = pdev->subsystem_device ?
> +		pdev->subsystem_device :
> +		(ushort)(rd32(hw, I40E_PFPCI_SUBSYSID) & USHRT_MAX);
> +}
> +
>  /**
>   * i40e_probe - Device initialization routine
>   * @pdev: PCI device information struct
> @@ -15262,7 +15281,7 @@ static int i40e_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
>  	hw->device_id = pdev->device;
>  	pci_read_config_byte(pdev, PCI_REVISION_ID, &hw->revision_id);
>  	hw->subsystem_vendor_id = pdev->subsystem_vendor;
> -	hw->subsystem_device_id = pdev->subsystem_device;
> +	i40e_set_subsystem_device_id(hw);

What does this have to do with $SUBJECT?  Nothing, AFAICT.

Thanks,
Richard

Powered by blists - more mailing lists