tun: not use hardcoded mask value
authorLi RongQing <lirongqing@baidu.com>
Fri, 3 Aug 2018 07:50:02 +0000 (15:50 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Aug 2018 20:15:11 +0000 (13:15 -0700)
commit6b278577db138ad2cb2acd405c5ab27997f7d199
tree301dbbe983a0e3c3b750e084e1face19a655cd78
parenta51215ea9fe508a771b7a7ad98b382832f9df11f
tun: not use hardcoded mask value

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 <lirongqing@baidu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c