Re: [PATCH net-next] net: mvpp2: Don't use dynamic allocs for local variables

2018-03-20 Thread Antoine Tenart
Hi Maxime, On Tue, Mar 20, 2018 at 04:34:08PM +0100, Maxime Chevallier wrote: > @@ -2416,36 +2393,36 @@ static int mvpp2_prs_double_vlan_add(struct mvpp2 > *priv, unsigned short tpid1, > } > > if (tid >= tid_aux) { > - ret = -ERANGE; > -

[PATCH net-next] net: mvpp2: Don't use dynamic allocs for local variables

2018-03-20 Thread Maxime Chevallier
Some helper functions that search for given entries in the TCAM filter on PPv2 controller make use of dynamically alloced temporary variables, allocated with GFP_KERNEL. These functions can be called in atomic context, and dynamic alloc is not really needed in these cases anyways. This commit gets