Re: [PATCH][net-next] tun: not use hardcoded mask value

2018-08-04 Thread David Miller
From: Li RongQing Date: Fri, 3 Aug 2018 15:50:02 +0800 > 0x3ff in tun_hashfn is mask of TUN_NUM_FLOW_ENTRIES, instead > of hardcode, define a macro to setup the relationship with > TUN_NUM_FLOW_ENTRIES > > Signed-off-by: Li RongQing Applied, thank you.

[PATCH][net-next] tun: not use hardcoded mask value

2018-08-03 Thread Li RongQing
0x3ff in tun_hashfn is mask of TUN_NUM_FLOW_ENTRIES, instead of hardcode, define a macro to setup the relationship with TUN_NUM_FLOW_ENTRIES Signed-off-by: Li RongQing --- drivers/net/tun.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/tun.c