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]
Message-ID: <c258c3bb440b88e984b0385af8ffb38a017ba644.camel@intel.com>
Date:   Tue, 4 Jan 2022 21:56:03 +0000
From:   "Nguyen, Anthony L" <anthony.l.nguyen@...el.com>
To:     "Lobakin, Alexandr" <alexandr.lobakin@...el.com>,
        "christophe.jaillet@...adoo.fr" <christophe.jaillet@...adoo.fr>
CC:     "kernel-janitors@...r.kernel.org" <kernel-janitors@...r.kernel.org>,
        "davem@...emloft.net" <davem@...emloft.net>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "hch@...radead.org" <hch@...radead.org>,
        "kuba@...nel.org" <kuba@...nel.org>,
        "Brandeburg, Jesse" <jesse.brandeburg@...el.com>,
        "intel-wired-lan@...ts.osuosl.org" <intel-wired-lan@...ts.osuosl.org>,
        "netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: [Intel-wired-lan] [PATCH] intel: Simplify DMA setting

On Tue, 2022-01-04 at 14:29 +0100, Alexander Lobakin wrote:
> From: Christophe JAILLET <christophe.jaillet@...adoo.fr>
> Date: Tue, 4 Jan 2022 01:15:20 +0100
> 
> > As stated in [1], dma_set_mask() with a 64-bit mask will never fail
> > if
> > dev->dma_mask is non-NULL.
> > So, if it fails, the 32 bits case will also fail for the same
> > reason.
> > 
> > Simplify code and remove some dead code accordingly.
> > 
> > [1]: https://lkml.org/lkml/2021/6/7/398
> > 
> > Signed-off-by: Christophe JAILLET <christophe.jaillet@...adoo.fr>
> > ---
> >  drivers/net/ethernet/intel/e1000e/netdev.c    | 22 ++++++---------
> > ----
> >  drivers/net/ethernet/intel/i40e/i40e_main.c   |  9 +++-----
> >  drivers/net/ethernet/intel/iavf/iavf_main.c   |  9 +++-----
> >  drivers/net/ethernet/intel/ice/ice_main.c     |  2 --
> >  drivers/net/ethernet/intel/ixgb/ixgb_main.c   | 19 +++++----------
> > -
> >  drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 20 ++++++---------
> > --
> >  .../net/ethernet/intel/ixgbevf/ixgbevf_main.c | 20 +++++----------
> > --
> >  7 files changed, 31 insertions(+), 70 deletions(-)
> 
> I like it, thanks!
> 
> Reviewed-by: Alexander Lobakin <alexandr.lobakin@...el.com>
> 
> Tony might ask to split it into per-driver patches tho, will see.

Hi Christophe,

As mentioned by others, would mind breaking these per-driver?

Thanks,
Tony

> 
> --- 8< ---
> 
> Al

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ