geneve: maximum value of VNI cannot be used
authorGirish Moodalbail <girish.moodalbail@oracle.com>
Wed, 9 Aug 2017 00:26:24 +0000 (17:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Aug 2017 05:41:04 +0000 (22:41 -0700)
commit04db70d9fe7019d96118158fbaaccb4959ba2bd4
tree079dc7bc10a82f031ba3212dd68ff05bbae2b35d
parent50ddfbafcd1e1f95185dfaa4ad794f742b0beaf8
geneve: maximum value of VNI cannot be used

Geneve's Virtual Network Identifier (VNI) is 24 bit long, so the range
of values for it would be from 0 to 16777215 (2^24 -1).  However, one
cannot create a geneve device with VNI set to 16777215. This patch fixes
this issue.

Signed-off-by: Girish Moodalbail <girish.moodalbail@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c