lkml.org 
[lkml]   [2019]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRE: [PATCH 1/2] net-next: stmmac: add support for hash table size 128/256 in dwmac4
From
Date
On Mon, 2019-04-29 at 09:00 +0000, Jose Abreu wrote:
> From: Biao Huang <biao.huang@mediatek.com>
> Date: Mon, Apr 29, 2019 at 07:35:23
>
> > +#define GMAC_HASH_TAB(x) (0x10 + x * 4)
>
> You need to guard x here with parenthesis.
>
> > void __iomem *ioaddr = (void __iomem *)dev->base_addr;
> > - unsigned int value = 0;
> > + unsigned int value;
> > + int i;
> > + int numhashregs = (hw->multicast_filter_bins >> 5);
> > + int mcbitslog2 = hw->mcast_bits_log2;
>
> Reverse Christmas tree order here please.
OK.
>
> Thanks,
> Jose Miguel Abreu


\
 
 \ /
  Last update: 2019-04-30 11:00    [W:0.103 / U:0.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site