net/enic: reset VXLAN port during initialization
authorHyong Youb Kim <hyonkim@cisco.com>
Tue, 31 Jul 2018 21:26:13 +0000 (14:26 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 2 Aug 2018 08:34:04 +0000 (10:34 +0200)
commit0caa07034a3f23c9134e7aae5d5f077814b5825a
treefbc75f788de064fcaf9ffc39942c2d82c6362e45
parentd16623dd393de3788abd619b80c20d2bbfffb4d4
net/enic: reset VXLAN port during initialization

The NIC persists the vxlan port number across vNIC init/de-init
(e.g. restart testpmd). So, explicitly reset the setting to the
default value (4789) as part of the initialization.

Fixes: 8a4efd17410c ("net/enic: add handlers to add/delete vxlan port number")

Signed-off-by: Hyong Youb Kim <hyonkim@cisco.com>
Reviewed-by: John Daley <johndale@cisco.com>
drivers/net/enic/enic_main.c