net/netvsc: fix chimney buffer size error handling
authorStephen Hemminger <sthemmin@microsoft.com>
Thu, 9 Aug 2018 17:50:05 +0000 (10:50 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 28 Aug 2018 13:27:39 +0000 (15:27 +0200)
commit99e3d0e72f0bf34a39bf57d4b363730994eb5a59
treec9747249a9ecd19af7decde01eac80be1410b69f
parent763e450ae24d88b87f1eb86643a2897b141d9c07
net/netvsc: fix chimney buffer size error handling

Fix the error handling in setting up transmit buffer.
If setting up chimney buffer fails, then it is not connected so
no need to send disconnect.

Allow for some unused area if full area is not used.

Fixes: 4e9c73e96e83 ("net/netvsc: add Hyper-V network device")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
drivers/net/netvsc/hn_nvs.c